Skip to content

Instantly share code, notes, and snippets.

View flightblog's full-sized avatar

Steve Foster flightblog

View GitHub Profile
Status: 422
{
"message": "Validation Failed",
"errors": [
{
"resource": "Project",
"field": "name",
"message": "can't be blank"
}
http://www.wired.com/2015/10/the-most-important-startups-hardest-worker-isnt-a-person/
@flightblog
flightblog / gist:c37bdac5f5a523344135
Last active August 29, 2015 14:26
Golang/FreeBSD
# FreeBSD Droplet Configuration
### Maintenance:
sudo freebsd-update fetch install
sudo portsnap fetch update
### SSH Key
pbcopy < ~/.ssh/id_rsa.pub
@flightblog
flightblog / .zshrc
Created January 2, 2014 20:52
zshrc
ZSH_THEME="robbyrussell"
ZSH_THEME_GIT_PROMPT_PREFIX=" %{$fg[white]%}"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[red]%} *"
ZSH_THEME_GIT_PROMPT_UNTRACKED="%{$fg[red]%} ?"
ZSH_THEME_GIT_PROMPT_CLEAN=" %{$fg[green]%} "
Large Object Motions:
(
)
{
}
[[
[]
][
]]
[m
@flightblog
flightblog / json_to_postgre.php
Created October 23, 2012 03:54 — forked from mexitek/json_to_postgre.php
Script to automate an import process from .json file to postgre DB.
<?php
# Configure
$DB_USER = 'admin';
$DB_PASS = 'qwerty';
$DB_HOST = 'localhost';
$DB_NAME = 'postgis-2-0';
// Param 3 when ran in shell will override this value
$DB_TABLE = 'public.florida_establishments_garman';
// Param 2 when ran in shell will override this value
$CATEGORY = 'misc';