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
# 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> |
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
// 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'); |
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
<DirectoryMatch ".*/\.(git|svn)/.*"> | |
Require all denied | |
</DirectoryMatch> |
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
# 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" |
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
#!/bin/bash | |
ADDR="http://traccar.example.com:5055" # Replace with your traccar server address | |
ID="12345" # Replace this with your chosen traccar id | |
LOGFILE="/var/log/gps-traccar.log" | |
function execute_push { | |
DATA="${ADDR}/?id=${ID}&lat=${LAT}&lon=${LON}×tamp="${TIME}"&hdop=${HDOP}&altitude=${ALT}&speed=${SPEED}&climb=${CLIMB}" | |
# echo "[$(date +%s)] $DATA" >> LOGFILE | |
curl -m 10 -X POST "$DATA" >> LOGFILE 2>&1 |