Skip to content

Instantly share code, notes, and snippets.

@jubel-han
jubel-han / redis_key_sizes.sh
Created March 27, 2017 08:52 — forked from epicserve/redis_key_sizes.sh
A simple script to print the size of all your Redis keys.
#!/usr/bin/env bash
# This script prints out all of your Redis keys and their size in a human readable format
# Copyright 2013 Brent O'Connor
# License: http://www.apache.org/licenses/LICENSE-2.0
human_size() {
awk -v sum="$1" ' BEGIN {hum[1024^3]="Gb"; hum[1024^2]="Mb"; hum[1024]="Kb"; for (x=1024^3; x>=1024; x/=1024) { if (sum>=x) { printf "%.2f %s\n",sum/x,hum[x]; break; } } if (sum<1024) print "1kb"; } '
}
get python dependency graph
install snake food
sudo apt-get install snakefood
http://furius.ca/snakefood/
install graphviz
@jubel-han
jubel-han / GitConfigHttpProxy.md
Created January 23, 2018 04:55 — forked from evantoli/GitConfigHttpProxy.md
Configure Git to use a proxy

Configure Git to use a proxy

##In Brief

You may need to configure a proxy server if you're having trouble cloning or fetching from a remote repository or getting an error like unable to access '...' Couldn't resolve host '...'.

Consider something like:

@jubel-han
jubel-han / iterm2-solarized.md
Created July 4, 2018 05:50 — forked from kevin-smets/iterm2-solarized.md
iTerm2 + Oh My Zsh + Solarized color scheme + Meslo powerline font + [Powerlevel9k] - (macOS)

Default

Default

Powerlevel9k

Powerlevel9k

@jubel-han
jubel-han / helm-cheatsheet.md
Created July 17, 2018 07:49 — forked from tuannvm/argo.md
#Helm #Kubernetes #cheatsheet, happy helming!