Skip to content

Instantly share code, notes, and snippets.

View VaughnGH's full-sized avatar
💭

Vaughn GH VaughnGH

💭
View GitHub Profile
@VaughnGH
VaughnGH / .vimrc
Last active March 3, 2016 19:46
My VIM preferences
set number
set com=s1:/*,mb:*,ex:*/,://,b:#,:%,:XCOMM,n:>,b:-
set expandtab
set backspace=indent,eol,start " Make backspace work as expected
set mouse=nicr " Enables mouse scrolling in vim inside iterm2
set ruler
set rulerformat=%55(%{strftime('%a\ %b\ %e\ %I:%M\ %p')}\ %5l,%-6(%c%V%)\ %P%) "Add time to statusbar
set list lcs=tab:\¦\ "adds lines under tabs
set background=dark
"run python script
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#!/bin/bash
cd /
echo "Updating sources..."
apt-get update
echo "Installing Java..."
apt-get install default-jre-headless
echo "Downloading Elasticsearch..."
wget https://download.elastic.co/elasticsearch/release/org/elasticsearch/distribution/deb/elasticsearch/2.3.2/elasticsearch-2.3.2.deb
echo "Installing Elasticsearch..."
dpkg -i elasticsearch*.deb

NOTES

  • FIX TERMINAL WHEN SSH-ing THROUGH ROHAN:
    • edit .bashrc to have export TERM=xterm-256color
  • Test cluster:
    • Bucephalus - 6 cores
    • node1 - 4 cores
  • NAS benchmarks
Every third, `et':
(defun et(in)
(COND
( (EQUAL NIL in) NIL)
( (< (LIST-LENGTH in) 3) NIL )
( T (CONS (caddr in) (et (cdddr in))) )
)
)
@VaughnGH
VaughnGH / led.tsv
Last active September 12, 2017 22:44
voltage voltage_drop current is_visible
0.2 0.0413 0 0
0.5 0.128 0 0
0.8 0.67 0 0
1.2 1.134 0 0
1.5 1.395 0 0
1.8 1.71 0 0
2 1.897 0 0
2.2 2.136 0 0
2.5 2.4 0.01 1
@VaughnGH
VaughnGH / .tmux.conf
Last active February 17, 2018 16:38
Dotfiles
#####
# Instructions
####
# BE SURE TO INSTALL TMUX Plugin Manager
# https://github.com/tmux-plugins/tpm
# git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
# then Load tmux configurations
#> tmux source-file ~/.tmux.conf
Decimal Hexadecimal (0xXXXX) Company
0 0x0000 Ericsson Technology Licensing
1 0x0001 Nokia Mobile Phones
2 0x0002 Intel Corp.
3 0x0003 IBM Corp.
4 0x0004 Toshiba Corp.
5 0x0005 3Com
6 0x0006 Microsoft
7 0x0007 Lucent
8 0x0008 Motorola
@VaughnGH
VaughnGH / KCRW
Last active July 5, 2018 20:32
Bookmarklets
javascript:void(open('https://www.kcrw.com/embed-player', 'embed-player', 'width=750,height=175,resizable=no,directories=no,titlebar=no,toolbar=no,location=no,status=no,menubar=no,scrollbars=no'))