Skip to content

Instantly share code, notes, and snippets.

View cflynn07's full-sized avatar

Casey Flynn cflynn07

View GitHub Profile
@cflynn07
cflynn07 / .vimrc
Last active January 22, 2019 21:36
" Casey Flynn <cflynn.us@gmail.com>
" Dec 12, 2018
" Specify a directory for plugins
call plug#begin('~/.vim/plugged')
Plug 'ctrlpvim/ctrlp.vim'
Plug 'editorconfig/editorconfig-vim'
Plug 'fatih/vim-go'
Plug 'godlygeek/tabular'
<?xml version="1.0"?>
<root>
<item>
<name>CTRL+CMD+H to CTRL+CMD+LEFT_ARROW</name>
<identifier>private.ctrl_cmd_h_to_ctrl_cmd_left_arrow</identifier>
<autogen>
__KeyToKey__
KeyCode::H, ModifierFlag::OPTION_L,
KeyCode::CURSOR_LEFT, ModifierFlag::OPTION_L | ModifierFlag::COMMAND_L
# This is the default .slate file.
# If no ~/.slate file exists this is the file that will be used.
config defaultToCurrentScreen true
cosdnfig nudgePercentOf screenSize
config resizePercentOf screenSize
alias full move screenOriginX;screenOriginY screenSizeX;screenSizeY
alias lefthalf move screenOriginX;screenOriginY screenSizeX/2;screenSizeY
alias righthalf move screenOriginX+screenSizeX/2;screenOriginY screenSizeX/2;screenSizeY
echo 'kern.maxfiles=20480' | sudo tee -a /etc/sysctl.conf
echo -e 'limit maxfiles 8192 20480\nlimit maxproc 1000 2000' | sudo tee -a /etc/launchd.conf
echo 'ulimit -n 4096' | sudo tee -a /etc/profile
sudo shutdown -r now
@cflynn07
cflynn07 / DOSetup
Last active December 25, 2015 16:29
#!/usr/bin/env bash
apt-get install git -y
apt-get install curl -y
# install RVM
curl -o rvm.sh -L https://get.rvm.io
chmod +x rvm.sh
./rvm.sh stable
source /etc/profile.d/rvm.sh
@cflynn07
cflynn07 / setup.sh
Last active December 24, 2015 16:29
#!/bin/sh
line="-------------------------------------------------"
bigline="====================================================="
squigline="~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"
slashline="/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/"
msg=""
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
red="\033[0;31m"
@cflynn07
cflynn07 / server.coffee
Last active December 15, 2015 16:59
Configuring main file in express.io app to share routes between socket.io and HTTP requests for an API that's accessible via websockets and HTTP
fs = require 'fs'
express = require 'express.io'
path = require 'path'
#If we didn't get to server.js from bootstrap.js
if !GLOBAL.asset_hash?
GLOBAL.asset_hash = 'main'
#Read dotCloud ENV file if exists
try