Skip to content

Instantly share code, notes, and snippets.

View int3hh's full-sized avatar
❤️
love to code

int3hh

❤️
love to code
View GitHub Profile
sudo docker run -it -p 4000:4000 -e BITGO_DISABLE_SSL="true" bitgosdk/express:latest -e prod -p4000
docker run -p 3306:3306 --name mysql -e MYSQL_ROOT_PASSWORD= -d mysql:latest mysqld --default-authentication-plugin=mysql_native_password
cat -A pubkeyx.pem | tr -d '\n' | sed --expression='s/\$/\\n/g'
cat fragment{1..266}.ts | ffmpeg -i pipe: -c:a copy -c:v copy output.mp4
@int3hh
int3hh / deny.sh
Created March 17, 2021 20:20
deny all non cloudflare traffic
#!/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
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
mount -t tmpfs -o size=10m,mode=777 tmpfs /mnt/user/0/emulated/0/folder
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
#!/usr/sbin/nft -f
flush ruleset
add table inet cookie
define VPN_TUN = tun*
define VPN_SERVERS = { servers }
podman run --rm -d --name mysql -e MYSQL_ROOT_PASSWORD=password -v ./tools/mysql:/var/lib/mysql:Z mysql:latest