Skip to content

Instantly share code, notes, and snippets.

Avatar
💭

Vaughn GH VaughnGH

💭
View GitHub Profile
@VaughnGH
VaughnGH / KCRW
Last active Jul 5, 2018
Bookmarklets
View KCRW
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'))
View bt.tsv
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
View .tmux.conf
#####
# 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
View led.tsv
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
View everythird
Every third, `et':
(defun et(in)
(COND
( (EQUAL NIL in) NIL)
( (< (LIST-LENGTH in) 3) NIL )
( T (CONS (caddr in) (et (cdddr in))) )
)
)
View notes.markdown

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
View install_ELK.sh
#!/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
View KMeans.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@VaughnGH
VaughnGH / .vimrc
Last active Mar 3, 2016
My VIM preferences
View .vimrc
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