This file contains hidden or 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
# Cheatsheet for Wintendo CMD magic | |
# idkfa | |
sfc /scannow | |
# iddqd | |
DISM.exe /Online /Cleanup-image /Restorehealth | |
# |
This file contains hidden or 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
# Use Google DNS server | |
dig @8.8.8.8 xx.yy | |
# use Google DNS for txt records | |
dig @8.8.8.8 xx.yy TXT | |
# TTL | |
dig +nocmd +multiline +noall +answer any xx.yy | |
# IPV6 |
This file contains hidden or 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
# quickly test a script on a container | |
docker run -v $PWD:/script --rm ubuntu:16.04 bash /script/myscript.sh |
This file contains hidden or 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
ffmpeg -i meh.mov -pix_fmt rgb24 output.gif |
This file contains hidden or 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
printf "open\nget State:/Network/Global/IPv4\nd.show" | \ | |
scutil | grep "PrimaryService" | awk '{print $3}' | |
net.juniper.pulse.nc.main |
This file contains hidden or 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
#!/bin/sh | |
PROXY_INTERFACE="Wi-Fi" | |
PROXY_HOST=127.0.0.1 | |
PROXY_PORT=1080 | |
# A host where ssh can login without interaction, with a key-based | |
# authentication. | |
SOCKS_PROC_USER="username" | |
SOCKS_PROC_HOST="example.com" |