Skip to content

Instantly share code, notes, and snippets.

@codeif
codeif / phpserialize.py
Created September 8, 2020 11:36 — forked from sj26/phpserialize.py
Python port of PHP serialize() and unserialize()
#!/usr/bin/python -u
"""
Python port of PHP serialize() and unserialize()
by Samuel Cochran <[email protected]>
I couldn't find a nice, fairly efficient implementation of serialize/unserialize for Python... so I wrote one. I didn't use str().partition because I wanted Python <2.5 compatibility.
TODO: Performance review. There's an awful lot of string copying. >.>
@codeif
codeif / tmux-cheatsheet.markdown
Created April 14, 2017 07:33 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname