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
import time | |
import hashlib | |
import sys | |
from queue import Queue | |
def get_seed(): | |
t = str(time.time()).encode() | |
h = hashlib.md5(t) | |
return int(h.hexdigest(), 16) |
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/bash | |
git clone -q https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim | |
echo "Installed Vundle" | |
curl -s https://raw.githubusercontent.com/int3rlop3r/vimrc/master/vimrc -o ~/.vimrc | |
echo "Downloaded custom .vimrc" | |
vim +PluginInstall +qall | |
echo "Done!" |
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
The Ubiquitous B-Tree | |
http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.96.6637&rep=rep1&type=pdf | |
The Log-Structured Merge-Tree (LSM-Tree) | |
http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.44.2782&rep=rep1&type=pdf | |
With Microscope and Tweezers: An Analysis of the Internet Virus of November 1988 | |
http://www.ece.cmu.edu/~ece845/docs/eichin.pdf | |
Bigtable: A Distributed Storage System for Structured Data |
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
import csv | |
class DictReaderInsensitive(csv.DictReader): | |
# This class overrides the csv.fieldnames property. | |
# All fieldnames are without white space and in lower case | |
@property | |
def fieldnames(self): | |
return [field.strip().lower().replace(' ', '_') \ | |
for field in csv.DictReader.fieldnames.fget(self)] |
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
# oh-my-zsh Bureau Theme | |
### NVM | |
ZSH_THEME_NVM_PROMPT_PREFIX="%B⬡%b " | |
ZSH_THEME_NVM_PROMPT_SUFFIX="" | |
### Git [±master ▾●] | |
ZSH_THEME_GIT_PROMPT_PREFIX="[%{$fg_bold[green]%}±%{$reset_color%}%{$fg_bold[white]%}" |
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
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\][\W]\[\033[00m\]\$ ' |