Skip to content

Instantly share code, notes, and snippets.

View int3rlop3r's full-sized avatar
🎯
Focusing

Jonathan Fernandes int3rlop3r

🎯
Focusing
View GitHub Profile
@int3rlop3r
int3rlop3r / p1.py
Last active December 25, 2021 12:24
A poor man's random number generator
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)
@int3rlop3r
int3rlop3r / vimsetup.bash
Created January 7, 2021 19:17
Automatically configure vim
#!/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!"
@int3rlop3r
int3rlop3r / Papers
Last active May 16, 2018 05:34
Papers to read
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
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)]
@int3rlop3r
int3rlop3r / bureau.zsh-theme
Created March 11, 2015 07:20
OMZ: bureau.zsh-theme (modified)
# 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]%}"
@int3rlop3r
int3rlop3r / $PS1
Last active August 29, 2015 14:16
My PS1
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\][\W]\[\033[00m\]\$ '