This file contains hidden or 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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains hidden or 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 -q /home/survivi/public_html/wp-cron.php |
This file contains hidden or 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
//for universal analytics | |
ga('require', 'displayfeatures'); |
This file contains hidden or 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 sendToGA(pagename,section) { | |
ga('send', { | |
'hitType': 'event', // Required. | |
'eventCategory': 'footerLink', // Required. | |
'eventAction': 'click', // Required. | |
'eventLabel': 'Footer Link: ' + section, | |
'eventValue': 4, | |
'page':'/'+pagename, | |
}); | |
} |
This file contains hidden or 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
//mixin declaration | |
.font-size(@sizeValue) { | |
@remValue: @sizeValue; | |
@pxValue: @sizeValue; | |
font-size: ~"@{pxValue}px"; | |
font-size: ~"@{remValue}rem"; | |
} | |
//media queries set |
This file contains hidden or 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
SELECT post.post_title, post.post_name, tt.name | |
FROM `wp_posts` AS post | |
INNER JOIN `wp_term_relationships` AS terms ON ( post.ID = terms.object_id ) | |
INNER JOIN `wp_term_taxonomy` AS tax ON ( terms.term_taxonomy_id = tax.term_taxonomy_id ) | |
INNER JOIN `wp_terms` AS tt ON ( tax.term_id = tt.term_id ) | |
WHERE post.post_type = 'post' |
This file contains hidden or 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
/* iFrame Buster */ | |
<script language="javascript" type="text/javascript"> | |
//if (window!= top) top.location.href = location.href; | |
(function(window) { | |
if (window.location !== window.top.location) { | |
window.top.location = window.location; | |
} | |
})(this); | |
</script> |
This file contains hidden or 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
/* Password Protect Admin section */ | |
ErrorDocument 401 "Unauthorized Access" | |
ErrorDocument 403 "Forbidden" | |
<FilesMatch "wp-login.php"> | |
AuthName "Authorized Only" | |
AuthType Basic | |
AuthUserFile /home/username/.htpaswrdname | |
require valid-user | |
</FilesMatch> |
This file contains hidden or 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
#### Robots.txt file to block others | |
User-agent: MJ12bot* | |
Disallow: / | |
User-agent: NinjaBot | |
Allow: / | |
User-agent: Mediapartners-Google* | |
Allow: / |
NewerOlder