Skip to content

Instantly share code, notes, and snippets.

View okbel's full-sized avatar
💭
idle computing

Bel okbel

💭
idle computing
View GitHub Profile

Keybase proof

I hereby claim:

  • I am okbel on github.
  • I am okbel (https://keybase.io/okbel) on keybase.
  • I have a public key whose fingerprint is FF23 2330 AD41 61EE FBD5 F420 D8F3 259E DBB9 3FCD

To claim this, I am signing this object:

@okbel
okbel / random.sh
Created August 4, 2016 14:17
Random key generator bash
(base64 /dev/urandom | tr -d '/+' | head -c 32 | tr '[:upper:]' '[:lower:]')
@okbel
okbel / pm2 > forever
Last active April 16, 2016 06:26
pm2 > forever
pm2 > forever
Basically it took me less than five minutes to configure pm2 while foreverjs took ... forever ( > 30 mins )
The reason behind it: pm2 allows you to name your process the moment you are starting it. So, you can handle it by just
calling it and does not create several instances without reason.
Proof:
forever start --uid "server" server.js ----- pm2 start server.js -n server
## This creates a new instance ##This recognizes the old instance and does not create another