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
cd RAILS_ROOT | |
bundle exec rake assets:precompile RAILS_ENV=staging | |
cd public/assets | |
mv manifest.yml ../ | |
rm -fr * | |
mv ../manifest.yml ./ | |
mv app/assets ~/backup_assets_for_pj | |
mv public/system ~/system_back | |
vmc update appname (vmc does not know about git or jenkins) | |
vmc start |
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
vmc instances project-blue 3 | |
vmc map project-blue www.project.com | |
vmc map project-blue project.com | |
vmc unmap project-green www.project.com | |
vmc unmap project-green project.com | |
vmc stop project-background-green | |
vmc start project-background-blue |
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
--enable-luainterp=yes --enable-multibyte --disable-netbeans --disable-selinux --enable-pythoninterp=yes --enable-python3interp=yes --enable-tclinterp --enable-rubyinterp=yes --enable-cscope --disable-netbeans --enable-multibyte --with-modified-by=Emile --with-features=HUGE --with-compiledby=Emile --with-ruby-command=RUBY |
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
lsof -wni tcp:3000 |
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
pg_ctl -D /usr/local/var/postgres -l /usr/local/var/postgres/server.log start |
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
netstat -tn 2>/dev/null | grep :80 | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -nr | head |
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
execve("/usr/local/bin/logkeys", ["logkeys"], [/* 36 vars */]) = 0 | |
brk(0) = 0x9c33000 | |
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb779b000 | |
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory) | |
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3 | |
fstat64(3, {st_mode=S_IFREG|0644, st_size=125002, ...}) = 0 | |
mmap2(NULL, 125002, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb777c000 | |
close(3) = 0 | |
open("/usr/lib/libstdc++.so.6", O_RDONLY|O_CLOEXEC) = 3 | |
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0`f\4\0004\0\0\0"..., 512) = 512 |
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
./configure --enable-perlinterp --enable-pythoninterp --enable-rubyinterp --enable-cscope --with-features=huge --prefix=/home/emile |
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
ack renderHeader /server/www | |
1.41s user 0.67s system 56% cpu 3.653 total | |
ag renderHeader /server/www | |
0.62s user 0.19s system 99% cpu 0.815 total |
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
python slash-n.py > slashn && python slash-r.py > slashr && vim -O slashn slashr |