Skip to content

Instantly share code, notes, and snippets.

View cchamberlain's full-sized avatar

Cole Chamberlain cchamberlain

View GitHub Profile
@cchamberlain
cchamberlain / .agignore
Last active August 29, 2015 14:21
My .agignore file
node_modules/
assets/js/
assets/css/
assets/fonts/
assets/img/
assets/maps/
assets/styl/
assets/stylus/
assets/swatch/
log/
@cchamberlain
cchamberlain / config.json
Created May 31, 2015 18:50
tig bootstrap config.json
{
"vars": {
"@gray-base": "#000",
"@gray-darker": "lighten(@gray-base, 13.5%)",
"@gray-dark": "lighten(@gray-base, 20%)",
"@gray": "lighten(@gray-base, 33.5%)",
"@gray-light": "lighten(@gray-base, 46.7%)",
"@gray-lighter": "lighten(@gray-base, 93.5%)",
"@brand-primary": "darken(#275da1, 6.5%)",
"@brand-success": "#5cb85c",
# Atom Cheatsheet.
# Project Key Bindings.
- 'cmd-shift-p': open the command palette.
- 'cmd-p' or 'cmd-t': open the fuzzy finder to find a file.
- 'cmd-b': look for a file that is already open.
- 'cmd-shift-b': search the list of files modified and untracked in your project repository.
- 'ctrl-0': open and focus the the tree view.
@cchamberlain
cchamberlain / .zshrc
Last active September 8, 2015 01:23
dot-zshrc
#!/usr/bin/env zsh
if [[ -s "$ZPREZTODIR/init.zsh" ]]; then
. "$ZPREZTODIR/init.zsh"
fi
. "$ZSCRIPTDIR/checks.zsh"
. "$ZSCRIPTDIR/colors.zsh"
. "$ZSCRIPTDIR/setopt.zsh"
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc
. ~/.bashrc
mkdir ~/local
mkdir ~/node-latest-install
cd ~/node-latest-install
curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1
./configure --prefix=~/local
make install # ok, fine, this step probably takes more than 30 seconds...
curl https://www.npmjs.org/install.sh | sh
@cchamberlain
cchamberlain / install-npm-next.sh
Created July 6, 2015 06:02
install-npm-next.sh
#!/bin/sh
# A word about this shell script:
#
# It must work everywhere, including on systems that lack
# a /bin/bash, map 'sh' to ksh, ksh97, bash, ash, or zsh,
# and potentially have either a posix shell or bourne
# shell living at /bin/sh.
#
# See this helpful document on writing portable shell scripts:
@cchamberlain
cchamberlain / git-fix.ps1
Last active July 5, 2022 16:31
Applies registry change to disable luafv and make git much faster on windows (requires restart)
<#
This script will disable luafv on your system and likely make Windows versions of git faster after restarting.
### DISCLAIMER: THIS WILL MODIFY HOW SECURITY WORKS ON YOUR SYSTEM AND I WOULD ONLY USE ON A DEV MACHINE ###
### USE AT YOUR OWN RISK ###
#>
Push-Location
Set-Location HKLM:\SYSTEM\CurrentControlSet\Services\luafv
Set-ItemProperty . Start 4
@cchamberlain
cchamberlain / .vimrc
Last active March 30, 2016 17:42
dot-vimrc
execute pathogen#infect()
""" SYNTAX """
syntax on
syntax enable " enable syntax processing
""" SETTINGS """
set tabstop=2 " number of visual spaces per tab when opened
set expandtab " use spaces instead of tabs
@cchamberlain
cchamberlain / .zshenv
Last active August 29, 2015 14:25
dot-zshenv
#!/usr/bin/env zsh
#
# Defines Environment Variables
# RESET ZSHENV FILE VIA ENVIRONMENT VARIABLE
export USR_ZSHENV_PATH="$HOME/.zshenv"
if [[ $USR_ZSHENV_RESET -eq 1 ]]; then
unset USR_ZSHENV_RESET
if [[ -z "$GIST_USR_ZSHENV_ID" ]]; then
export GIST_USR_ZSHENV_ID="ad8ae7ce3ef2a965295d"
@cchamberlain
cchamberlain / DapperService.cs
Last active March 20, 2019 06:28
DapperService.cs
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Data.SqlClient;
using System.Linq;
using System.Reflection;
using System.Runtime.Caching;
using System.Threading.Tasks;