Skip to content

Instantly share code, notes, and snippets.

View dropofwill's full-sized avatar

Will Paul dropofwill

View GitHub Profile
@dropofwill
dropofwill / # neovim - 2017-01-28_16-29-32.txt
Created January 28, 2017 21:31
neovim (neovim/neovim/neovim) on macOS 10.11.6 - Homebrew build logs
Homebrew build logs for neovim/neovim/neovim on macOS 10.11.6
Build date: 2017-01-28 16:29:32
@dropofwill
dropofwill / .vimrc
Last active July 19, 2017 15:24
bash stuff
" Use Vim settings, not compatible with legacy Vi
set nocompatible
call plug#begin('~/.local/share/nvim/plugged')
" Commenting plugins
Plug 'tomtom/tcomment_vim'
" Pair quotes, tags, etc.
Plug 'jiangmiao/auto-pairs'
@dropofwill
dropofwill / ZSH-Scripts.sh
Last active August 29, 2015 14:25
Some fun zsh scripts to add to your .zshrc
# Run a simple ruby server on port 3000 in the current dir
# or another port that you pass in
#
# usage default port: $ serve
# custom port: $ serve 4000
#
function serve {
port="${1:-3000}"
ruby -run -e httpd . -p $port
}
@dropofwill
dropofwill / vimrc
Last active August 29, 2015 14:22
dotfiles
" Use Vim settings, not compatible with legacy Vi
set nocompatible
" Vundle
" set the runtime path to include Vundle and initialize
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
" All the plugins
upstream app_party_penguin {
server 0.0.0.0:3000;
}
server {
listen 80;
server_name penguinparty.rit.edu;
location / {
proxy_pass http://app_party_penguin;
@dropofwill
dropofwill / custom.service
Last active August 29, 2015 14:20
A sample Upstart and System.d script
[Unit]
Description=Custom Start Up Service
[Service]
ExecStartPre=/bin/mkdir -p /var/log/customprocess
ExecStartPre=/bin/touch /var/log/customprocess/custom.log
ExecStart=/var/custom_service/our_service.sh
[Install]
WantedBy=multi-user.target
@dropofwill
dropofwill / sharkcpp-0.1-1.x86_64.rpm
Last active November 23, 2023 21:20
RPM Packaging C++ program
@dropofwill
dropofwill / LICENSE.txt
Last active August 29, 2015 14:15
Arduino LED Matrix Code
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or distribute this software, either in source code form or as a compiled binary, for any purpose, commercial or non-commercial, and by any means.
In jurisdictions that recognize copyright laws, the author or authors of this software dedicate any and all copyright interest in the software to the public domain. We make this dedication for the benefit of the public at large and to the detriment of our heirs and successors. We intend this dedication to be an overt act of relinquishment in perpetuity of all present and future rights to this software under copyright law.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRAC
@dropofwill
dropofwill / build_data
Last active August 29, 2015 14:06
Reported Flourishing Behaviors in Children Related to Poverty Level
require 'CSV'
require 'json'
require 'pp'
require 'descriptive_statistics'
# get the data into memory
def parse_csv
i = 0
parse = []
question_row = []
@dropofwill
dropofwill / serve
Last active August 29, 2015 14:06
Shell Function for Serving pwd on 0.0.0.0
# usage default port: $ serve
# custom port: $ serve 4000
function serve {
port="${1:-3000}"
ruby -run -e httpd . -p $port
}