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
| podman run --rm -d --name mysql -e MYSQL_ROOT_PASSWORD=password -v ./tools/mysql:/var/lib/mysql:Z mysql:latest |
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
| #!/usr/sbin/nft -f | |
| flush ruleset | |
| add table inet cookie | |
| define VPN_TUN = tun* | |
| define VPN_SERVERS = { servers } |
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
| DISCLAIMER I DID NOT MAKE ANY OF THESE FILES OR PROGRAMS. | |
| Plug your M1 into your computer with a USB cable | |
| go to https://github.com/bkerler/edl download the file to your desktop and extract it | |
| download microsft C++ build tools to your desktop https://visualstudio.microsoft.com/visual-cpp-build-tools/ | |
| You may need to run the installer once but not install anything to make the other steps work | |
| install python from python.org/downloads/ and at the fist setup prompt chose add python to PATH then continue the installation |
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
| mount -t tmpfs -o size=10m,mode=777 tmpfs /mnt/user/0/emulated/0/folder |
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
| cd ~/Library/Android/sdk/platform-tools/ | |
| # Get the hash of the mitmproxy-ca certificate. | |
| openssl x509 -inform PEM -subject_hash_old -in ~/.mitmproxy/mitmproxy-ca.pem | head -1 | |
| # We will use this hash value, append '.0' (dot zero) and use this as the filename for the resulting Android certificate | |
| cat ~/.mitmproxy/mitmproxy-ca.pem > c8750f0d.0 | |
| openssl x509 -inform PEM -text -in ~/.mitmproxy/mitmproxy-ca.pem -out /dev/null >> c8750f0d.0 | |
| # In an other terminal, we will start the emulator with writable /system volume |
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/bash | |
| iptables -A INPUT -p tcp --dport http -j REJECT --reject-with tcp-reset | |
| iptables -A INPUT -p tcp --dport https -j REJECT --reject-with tcp-reset | |
| for i in `curl https://www.cloudflare.com/ips-v4`; do iptables -I INPUT -p tcp -s $i --dport http -j ACCEPT; done | |
| for i in `curl https://www.cloudflare.com/ips-v4`; do iptables -I INPUT -p tcp -s $i --dport https -j ACCEPT; done | |
| ip6tables -A INPUT -p tcp --dport http -j REJECT --reject-with tcp-reset | |
| ip6tables -A INPUT -p tcp --dport https -j REJECT --reject-with tcp-reset |
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
| cat fragment{1..266}.ts | ffmpeg -i pipe: -c:a copy -c:v copy output.mp4 |
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
| cat -A pubkeyx.pem | tr -d '\n' | sed --expression='s/\$/\\n/g' |
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
| docker run -p 3306:3306 --name mysql -e MYSQL_ROOT_PASSWORD= -d mysql:latest mysqld --default-authentication-plugin=mysql_native_password |
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
| sudo docker run -it -p 4000:4000 -e BITGO_DISABLE_SSL="true" bitgosdk/express:latest -e prod -p4000 |
NewerOlder