Skip to content

Instantly share code, notes, and snippets.

View jrichocean's full-sized avatar
🔱

j richardson jrichocean

🔱
View GitHub Profile
@jrichocean
jrichocean / pair
Last active August 29, 2015 14:09 — forked from beneggett/pair
#!/usr/bin/env bash
# Usage: pair [<github-user>] [-t <tmux-session>]
#
# Copy the command to clipboard which grants another person access to the tmux
# session on your machine. The resulting command is in format:
#
# ssh -t <USER>@<HOST> 'tmux attach -t <SESSION>'
#
# When given a GitHub username, it will adopt SSH keys from their GitHub
# account and add them to your `~/.ssh/authorized_keys`.

####Killing Sessions

ps aux | grep postgres
kill -9 process-number

-9 is dangerous, will force kill

####PG Restart

ps aux | grep postgres