Skip to content

Instantly share code, notes, and snippets.

View harrisoncramer's full-sized avatar

Harrison (Harry) Cramer harrisoncramer

View GitHub Profile
This file has been truncated, but you can view the full file.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>AlternateMouseScroll</key>
<true/>
<key>AppleAntiAliasingThreshold</key>
<integer>1</integer>
<key>ApplePressAndHoldEnabled</key>
<false/>
# CoC-Install coc-snippets
# A valid snippet should starts with:
#
# snippet trigger_word [ "description" [ options ] ]
#
# and end with:
#
# endsnippet
@harrisoncramer
harrisoncramer / .zshrc
Last active August 9, 2021 16:00
My ZSHRC File
# This file is symlinked in my home directory --> ln -s ~/.oh-my-zsh/custom/.zshrc ~/.zshrc
# That's because ZSH expects to see a .zshrc file in your home directory
# Then provide the path to your .oh-my-zsh installation, so that we can source all the other configurations in this folder.
export ZSH="/Users/harrisoncramer/.oh-my-zsh"
ZSH_THEME="agnoster"
plugins=(zsh-syntax-highlighting zsh-autosuggestions fzf git)
source $ZSH/oh-my-zsh.sh
prompt_context() {
prompt_segment black default "🚀 "
}
@harrisoncramer
harrisoncramer / newproject.sh
Created April 13, 2020 22:50
setup_new_project
#!/bin/bash
mkcd () {
mkdir "$1"
cd "$1"
}
if [ $# -eq 0 ]; then
echo "Must provide project name";
exit 1;
fi
@harrisoncramer
harrisoncramer / .babelrc
Last active April 13, 2020 23:46
eslint_prettier_setup
{
"presets": [
"@babel/preset-env"
]
}
@harrisoncramer
harrisoncramer / .vimrc
Last active August 9, 2021 16:00
My VimRC File
set nocompatible " required
filetype off " required
""""""""""""""""""
" PLUGINS
""""""""""""""""""
call plug#begin('~/.vim/plugged')
" CORE FUNCTIONALITY "
Plug 'neoclide/coc.nvim', {'branch': 'release'} " Autocompletion w/ language server
Plug 'tpope/vim-dispatch' " Allows functions to run asyncrhonously from within VIM (:Dispatch)
@harrisoncramer
harrisoncramer / test.json
Created March 29, 2020 21:23
Artillery Test Example in JSON
{
"config": {
"target": "http://localhost:3005",
"phases": [
{
"duration": 10,
"arrivalRate": 20
},
{
"duration": 10,
@harrisoncramer
harrisoncramer / killport.sh
Last active March 12, 2020 00:32
Killport
#!/bin/bash
if [ $# -eq 0 ]; then
echo 'Must provide ports.'
exit 1
fi
for var in "$@"
do
if [ "$var" -eq "$var" ] 2>/dev/null
# Get PID of process running on port 9229
lsof -i :9229 | awk 'NR>1 {print $2}'
# Kill port running on port 9229
lsof -i :9229 | awk 'NR>1 {print $2}' | xargs kill
@harrisoncramer
harrisoncramer / redeploy.sh
Created December 26, 2019 17:25
Redeploy Script
#!/bin/bash
echo "Starting deployment and assigning variables...\n"
usage(){
echo "$0 NAME_OF_PM2 NAME_OF_STARTFILE"
exit 1
}
FOLDER=$1;
STARTFILE=$2;