This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
RewriteEngine on | |
RewriteRule .*\.git/.* - [F] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# to generate your dhparam.pem file, run in the terminal | |
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body { | |
-webkit-font-smoothing: antialiased; | |
-moz-font-smoothing: antialiased; | |
font-smoothing: antialiased; | |
text-rendering: optimizeLegibility; | |
-webkit-text-size-adjust: 100%; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="d-block d-sm-none"> | |
visible XS | |
</div> | |
<div class="d-none d-sm-block d-md-none"> | |
visible SM | |
</div> | |
<div class="d-none d-md-block d-lg-none"> | |
visible MD | |
</div> | |
<div class="d-none d-lg-block d-xl-none"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_action('get_footer', 'show_template'); | |
function show_template() | |
{ | |
global $template; | |
if ($_SERVER['REMOTE_ADDR'] == 'ip_address') echo basename($template); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function your_custom_pagination() { | |
global $wp_query; | |
$total = $wp_query->max_num_pages; | |
if ( $total > 1 ) { | |
if ( !$current_page = get_query_var('paged') ) { | |
$current_page = 1; | |
} | |
echo paginate_links(array( | |
'base' => get_pagenum_link(1) . '%_%', | |
'format' => '?paged=%#%', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//Put this file in the root and run from browser or command line to generate the user | |
require 'wp-load.php'; | |
global $wpdb; | |
$prefix = $wpdb->prefix; | |
//Fill in all variables below | |
$name = ''; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* ---------------------------------------------------- */ | |
/* 程序名称: PHP探针-Yahei | |
/* 程序功能: 探测系统的Web服务器运行环境 | |
/* 程序开发: Yahei.Net | |
/* 联系方式: [email protected] | |
/* Date: 1970-01-01 / 2012-07-08 | |
/* ---------------------------------------------------- */ | |
/* 使用条款: | |
/* 1.该软件免费使用. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$lg: "min-width: 1200px"; | |
$md: "max-width: 1199px"; | |
$sm: "max-width: 991px"; | |
$xs: "max-width: 767px"; | |
$lg-up: "min-width: 1199px"; | |
$md-up: "min-width: 991px"; | |
$sm-up: "min-width: 767px"; | |
$xs-up: "min-width: 0px"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//This is for bootstrap 4 - given the media queries. Can easily be changed for Bootstrap 3 | |
$xl-down: "max-width: 9999px"; | |
$lg-down: "max-width: 1199px"; | |
$md-down: "max-width: 991px"; | |
$sm-down: "max-width: 767px"; | |
$xs-down: "max-width: 575px"; | |
$xl-up: "min-width: 1200px"; | |
$lg-up: "min-width: 992px"; |
OlderNewer