This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
line="-------------------------------------------------" | |
bigline="=====================================================" | |
squigline="~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~" | |
slashline="/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/" | |
msg="" | |
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | |
red="\033[0;31m" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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 file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Casey Flynn <[email protected]> | |
" 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' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Casey Flynn <[email protected]> | |
# January 18, 2019 | |
source /Users/caseyflynn/antigen.zsh | |
# Load the oh-my-zsh's library. | |
antigen use oh-my-zsh | |
# Bundles from the default repo (robbyrussell's oh-my-zsh). | |
antigen bundle git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package handlers | |
import ( | |
"html/template" | |
"io/ioutil" | |
"log" | |
"net/http" | |
) | |
// HomeHandler / route handler |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Chapter 1 | |
###### p1 | |
- Reason for storage engine architecture is to separate query processing and data | |
storage & retrieval | |
###### p4 | |
- two lock types: shared locks, exclusive locks (read locks, write locks) - lock granularity is customizable in MySQL | |
- table locks - lowest overhead | |
- READ LOCAL - table lock, allows some types of concurrent write ops |
OlderNewer