Skip to content

Instantly share code, notes, and snippets.

@tonyhb
tonyhb / gist:c78c953b900f3a9eb63ddb4fc8686a0b
Last active February 23, 2018 00:29
Debian machine setup
View gist:c78c953b900f3a9eb63ddb4fc8686a0b
# Install kernel 4.14
echo 'deb http://http.debian.net/debian stretch-backports main' | sudo tee /etc/apt/sources.list.d/stretch-backports.list
sudo apt-get update
sudo apt-get -t stretch-backports install linux-image-amd64
# Install Docker
sudo apt-get -y install \
apt-transport-https \
ca-certificates \
curl \
View gist:4167e8d0b0e5098fc6f0
Here’s a list of some of the most useful adb and shell commands, when working with Android. Please feel free to add anything you think might be useful in the same format as the existing items.
NOTE : Shell commands can be run directly from adb by prepending adb shell to the beginning. Commands that require root will need adb shell su -c prepending.
$ ls -lR /dev/block
Outputs the entire contents of dev/block, recursively, including by-name and by-num blocks. This is extremely useful when trying to find out which mmc block different partitions are on.
$ cat /proc/mounts
Lists all mounted partitions (ext4, vfat, etc). Useful for quickly finding which mmc block system/data is on, and also useful for checking if system/data is mounted as read-write.
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active February 7, 2023 12:41
tmux shortcuts & cheatsheet
View tmux-cheatsheet.markdown

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname