####Killing Sessions
ps aux | grep postgres
kill -9 process-number
-9 is dangerous, will force kill
####PG Restart
ps aux | grep postgres
####Killing Sessions
ps aux | grep postgres
kill -9 process-number
-9 is dangerous, will force kill
####PG Restart
ps aux | grep postgres
#!/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`. |
#!/bin/bash | |
NODE_VERSION=0.4.7 | |
NPM_VERSION=1.0.94 | |
# Save script's current directory | |
DIR="$( cd -P "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | |
#cd "${DIR}" | |
# |
PostgreSQL 9.5 was released on Jan. 7 2016, if you upgrade with homebrew you might come across error logs in postgres that look like:
DETAIL: The data directory was initialized by PostgreSQL version 9.4, which is not compatible with this version 9.5.0.
To upgrade from Postgres 9.4 to 9.5(which is awesome) without losing any local data, you can upgrade with these steps...
##Steps
// MultiExporter.jsx | |
// Version 0.1 | |
// Version 0.2 Adds PNG and EPS exports | |
// Version 0.3 Adds support for exporting at different resolutions | |
// Version 0.4 Adds support for SVG, changed EPS behaviour to minimise output filesize | |
// Version 0.5 Fixed cropping issues | |
// Version 0.6 Added inner padding mode to prevent circular bounds clipping | |
// | |
// Copyright 2013 Tom Byrne | |
// Comments or suggestions to tom@tbyrne.org |
##Installing Postgresql Install with Homebrew:
brew install postgresql
Note: Read the Caveats! The Homebrew installation gives extra notes to finish.
Create LaunchAgents Directory:
mkdir -p ~/Library/LaunchAgents