I hereby claim:
- I am zachahn on github.
- I am zachahn (https://keybase.io/zachahn) on keybase.
- I have a public key ASAPXIWZ3hD5qyYinKWUV05V_YCIp23AlyiZGfbc2Q0Y1Qo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
I'M GONNA SHIP IT! |
if ARGV.length != 2 | |
puts "usage: #{$0} <comma separated list> <maximum group size>" | |
exit | |
end | |
if ARGV[1].to_i < 1 | |
puts "preferred group size must be greater than 0" | |
exit | |
end |
module SerializedAttrAccessor | |
extend ActiveSupport::Concern | |
module ClassMethods | |
def serialized_attr_accessor column, *pseudocols | |
pseudocols.each do |pseudocol| | |
reader = pseudocol | |
writer = "#{pseudocol}=".to_sym | |
define_method(reader) do |
# Add to Mac Keychain | |
ssh-add -K ~/.ssh/id_rsa |
tar -zcpf /backup/fb-`date +%s`.tgz --directory=/ --exclude=proc --exclude=sys --exclude=dev --exclude=backup --exclude=tmp --exclude=var/run --exclude=var/lock . |
1. `brew install tmux` | |
2. https://github.com/norio-nomura/EasySIMBL | |
3. https://bitheap.org/mouseterm/ |
#!/bin/sh | |
GIT_WORK_TREE=/absolute/path/to/deploy/directory git checkout -f |
cd /Library/WebServer/ | |
open . | |
# right click `Documents` -> `Get Info` | |
# unlock (bottom right) | |
# plus button [+] -> choose yourself -> select | |
sudo chmod +a "user:_www allow list,add_file,search,add_subdirectory,delete_child,readattr,writeattr,readextattr,writeextattr,readsecurity" Documents | |
# you can alias `ls` to `ls -e` to see the permissions whenever you `ls` | |
vim /private/etc/apache2/httpd.conf | |
# uncomment the PHP line | |
sudo apachectl start |
# macports mamp setup | |
- https://trac.macports.org/wiki/howto/MAMP | |
## pkgs | |
sudo port install apache2 | |
sudo port install mariadb-server | |
sudo port install php54 | |
sudo port install php54-gd |