Skip to content

Instantly share code, notes, and snippets.

View cetinajero's full-sized avatar

Edgar T cetinajero

  • México
View GitHub Profile
@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
@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 / 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 / ddrescue.md
Last active October 17, 2024 13:54
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 / VMware_ESXi.md
Last active May 18, 2021 15:47
Power On and Power Off VMs in VMware ESXi 5.5 from the command line

Get a list of your VMs

vim-cmd vmsvc/getallvms

Find the one you’re interested in and check its “power” state

vim-cmd vmsvc/power.getstate [vmid]
@cetinajero
cetinajero / macos_boot_keys.md
Last active May 15, 2024 21:48
macOS Boot combination keys and bootable USB commands
@cetinajero
cetinajero / plex.md
Last active November 15, 2024 23:52
Usefull commands for Plex

Installation

Enable the package repository for CentOS

Create the file
sudo vi /etc/yum.repos.d/plex.repo
@cetinajero
cetinajero / ssh.config
Last active January 19, 2024 17:43
~/.ssh/config
host paunix.github.com
hostname github.com
identityfile ~/.ssh/id_rsa-paunix
host 172.31.31.254 172.31.35.254 172.31.43.254
port 2002
KexAlgorithms +diffie-hellman-group1-sha1
Ciphers +3des-cbc
HostKeyAlgorithms +ssh-dss
MACs hmac-sha1
@cetinajero
cetinajero / fortigate.md
Last active June 20, 2024 19:46
Usefull Fortigate CLI commands
get sys perf status

diag test app scanunit 3

diag stat app-usage-ip Facebook

Monitor bandwidth usage per IP address

@cetinajero
cetinajero / config.fish
Created April 2, 2018 14:09
vi ~/.config/fish/config.fish
# sudo bang bang
function sudo
if test "$argv" = !!
eval command sudo $history[1]
else
command sudo $argv
end
end
# git branch