most of these require logout/restart to take effect
# Enable character repeat on keydown
defaults write -g ApplePressAndHoldEnabled -bool false
# Set a shorter Delay until key repeat
# This goes in vcl_recv | |
# It gives you: | |
# curl -X PURGE http://some.example.com/.* | |
# curl -X PURGE http://some.example.com/blog/.* | |
# curl -X PURGE http://some.example.com/blog/2011/bar.html | |
# curl -X PURGE http://another.example.com/.* | |
# | |
if (req.request == "PURGE") { | |
# Wildcard, per-domain purging | |
purge("req.http.host == " req.http.host " && req.url ~ " req.url "$"); |
#!/usr/bin/env sh | |
# Download lists, unpack and filter, write to stdout | |
curl -s https://www.iblocklist.com/lists.php \ | |
| sed -n "s/.*value='\(http:.*=bt_.*\)'.*/\1/p" \ | |
| xargs wget -O - \ | |
| gunzip \ | |
| egrep -v '^#' |
# ElasticSearch upstart script | |
description "ElasticSearch service" | |
start on (net-device-up | |
and local-filesystems | |
and runlevel [2345]) | |
stop on runlevel [016] |
sudo apt-get install python-setuptools
wget http://downloads.sourceforge.net/project/s3tools/s3cmd/1.5.0-alpha1/s3cmd-1.5.0-alpha1.tar.gz
tar xvfz s3cmd-1.5.0-alpha1.tar.gz
cd s3cmd-1.5.0-alpha1
python setup.py install
s3cmd --configure
$client = array( | |
'key' => '<key>', | |
'secret' => '<secret>' | |
); | |
$expires = 5; // In minutes | |
// output signed URL string | |
echo el_s3_getTemporaryLink($client['key'], $client['secret'], 'bucket', '<path:file-MD5>', '<filename>', $expires); | |
/** |
#!/bin/bash | |
# Following the guide found at this page | |
# http://programmingarehard.com/2014/03/17/behat-and-selenium-in-vagrant.html | |
echo "\r\nUpdating system ...\r\n" | |
sudo apt-get update | |
# Create folder to place selenium in |
# OSX for Pentesting (Mavericks/Yosemite) | |
# | |
# A fork of OSX for Hackers (Original Source: https://gist.github.com/brandonb927/3195465) | |
#!/bin/sh | |
# Ask for the administrator password upfront | |
echo "Have you read through the script prior to running this? (y or n)" | |
read bcareful |