For educational reasons I've decided to create my own CA. Here is what I learned.
Lets get some context first.
| // Extracted from http://www.w3.org/TR/dom/ | |
| // Copyright © 2015 W3C® (MIT, ERCIM, Keio, Beihang). | |
| // Some Rights Reserved: this document is dual-licensed, CC-BY and W3C Document License. | |
| // W3C liability, trademark and document use rules apply. | |
| exception DOMException { | |
| const unsigned short INDEX_SIZE_ERR = 1; | |
| const unsigned short DOMSTRING_SIZE_ERR = 2; // historical | |
| const unsigned short HIERARCHY_REQUEST_ERR = 3; | |
| const unsigned short WRONG_DOCUMENT_ERR = 4; |
| $ git clone https://gist.github.com/8b4404e538e61c7996a5.git | |
| $ cd 8b4404e538e61c7996a5 | |
| $ mkdir salamander && cd salamander | |
| $ curl -L -O https://archive.org/download/SalamanderDrumkit/salamanderDrumkit.tar.bz2 | |
| $ curl -L -O https://github.com/johnsen/drumsandpercussion/blob/master/SalamanderKick/salamanderdrum-kick-r1.tar.gz | |
| $ curl -L -O http://freepats.zenvoid.org/Piano/SalamanderGrandPianoV3_44.1khz16bit.tar.bz2 | |
| $ tar xvfz salamanderDrumkit.tar.bz2 | |
| $ tar xvfz salamanderdrum-kick-r1.tar.gz | |
| $ mv Kick/kick* OH/ | |
| $ tar xvfz SalamanderGrandPianoV3_44.1khz16bit.tar.bz2 |
| #!/bin/sh | |
| # This script takes a photo if the computer has not been idle for longer than a period of time | |
| # it uses isightcapture from https://www.macupdate.com/app/mac/18598/isightcapture | |
| [ -z "$USER" ] && echo "missing variable \$USER " && exit 1 | |
| if [ ! -d /Users/$USER/daily_photo ]; then | |
| mkdir -p $/Users/$USER/daily_photo | |
| fi | |
| IDLE=$((`/usr/sbin/ioreg -c IOHIDSystem | sed -e '/HIDIdleTime/!{ d' -e 't' -e '}' -e 's/.* = //g' -e 'q'` / 1000000000 )) | |
| export SUDO_ASKPASS=/Users/$USER/bin/get_pass.sh |
L1 cache reference ......................... 0.5 ns
Branch mispredict ............................ 5 ns
L2 cache reference ........................... 7 ns
Mutex lock/unlock ........................... 25 ns
Main memory reference ...................... 100 ns
Compress 1K bytes with Zippy ............. 3,000 ns = 3 µs
Send 2K bytes over 1 Gbps network ....... 20,000 ns = 20 µs
SSD random read ........................ 150,000 ns = 150 µs
Read 1 MB sequentially from memory ..... 250,000 ns = 250 µs
| # Originally from https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
| # Enable the 2D Dock | |
| defaults write com.apple.dock no-glass -bool true | |
| # Disable menu bar transparency | |
| defaults write -g AppleEnableMenuBarTransparency -bool false | |
| # Expand save panel by default | |
| defaults write -g NSNavPanelExpandedStateForSaveMode -bool true |