Skip to content

Instantly share code, notes, and snippets.

Access Host Machine Localhost:
10.0.2.2
Access Guest Machine Localhost:
1. In VM settings under 'Network', change 'Attached to' from 'NAT' to
'Bridged Adapter'.
2. Find IP address of VM and use it to access.
Clear Terminal History
1. For current session history:
history -c
2. For all history:
rm ~/.bash_historys
Create Install ISO (10.9 Mavericks onwards):
After downloading installation, execute:
# Create blank disk image
Allow executable to run sudo w/o password prompt
1. Execute:
sudo visudo
2. Add line:
<username> ALL=NOPASSWD:/path/to/executable
Apt
Auto fix unmet dependencies
apt install -f
Buttons:
• GTi9105 / s2ve / Samsung S2+
Recovery mode: Home + Volume Up + Power
Download mode: Home + Volume Down + Power
• Nakasig / Tilapia / Nexus 7C 2012
Nicki / Sony Xperia M C1905
Osprey / Motorola Moto G3:
Recovery mode:
On the Bootloader/Fastboot select Recovery mode.
While holding down the Power button, press the Volume Up button.