sysctl -a | grep swap
$ sudo pkill -HUP -u _windowserver
Command Line
pry -r ./config/app_init_file.rb - load your app into a pry session (look at the file loaded by config.ru)pry -r ./config/environment.rb - load your rails into a pry sessionDebugger
| sudo yum -y groupinstall "Development Tools" | |
| sudo yum -y install gettext-devel openssl-devel perl-CPAN perl-devel zlib-devel | |
| cd /tmp | |
| git clone [email protected]:git/git.git | |
| cd git | |
| make .configure | |
| ./configure --prefix=/usr/local |
| Run scp to machine R, which is only accessible through gateway machine G. | |
| Step 1: Establish SSH tunnel. Pick a temporary port between 1024 and 32768 (1234 in this example). Port 22 will be used by scp. | |
| $ ssh -L 1234:<address of R known to G>:22 <user at G>@<address of G> | |
| # Adding "cat -" will keep it running while above will get you connected to G | |
| $ ssh -L 1234:<address of R known to G>:22 <user at G>@<address of G> cat - | |
| Either way you run it, open another terminal for next step. |
| PATCHED_FILENAME = "Monaco for Powerline.ttf" | |
| $(PATCHED_FILENAME): Monaco.ttf fontpatcher.py fontpatcher-symbols.sfd | |
| fontforge -script fontpatcher.py Monaco.ttf | |
| @echo "(´・_・`) You can install the $(PATCHED_FILENAME) now." | |
| Monaco.ttf: Monaco.dfont | |
| fondu Monaco.dfont | |
| rm *.bdf |
| #!/usr/bin/env bash | |
| after_use_hooks=($( | |
| find "${rvm_path:-"$HOME/.rvm"}/hooks" -iname 'after_use_*' -type f | |
| )) | |
| for after_use_hook in "${after_use_hooks[@]}" | |
| do | |
| if [[ -x "${after_use_hook}" ]] | |
| then |