Open a psql session (generally psql postgres
if installed with homebrew on mac)
Then:
CREATE ROLE "<user_name>" WITH SUPERUSER LOGIN PASSWORD '<user_password>';
CREATE DATABASE "<database_name>" WITH OWNER "<user_name>";
import R from 'ramda'; | |
export default class Container { | |
constructor() { | |
this.contents = {}; | |
} | |
get(name) { | |
if (!(name in this.contents)) { | |
throw Error('Container has nothing registered for key ' + name); |
The coding conventions match with the Linux kernel guideline, so here | |
we go with a copy of the Linux kernel coding style: | |
Linux kernel coding style | |
This is a short document describing the preferred coding style for the | |
linux kernel. Coding style is very personal, and I won't _force_ my | |
views on anybody, but this is what goes for anything that I have to be | |
able to maintain, and I'd prefer it for most other things too. Please | |
at least consider the points made here. |
Open a psql session (generally psql postgres
if installed with homebrew on mac)
Then:
CREATE ROLE "<user_name>" WITH SUPERUSER LOGIN PASSWORD '<user_password>';
CREATE DATABASE "<database_name>" WITH OWNER "<user_name>";
I hereby claim:
To claim this, I am signing this object:
2015/04/25 21:57:22 INF 1 (127.0.0.1:4160) connecting to nsqd | |
2015/04/25 21:57:22 INF 2 (127.0.0.1:4160) connecting to nsqd | |
2015/04/25 21:57:22 INF 3 (127.0.0.1:4160) connecting to nsqd | |
2015/04/25 21:57:22 INF 4 (127.0.0.1:4160) connecting to nsqd | |
2015/04/25 21:57:22 INF 5 (127.0.0.1:4160) connecting to nsqd | |
2015/04/25 21:57:22 INF 6 (127.0.0.1:4160) connecting to nsqd | |
2015/04/25 21:57:22 INF 7 (127.0.0.1:4160) connecting to nsqd | |
2015/04/25 21:57:22 ERR 5 (127.0.0.1:4160) IO error - read tcp 127.0.0.1:4160: connection reset by peer | |
2015/04/25 21:57:22 INF 5 (127.0.0.1:4160) beginning close | |
2015/04/25 21:57:22 INF 5 (127.0.0.1:4160) readLoop exiting |
To install:
curl -o .git/hooks/pre-commit http://git.io/jSry
chmod +x .git/hooks/pre-commit
! terminal colors ------------------------------------------------------------ | |
! tangoesque scheme | |
*background: #111111 | |
*foreground: #babdb6 | |
! Black (not tango) + DarkGrey | |
*color0: #000000 | |
*color8: #555753 | |
! DarkRed + Red | |
*color1: #ff6565 |
set -e | |
sudo apt-get update -y | |
sudo apt-get install -y curl tmux vim git bzr htop | |
curl -o $HOME/go.tar.gz https://storage.googleapis.com/golang/go1.4.1.linux-amd64.tar.gz | |
tar -xzf $HOME/go.tar.gz | |
rm $HOME/go.tar.gz | |
sudo locale-gen en_CA.UTF-8 |
// from https://github.com/benschw/weather-go/blob/master/location/location_service_test.go | |
package location | |
import ( | |
"fmt" | |
"github.com/benschw/opin-go/config" | |
"github.com/benschw/opin-go/rando" | |
"github.com/benschw/opin-go/rest" | |
"github.com/benschw/weather-go/location/api" | |
"github.com/benschw/weather-go/location/client" |