Skip to content

Instantly share code, notes, and snippets.

pushd .
popd
Ctrl+z to postpond the process
bg to run the process in the background
disown to remove jobs from current shell.
@MagIciaNGTAO
MagIciaNGTAO / gist:8cc30837e83d7dcb8eff
Created April 30, 2014 13:52
ConcurrentModificationException
private class Itr implements Iterator<E> {
int cursor; // index of next element to return
int lastRet = -1; // index of last element returned; -1 if no such
int expectedModCount = modCount;
public boolean hasNext() {
return cursor != size;
}
@SuppressWarnings("unchecked")
.\node_modules\.bin\karma start --single-run
@MagIciaNGTAO
MagIciaNGTAO / gist:801ff8eccce4865077a7
Created March 22, 2015 16:54
Sites Production Performance
https://www.youtube.com/watch?v=VKTWdaupft0&feature=youtu.be&t=14m28s
@MagIciaNGTAO
MagIciaNGTAO / gist:08442a7289e535c5e47f
Created October 1, 2015 14:56
linux port -> pid -> program
netstat -tulpn | grep :2281
ps -ef | grep 8779
GRANT ALL PRIVILEGES ON *.* TO '<username>'@'<ip>' IDENTIFIED BY PASSWORD '<encoded password>' WITH GRANT OPTION