Skip to content

Instantly share code, notes, and snippets.

View bhatti's full-sized avatar

Shahzad Bhatti bhatti

View GitHub Profile
@bhatti
bhatti / TaskConcurrencyManifesto.md
Created October 19, 2020 22:20 — forked from lattner/TaskConcurrencyManifesto.md
Swift Concurrency Manifesto
@bhatti
bhatti / recover_source_code.md
Created March 12, 2017 01:37 — forked from simonw/recover_source_code.md
How to recover lost Python source code if it's still resident in-memory

How to recover lost Python source code if it's still resident in-memory

I screwed up using git ("git checkout --" on the wrong file) and managed to delete the code I had just written... but it was still running in a process in a docker container. Here's how I got it back, using https://pypi.python.org/pypi/pyrasite/ and https://pypi.python.org/pypi/uncompyle6

Attach a shell to the docker container

Install GDB (needed by pyrasite)

apt-get update && apt-get install gdb
@bhatti
bhatti / springer-free-maths-books.md
Created December 29, 2015 02:21 — forked from bishboria/springer-free-maths-books.md
Springer have made a bunch of maths books available for free, here are the direct links
@bhatti
bhatti / hack.sh
Created April 1, 2012 18:46 — forked from erikh/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#