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
.video { | |
position: relative; | |
padding-bottom: 56.25%; | |
padding-top: 30px; | |
height: 0; | |
overflow: hidden; | |
} | |
.video iframe, .video object, .video embed { | |
position: absolute; |
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 | |
/** | |
* Boot any comment bot that fills in the author website field. | |
*/ | |
function _tw_intercept_comment( array $data ){ | |
if( empty($data['comment_author_url']) ){ | |
return $data; | |
} | |
get_header(); | |
echo 'See ya'; |
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 | |
/* | |
Plugin Name: Comment HoneyPot | |
Description: Disallows any comments from users who add a url to the invisible webpage form field | |
Author: Tim Whitlock - Mods by Ed Cooper | |
Author URI: http://timwhitlock.info/ | |
Version: 0.1 | |
*/ | |
function _tw_intercept_comment( array $data ){ |
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
#commentform #url, #commentform #url +label, .comment-form-url { | |
display:none; | |
} |
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
figure#user_logo div.logo:hover{ | |
-webkit-transform:rotate(30deg); | |
-moz-transform:rotate(30deg); | |
-o-transform:rotate(30deg); | |
/* Webkit Rotation Flicker Fix */ | |
-webkit-transform-style: preserve-3d; | |
} |
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 if (is_user_logged_in() ) { ?> | |
_gaq.push(['_setCustomVar', 1, 'logged_in', 'true', 1]); | |
_gaq.push(['_setCustomVar', 2, 'user-name', '<?php global $current_user; get_currentuserinfo(); echo $current_user->user_login ; ?>', 1]); | |
_gaq.push(['_setCustomVar', 3, 'blog-address', '<?php $str = get_bloginfo('url');$str = preg_replace('#^https?://#', '', $str);echo $str; ?>', 1]); | |
<?php } else { ?> | |
_gaq.push(['_setCustomVar', 1, 'logged_in', 'false', 1]); | |
_gaq.push(['_setCustomVar', 3, 'blog-address', '<?php $str = get_bloginfo('url');$str = preg_replace('#^https?://#', '', $str);echo $str; ?>', 1]); | |
<?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
Open your favourite terminal | |
cd /Applications/Google\ Chrome.app/Contents/MacOS/ | |
cp Google\ Chrome chrome | |
cat /dev/null > Google\ Chrome | |
nano Google\ Chrome | |
Paste the next step: | |
#!/bin/sh | |
exec /Applications/Google\ Chrome.app/Contents/MacOS/chrome –disk-cache-dir=”/dev/null/” $@ | |
ctrl + x | |
y |
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
sync; echo 3 > /proc/sys/vm/drop_caches |
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
iptables -vnL --line-numbers |
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
iptables -D INPUT 22 |