launchctl limit maxfiles
ulimit -a
This file contains 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
# add source | |
cat >> /etc/apt/sources.list <<EOF | |
# Nginx | |
deb http://nginx.org/packages/ubuntu/ disco nginx | |
deb-src http://nginx.org/packages/ubuntu/ disco nginx | |
EOF | |
# add signing key | |
curl http://nginx.org/packages/keys/nginx_signing.key | sudo apt-key add - |
This file contains 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 | |
# Install: | |
# curl -O https://gist.githubusercontent.com/2called-chaos/4285767/raw/setup-autossh-tunnel.sh | |
# chmod u+x setup-autossh-tunnel.sh | |
# ./setup-autossh-tunnel.sh | |
SSH_USER="mysql_tunnel" | |
SSH_SERVER="db.example.net" | |
SSH_PORT="22" |
This file contains 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
################################## | |
### SCROLL DOWN FOR AN EXAMPLE ### | |
################################## | |
module Enumerable | |
# your each_with_position method | |
def each_pos &block | |
EachWithPosition.each(self, &block) | |
end | |
end |