Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am ahelal on github.
  • I am ahelal (https://keybase.io/ahelal) on keybase.
  • I have a public key ASAViu1Peang-twkb8ZKxKIS4FR06VnVanNAL3aRkxknxQo

To claim this, I am signing this object:

@ahelal
ahelal / useradd.sh
Last active December 12, 2016 21:27
simulate useradd for alpine
#!/bin/sh
set -e
while test $# -gt 0
do
case "$1" in
-m)
# create homedir
shift 1 ;;
-d)
_home="$2"
@ahelal
ahelal / debug_https
Created December 20, 2015 19:18
urllib2 debug traffic
# support https
#handler=urllib2.HTTPSHandler(debuglevel=2)
handler=urllib2.HTTPSHandler(debuglevel=2)
opener = urllib2.build_opener(handler)
urllib2.install_opener(opener)
r = urllib2.urlopen("https://google.com")