brew update brew install postgresql
Create a database:
initdb /usr/local/var/postgres
If this is your first install, automatically load on login with:
mkdir -p ~/Library/LaunchAgents
| #!/bin/bash | |
| projectName=${PWD##*/} # Basename of current dir | |
| gitRemote=~/Dropbox/src/${projectName}.git | |
| echo "Creating bare repo in ${gitRemote}" | |
| git init --bare ${gitRemote} | |
| echo "Adding new remote 'dropbox'" | |
| git remote add dropbox ${gitRemote} | |
| git remote -v |
| " ---------------------------------------------------------------------------- | |
| " vimawesome.com | |
| " ---------------------------------------------------------------------------- | |
| function! VimAwesomeComplete() abort | |
| let prefix = matchstr(strpart(getline('.'), 0, col('.') - 1), '[.a-zA-Z0-9_/-]*$') | |
| echohl WarningMsg | |
| echo 'Downloading plugin list from VimAwesome' | |
| echohl None | |
| ruby << EOF | |
| require 'json' |
| import React from "react/addons"; | |
| import m from "./m"; | |
| // https://www.youtube.com/watch?v=GOiVYbWJDOA | |
| export default class CyaSS extends React.Component { | |
| constructor() { | |
| super(); | |
| this.state = { | |
| hover: false, | |
| active: false |
| " vim:fdm=marker | |
| " Vundle {{{ | |
| set nocompatible | |
| filetype off | |
| set rtp+=~/.vim/bundle/vundle/ | |
| call vundle#rc() | |
| Bundle 'airblade/vim-gitgutter' | |
| Bundle 'bling/vim-airline' | |
| Bundle 'chriskempson/base16-vim' |
brew update brew install postgresql
Create a database:
initdb /usr/local/var/postgres
If this is your first install, automatically load on login with:
mkdir -p ~/Library/LaunchAgents
| $ git branch -r --merged | | |
| grep origin | | |
| grep -v '>' | | |
| grep -v master | | |
| xargs -L1 | | |
| awk '{split($0,a,"/"); print a[2]}' | | |
| xargs git push origin --delete |
| (function($){ | |
| // Store fetched long URLs here. | |
| var cache = {}; | |
| $.longUrl = function( url, callback, options ) { | |
| // Override defaults with specified options. | |
| options = $.extend( {}, $.longUrl.options, options ); | |
| var params = {}; |