has:attachment filename:(-pdf -zip) older_than:3y larger:10m
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# sudo bang bang | |
function sudo | |
if test "$argv" = !! | |
eval command sudo $history[1] | |
else | |
command sudo $argv | |
end | |
end | |
# git branch |
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]
Enable the package repository for CentOS
sudo vi /etc/yum.repos.d/plex.repo
SSH Port Forwarding, aka SSH Tunneling.
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>
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias ll='ls -lahG' | |
alias lowercase='for f in *; do mv "$f" "$f.tmp"; mv "$f.tmp" "`echo $f | tr "[:upper:]" "[:lower:]"`"; done' | |
alias apple-wireless-mouse='mouseid=$(xinput --list | perl -n -e 's@.*Edgar Tinajero.*Mouse.*id=([0-9]+).*@$1@ and print') && xinput --set-prop $mouseid 'libinput Natural Scrolling Enabled' 1 && xinput set-button-map $mouseid 1 1 3' | |
function rdpclient { cat ~/.bash_secrets | grep $1 | awk '{print $NF}' | rdesktop -f -N -x m -u Administrator -p - -r disk:share=$HOME/sap $1 & } |
Manage access and permissions for your accounts, sites, and products.
- Netguard 3.0 (curl)
Steps:
pkg install proot
termux-chroot
pkg install openssh
ssh-keygen -t rsa -b 4096 -C "email@gmail.com"
cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
sshd
whoami
ifconfig arc0 | awk '/inet/{print $2}' | sed -e 's/^.*://g'
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
OlderNewer