Skip to content

Instantly share code, notes, and snippets.

@cetinajero
cetinajero / ddrescue.md
Last active April 10, 2024 03:46
Guide for using Ddrescue to recover data

Guide for using Ddrescue to recover data

Start command:

ddrescue -d /dev/sda output.img output.mapfile

NOTE: If direct disc access is not available in your system, try raw devices.

@cetinajero
cetinajero / 1-network-tools.md
Last active July 25, 2022 22:52
Network tools & list of interface bandwidths

SSH Port Forwarding

SSH Port Forwarding, aka SSH Tunneling.

Local Forwarding

Local forwarding is used to forward a port from the client machine to the server machine. Basically, the SSH client listens for connections on a configured port, and when it receives a connection, it tunnels the connection to an SSH server. The server connects to a configurated destination port, possibly on a different machine than the SSH server.

ssh -L <local-listening-port>:<remote-destination-host>:<remote-destination-port> <ssh-server>
@cetinajero
cetinajero / Netguard v3.0.md
Created June 19, 2023 17:39
Private alternative to DynDns and, thanks to Cloudflare, completely free.

Manage access and permissions for your accounts, sites, and products.

Token name

  • Netguard 3.0 (curl)

Permissions

@cetinajero
cetinajero / MTKLogger export script.bat
Last active September 4, 2023 15:56
MTKLogger export script
adb devices
@echo "Downloading mtklog"
adb pull /mnt/sdcard/mtklog mtklog
adb pull /mnt/sdcard0/mtklog mtklog
adb pull /mnt/sdcard2/mtklog mtklog
adb pull /storage/sdcard1/mtklog mtklog
@echo "Downloading trace"
adb pull /data/anr mtklog/anr