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
ssh -f [email protected] -L 2000:personal-server.com:25 -N |
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
.video-container | |
position relative | |
padding-bottom 56.25% | |
padding-top 30px | |
height 0 | |
overflow hidden | |
.video-container iframe, | |
.video-container object, | |
.video-container embed |
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
-webkit-font-smoothing antialiased | |
-moz-osx-font-smoothing grayscale |
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
.htaccess | |
wp-*.php | |
xmlrpc.php | |
wp-admin/ | |
wp-includes/ | |
wp-content/uploads/* | |
wp-content/upgrade/* | |
wp-content/cache/* | |
wp-content/backups/* | |
sitemap.xml |
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
var viewableOffset = $("#li.test").offset().top - $(window).scrollTop(); |
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 checkEmail() { | |
var email = document.getElementById('emailaddress'); | |
var filter = /^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/; | |
if (!filter.test(email.value)) { | |
alert('Please provide a valid email address'); | |
email.focus; | |
return false; | |
} | |
} |
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
if ($request_uri !~* ^/admin) { | |
rewrite ^ http://$server_name$request_uri?$args permanent; | |
} |
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
server { | |
listen 443 ssl; | |
server_name domain.com; | |
access_log /var/log/nginx/access.log; | |
error_log /var/log/nginx/error.log; | |
ssl_certificate /etc/ssl/nginx/domain.com.crt; | |
ssl_certificate_key /etc/ssl/nginx/domain.com.key; |
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
/** | |
* The post formats feature allows you to customize the style and presentation | |
* of posts. As of this writing, there are 9 standardized post formats that | |
* users can choose from: aside, gallery, link, image, quote, status, video, | |
* audio, and chat. In addition to these, the default “Standard” post format | |
* indicates that no post format is specified for the particular post. | |
* To add this functionality to your theme, include the following code in your | |
* functions.php, specifying the post formats you’ll be taking advantage of. | |
* e.g. If you only want the aside, image, link, quote, and status Post Formats, | |
* your code should look like this: |
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
remove_action('wp_head', 'feed_links', 2); | |
remove_action('wp_head', 'feed_links_extra', 3); | |
remove_action('wp_head', 'rsd_link'); | |
remove_action('wp_head', 'wlwmanifest_link'); | |
remove_action('wp_head', 'index_rel_link'); | |
remove_action('wp_head', 'parent_post_rel_link'); | |
remove_action('wp_head', 'start_post_rel_link'); | |
remove_action('wp_head', 'adjacent_posts_rel_link'); | |
remove_action('wp_head', 'check_and_publish_future_post'); | |
remove_action('wp_head', 'wp_print_styles'); |