Skip to content

Instantly share code, notes, and snippets.

@wkei
Last active February 20, 2018 10:03
Show Gist options
  • Save wkei/c73b154d9d47a25192e1d17f67feaf4a to your computer and use it in GitHub Desktop.
Save wkei/c73b154d9d47a25192e1d17f67feaf4a to your computer and use it in GitHub Desktop.

Find running puma

ps aux | grep puma

Find running port

lsof -i :3000

Watch log file in realtime

tail -f xx.log

Start/Restart/Stop nginx on macOS

brew services start nginx
brew services restart nginx
brew services stop nginx

or

nginx
nginx -s reload
nginx -s stop

Update out-of-date ubuntu version

do-release-upgrade

Fast scp

add below to ~/.ssh/config

Host vultr
  Hostname xxx.xxx.xxx.xxx
  User kei

use command to scp

scp vultr:/path/to/your/file ./
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment