修改WordPress 文章内分页样式

最近写了一篇比较长的隐私文章,用到了wp的文章分页功能。却发现默认的分页的页面又小又难找。于是想修改wp的默认分页,网上找了下相关的代码基本都是下面的样子:

<?php
$args = array (
    'before'            => '
<div class="page-links-XXX"><span class="page-link-text">' . __( 'More pages: ', 'textdomain' ) . '</span>',
    'after'             => '</div>
',
    'link_before'       => '<span class="page-link">',
    'link_after'        => '</span>',
    'next_or_number'    => 'next',
    'separator'         => ' | ',
    'nextpagelink'      => __( 'Next &raquo', 'textdomain' ),
    'previouspagelink'  => __( '&laquo Previous', 'textdomain' ),
);
 
wp_link_pages( $args );
?>

但是我尝试了上面的方法并没有任何的效果,通过wp_link_pages( $args );传送的参数没有生效。

Continue Reading

IDA PRO 7.5 KEYGEN

========================= IDA-Pro Key Generator ========================

Use this program to make your IDA-Pro copy look legit or to increase the
number of seats for your license.

I used to support IDA a long time ago but they have exponentially increased
the prices of their products and insisted on a yearly subscription based
payment. Without an active plan one can’t even access the IDA forum.

So I’ve continued to use IDA-Pro and for the last 20 years I had every
single version either leaked or “borrowed” from friends with my own
generated licenses.

Continue Reading

jira无法正常显示图片

jira安装之后,图片在富文本编辑器内能正常显示,但是在附件内无法显示,如果查看会发现图片的连接是127.0.0.1.

nginx原始配置如下:

server{
  listen 80;
  server_name jira.test.net; # 公网ip
  index  index.php index.html index.htm;
 
  location / {
    proxy_pass  http://127.0.0.1:8002;
    proxy_set_header Host $proxy_host;
    proxy_set_header X-Real-IP $remote_addr;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  }
}

将proxy地址设置为公网,并且修改为以下配置就可以正常访问了:

server{
  listen 80;
  server_name jira.test.net; # 公网ip
  index  index.php index.html index.htm;
 
 
 
  location / {
    proxy_pass  http://47.xxx.xxx.12:8002;
                proxy_redirect          off;
                proxy_set_header        Host $host:$server_port;   ##重点在$server_port
                proxy_set_header        X-Real-IP $remote_addr;
                proxy_set_header        X-Forwarded-For $proxy_add_x_forwarded_for;
                proxy_max_temp_file_size 0;
                proxy_connect_timeout 90;
                proxy_send_timeout 90;
                proxy_read_timeout 90;
                proxy_buffer_size 4k;
                proxy_buffers 4 32k;
                proxy_busy_buffers_size 64k;
                proxy_hide_header Vary;
                proxy_set_header Accept-Encoding '';
                proxy_set_header Referer $http_referer;
                proxy_set_header Cookie $http_cookie;
 
}
}
Continue Reading