Skip to content

Instantly share code, notes, and snippets.

@kamrankhan54
Last active August 29, 2015 14:16
Show Gist options
  • Select an option

  • Save kamrankhan54/5876ad1f5ddb11345fa9 to your computer and use it in GitHub Desktop.

Select an option

Save kamrankhan54/5876ad1f5ddb11345fa9 to your computer and use it in GitHub Desktop.
Snippets for Dev'ing
This will reload any changes you make in the service that you watch -
bosco cdn -t summary -w the-thing-you-want-to-watch
This will let you stop a service -
pm2 stop service-name
This will list all the services which are currently running/stopped -
pm2 list
This will restart a service -
pm2 restart service-name
List used ports -
lsof -i -P | grep -i “listen"
Revert to a commit on working directory -
http://stackoverflow.com/questions/20324638/reverting-specific-commits-from-git
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment