Skip to content

Instantly share code, notes, and snippets.

Avatar

Richard nyuszika7h

View GitHub Profile
View ios_ota_sideloading.md

Note: This requires a paid developer certificate or an enterprise certificate. A free developer certificate will not work.

Create an Example.plist file with the following content:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
  <dict>
    <key>items</key>
View tssalert.sh
#!/bin/bash
while read -r device version; do
board=$(curl -s https://api.ipsw.me/v2.1/firmwares.json | jq -r ".devices[\"$device\"].BoardConfig")
tsschecker -d "$device" -B "$board" -i "$version"
if (( $? == 1 )); then
if [[ ${device,,} == iphone* ]]; then
os=iOS
elif [[ ${device,,} == ipad* ]]; then
os=iPadOS
@nyuszika7h
nyuszika7h / sideload.sh
Created Dec 18, 2020
Sideload IPA on jailbroken iOS device (like AppSync Unified, the installed apps will only work when the device is in jailbroken state)
View sideload.sh
#!/bin/bash
if (( EUID != 0 )); then
printf 'This script must be run as root.\n' >&2
exit 1
fi
if [[ $1 != *.ipa ]]; then
printf 'Usage: %s file.ipa\n' "$0" >&2
exit 1
View ios_app_signing_no_mac.md

How to create an iOS app signing certificate without a Mac

  1. openssl genrsa -out ios_development.key 2048
  2. openssl req -new -key ios_development.key -out ios_development.csr -subj '/emailAddress=your@email.address, CN=Your Name, C=US'
  3. Go to developer portal (https://developer.apple.com/account/) -> Certificates, Identifiers & Profiles
  4. Create a new certificate, choose "iOS App Development", and upload the .csr file
  5. Download the resulting .cer file
  6. Download the Apple WWDR intermediate certificate from https://www.apple.com/certificateauthority/ (preferably the one that expires later)
  7. openssl x509 -inform der -in ios_development.cer -out ios_development.pem
  8. openssl x509 -inform der -in AppleWWDRCAG3.cer -out AppleWWDRCAG3.pem
View fix_wsl_dns.sh
#!/bin/bash
echo 'Updating /etc/wsl.conf...'
printf '[network]\ngenerateResolvConf=false\' | sudo tee -a /etc/wsl.conf > /dev/null
echo 'Updating /etc/resolv.conf...'
printf 'nameserver 8.8.8.8' | sudo tee /etc/resolv.conf > /dev/null
echo 'DNS settings updated. Press Enter to terminate WSL. Any unsaved work will be lost!'
read -r < /dev/tty
wsl.exe --shutdown
@nyuszika7h
nyuszika7h / latestwv.sh
Created Oct 17, 2020
Get latest Widevine ChromeCDM version
View latestwv.sh
#!/bin/bash
tmpdir=$(mktemp -d)
curl https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb | dpkg-deb -x - "$tmpdir"
strings "$tmpdir/opt/google/chrome/WidevineCdm/_platform_specific/linux_x64/libwidevinecdm.so" | grep '^4\.10'
rm -rf "$tmpdir"
@nyuszika7h
nyuszika7h / urlschemes.json
Last active Jan 24, 2021
iOS app URL schemes for Icon Themer shortcut
View urlschemes.json
{
"com.8bit.bitwarden": "bitwarden://",
"com.apple.airport.mobileairportutility": "apmanage://",
"com.apple.appleseed.FeedbackAssistant": "applefeedback://",
"com.apple.AppStore": "itms-apps://itunes.apple.com/",
"com.apple.AppStoreConnect": "shortcuts://run-shortcut?name=Icon%20Themer&input=%7B%22launch%22%3A%22Connect%22%7D",
"com.apple.artistconnect": "shortcuts://run-shortcut?name=Icon%20Themer&input=%7B%22launch%22%3A%22Artists%22%7D",
"com.apple.bnd": "beatsbond://",
"com.apple.Bridge": "com.apple.bridge://x",
"com.apple.calculator": "shortcuts://x-callback-url/run-shortcut?x-error=calc://",
@nyuszika7h
nyuszika7h / Namedays.js
Last active Sep 28, 2020
iOS 14 Scriptable Namedays widget
View Namedays.js
async function getCountry() {
let r = new Request('https://ipinfo.io/country')
let s = await r.loadString()
return s.trim()
}
function pad(n) {
return n.toString().padStart(2, '0')
}
View enableupdates.sh
#!/bin/sh
if (( EUID != 0 )); then
echo "ERROR: This script must be run as root." >&2
exit 1
fi
files=(
/var/MobileAsset/Assets/com_apple_MobileAsset_SoftwareUpdate
/var/MobileAsset/Assets/com_apple_MobileAsset_SoftwareUpdateDocumentation
View entire_bee_movie_script
According to all known laws of aviation, there is no way a bee should be able to fly. Its wings are too small to get its fat little body off the ground. The bee, of course, flies anyway because bees don't care what humans think is impossible. Yellow, black. Yellow, black. Yellow, black. Yellow, black. Ooh, black and yellow! Let's shake it up a little. Barry! Breakfast is ready! Ooming! Hang on a second. Hello? - Barry? - Adam? - Oan you believe this is happening? - I can't. I'll pick you up. Looking sharp. Use the stairs. Your father paid good money for those. Sorry. I'm excited. Here's the graduate. We're very proud of you, son. A perfect report card, all B's. Very proud. Ma! I got a thing going here. - You got lint on your fuzz. - Ow! That's me! - Wave to us! We'll be in row 118,000. - Bye! Barry, I told you, stop flying in the house! - Hey, Adam. - Hey, Barry. - Is that fuzz gel? - A little. Special day, graduation. Never thought I'd make it. Three days grade school, three days high school. Those were awkw