Skip to content

Instantly share code, notes, and snippets.

View krohn's full-sized avatar
👋

Karsten Krohn krohn

👋
View GitHub Profile
@krohn
krohn / gist:8344202176bebbc1d37c
Created November 23, 2015 07:46
Harden Google Chrome SSL
# Apple Shellscript to deactivate all SHA1- and DH-Ciphers
# as well as outdated SSL-Securety
do shell script "open '/Applications/Google Chrome.app'
--args --ssl-version-min=tls1
--cipher-suite-blacklist=0x0004,0x0005,0x009e,0xcc15,0x0039,0x0033,0xc00a,0xc014,0xc013,0xc009,0x002f,0xc000a,0xc00a,0xc014,0xc009,0xc013,0x002f,0x000a,0x0035"
@krohn
krohn / .htaccess
Created November 20, 2015 10:43
Verhindert Zugriff auf GIT/SVN Referenzen
<DirectoryMatch ".*/\.(git|svn)/.*">
  Require all denied
</DirectoryMatch>
@krohn
krohn / gist:0059487bad67c75e8f3d
Created September 17, 2014 13:49
No "Quick Tips" on the homepage
// No "Quick Tips" on the homepage
// http://www.wprecipes.com/how-to-prevent-posts-from-a-particular-category-to-be-displayed-in-wordpress-loop
function preventHomepageTips($query) {
if($query->is_home() && $query->is_main_query()) {
$query->set('cat', '-40'); // 40 is Quick Tips's category ID
}
}
add_action('pre_get_posts', 'preventHomepageTips');
@krohn
krohn / gist:00ea01e56588823da52f
Created September 17, 2014 10:13
block humans.txt scans
# block humans.txt scans
# http://perishablepress.com/protect-against-humans-txt-query-string-scans/
<IfModule mod_rewrite.c>
RewriteCond %{QUERY_STRING} http\:\/\/www\.google\.com\/humans\.txt\? [NC]
RewriteRule .* - [F,L]
</IfModule>