John-Paul Bader hukl

View hover.html
1 2 3 4 5 6 7 8 9 10
<!DOCTYPE html>
 
<html>
<head>
<title>foo</title>
<style>
div#wrapper {
width: 800px;
height: 200px;
background-color: gray;
View gist:10364804
1 2 3 4 5 6 7 8 9 10
#!/bin/sh
#
# BEFORE: DAEMON
# PROVIDE: ezjail.example.config
#
# ezjail flavour example
 
. /etc/rc.subr
 
name=ezjail.flavour.bijail
View tmux with synchronized panes.sh
1 2 3 4 5 6 7 8 9 10
# ZSH Script to open a tmux session for every host passed as CLI argument and synchronizes all the panes.
# Invoke with: ./cluster.zsh user@host1 user@host2 user@host3
 
#!/bin/zsh
 
while (( $# != 0 )) {
tmux splitw "ssh $1"
tmux select-layout tiled
shift
}
View gist:6020656
1 2 3 4 5 6 7 8 9 10
___________________________
/| /| | |
||__|| | Please don't |
/ O O\__ feed |
/ \ the trolls |
/ \ \ |
/ _ \ \ ----------------------
/ |\____\ \ ||
/ | | | |\____/ ||
/ \|_|_|/ | __||
View preflight.md

Features

web interface to create checklist templates for given tasks like new release/deployment

  • template has groups of checks e.g. localization, frontend, backend, payment, virality related
  • you can start a checklist session from a template which can be shared with a url among coworkers
  • a session is a full copy of the given template i.e. changing a template does not change previous sessions
  • the progress of a checklist session is persisted
  • the progress is shown for each group and the whole checklist
  • the progress is updated for all participants of the session via SSE / Ajax Foo
  • the users authenticate via oauth (wooga.google.com)
View erlang_ideas.md
  • implement input agnostic type conversion functions e.g. to_integer, to_list, to_binary
  • helper functions that make it super easy to create supervisor childspecs
  • add a metric ton of support functions to traverse, merge, filter, search (,…) proplists, dicts, orddicts etc.
  • build a decent json support lib - the way you have to work with jiffy for example is painful
  • configuration and environment management
View LSCOLORS
1 2
LSCOLORS="exfxcxdxbxegedabagacad"
LS_COLORS="di=34;40:ln=35;40:so=32;40:pi=33;40:ex=31;40:bd=34;46:cd=34;43:su=0;41:sg=0;46:tw=0;42:ow=0;43:"
View gist:2148571
1 2 3 4 5 6 7
With Python
 
cat big.json | python -mjson.tool > ~/Desktop/big_tidy.json
 
With Ruby (Keeps the order of the keys in ruby 1.9.x)
 
cat big.json | ruby -e 'require "json"; puts JSON.pretty_generate(JSON.parse(STDIN.read)) ' > big_tidy.json
View gist:1919227
1 2 3 4 5 6 7 8 9 10
1024 E 24 yotta Y
1021 E 21 zetta Z
1018 E 18 exa E
1015 E 15 peta P
1012 E 12 tera T
109 E 9 giga G
106 E 6 mega M
103 E 3 kilo k
102 E 2 hecto h
101 E 1 deca da
View gist:1401981
1 2 3 4 5 6 7
[hukl@nine ~/Desktop/erlang:master]$ erl
Erlang R14B04 (erts-5.8.5) [source] [64-bit] [smp:8:8] [rq:8] [async-threads:0] [hipe] [kernel-poll:false]
 
*** ERROR: Shell process terminated! ***
{error_logger,{{2011,11,28},{21,45,14}},"~s~n",["Error in process <0.23.0> with exit value: {{case_clause,{error,{{bad_object,eval_work_list},\"/Users/hukl/.erlang-hist.nonode@nohost\"}}},[{group_history,load,2},{group_history,load,2},{group,server,3}]}\n"]}
{error_logger,{{2011,11,28},{21,45,14}},"~s~n",["Error in process <0.24.0> with exit value: {{case_clause,{error,{{bad_object,eval_work_list},\"/Users/hukl/.erlang-hist.nonode@nohost\"}}},[{group_history,load,2},{group_history,load,2},{group,server,3}]}\n"]}
{error_logger,{{2011,11,28},{21,45,14}},supervisor_report,[{supervisor,{<0.21.0>,user_sup}},{errorContext,child_terminated},{reason,{{case_clause,{error,{{bad_object,eval_work_list},"/Users/hukl/.erlang-hist.nonode@nohost"}}},[{group_history,load,2},{group_history,load,2},{group,server,3}]}},{offender,[{pid,<0.23.0
Something went wrong with that request. Please try again.