For excessively paranoid client authentication.
Organization & Common Name: Some human identifier for this server CA.
openssl genrsa -des3 -out ca.key 4096
openssl req -new -x509 -days 365 -key ca.key -out ca.crt
| # | |
| # http://naleid.com/blog/2009/06/18/poor-mans-top-for-mysql | |
| # | |
| watch -n 5 --differences "mysql -u root -p -e 'show processlist'" |
| /* @2x Images (Pixel Ratio of 1.25+) */ | |
| @mixin image-2x($image, $width, $height) { | |
| @media only screen and (min--moz-device-pixel-ratio: 5/4), | |
| only screen and (-o-min-device-pixel-ratio: 5/4), | |
| only screen and (-webkit-min-device-pixel-ratio: 1.25), | |
| only screen and (min-device-pixel-ratio: 1.25), | |
| only screen and (min-resolution: 1.25dppx) { | |
| background-image: url($image); | |
| background-size: $width $height; | |
| } |
| # Install dnsmasq | |
| $ brew install dnsmasq | |
| # Copy the default configuration file. | |
| $ cp $(brew list dnsmasq | grep /dnsmasq.conf.example$) /usr/local/etc/dnsmasq.conf | |
| # Copy the daemon configuration file into place. | |
| $ sudo cp $(brew list dnsmasq | grep /homebrew.mxcl.dnsmasq.plist$) /Library/LaunchDaemons/ | |
| # Start Dnsmasq automatically. |
| <?php | |
| $start_dir = 'whatever'; // Starting directory name no trailing slashes. | |
| $perms['file'] = 0644; // chmod value for files don't enclose value in quotes. | |
| $perms['folder'] = 0755; // chmod value for folders don't enclose value in quotes. | |
| function chmod_file_folder($dir) { | |
| global $perms; | |
| $dh=@opendir($dir); |
| tree -ifDt --timefmt=%F |
| SELECT | |
| -- Assumed to be trimmed | |
| name | |
| -- Does name contain multiple words? | |
| ,(LOCATE(' ', name) = 0) AS hasMultipleWords | |
| -- Returns the end of the string back until reaches a space. | |
| -- E.g. "John Doe" => "Doe" | |
| -- E.g. "Francis Scott Key" => "Key" |
| find $LOCATION -name $REQUIRED_FILES -type f -mmin +360 -delete |
For excessively paranoid client authentication.
Organization & Common Name: Some human identifier for this server CA.
openssl genrsa -des3 -out ca.key 4096
openssl req -new -x509 -days 365 -key ca.key -out ca.crt
| ssh -N -D 0.0.0.0:1080 localhost |
| alias vssh="cd /Users/miguel/Vagrant/ && vagrant ssh -- -t 'sudo su; cd /home/www/'" | |
| alias vup="cd /Users/miguel/Vagrant/ && vagrant up" | |
| alias vprov="cd /Users/miguel/Vagrant/ && vagrant provision" | |
| alias vrestart="killall -9 ruby; cd /Users/miguel/Vagrant && vagrant halt && vagrant up" |