Skip to content

Instantly share code, notes, and snippets.

@X-Gorn
X-Gorn / chrome2requests.py
Last active August 21, 2022 01:38 — forked from scraperdragon/chrome2requests.py
Convert Chrome headers to Python's Requests dictionary
dict([['-'.join([x.capitalize() for x in h.partition(':')[0].strip().split('-')]), h.partition(':')[2].strip()] for h in rawheaders.split('\n')])
@X-Gorn
X-Gorn / install-apktool.sh
Last active June 18, 2024 16:24 — forked from bmaupin/install-apktool.sh
Install apktool in Linux
# ⚠ NOTE: if you're using the latest version of ubuntu, now you can just do:
# sudo apt install apktool
# Get latest version from https://bitbucket.org/iBotPeaches/apktool/downloads
export apktool_version=2.9.3
sudo -E sh -c 'wget https://bitbucket.org/iBotPeaches/apktool/downloads/apktool_$apktool_version.jar -O /usr/local/bin/apktool.jar'
sudo chmod +r /usr/local/bin/apktool.jar
sudo sh -c 'wget https://raw.githubusercontent.com/iBotPeaches/Apktool/master/scripts/linux/apktool -O /usr/local/bin/apktool'
sudo chmod +x /usr/local/bin/apktool