Skip to content

Instantly share code, notes, and snippets.

@verybada
verybada / x64 python
Last active March 5, 2018 06:33
CC-2193, x64 toolchain
# CC-2193, x64 toolchain
# TODO
1. shall we still need to support x86_es
2. Why there is still .pyc in python-lib
# Prepare necessary libraries
* There is no third-party libraries in x64 toolchain (libssl, libcrypto ...)
1. Build x64 library first
```
> @NasX86/Model/TS-X51
@verybada
verybada / str_reverse
Last active August 29, 2015 14:12
How to reverse a string in python
def str_reverse(str):
return str[::-1]
test_str = "this is test string"
print "Origin string={}, after revert={}".format(test_str, str_reverse(test_str))

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@verybada
verybada / tmux.md
Last active August 29, 2015 14:11 — forked from andreyvit/tmux.md

tmux cheat sheet

(C-x means ctrl+x, M-x means alt+x)

Prefix key

The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:

remap prefix to Control + a