Skip to content

Instantly share code, notes, and snippets.


Richard nyuszika7h

View GitHub Profile
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: google_auth.proto
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import symbol_database as _symbol_database
# @@protoc_insertion_point(imports)

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" "">
<plist version="1.0">
while read -r device version; do
board=$(curl -s | jq -r ".devices[\"$device\"].BoardConfig")
tsschecker -d "$device" -B "$board" -i "$version"
if (( $? == 1 )); then
if [[ ${device,,} == iphone* ]]; then
elif [[ ${device,,} == ipad* ]]; then
nyuszika7h /
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)
if (( EUID != 0 )); then
printf 'This script must be run as root.\n' >&2
exit 1
if [[ $1 != *.ipa ]]; then
printf 'Usage: %s file.ipa\n' "$0" >&2
exit 1

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 ( -> Certificates, Identifiers & Profiles
  4. Create a new certificate, choose "Apple Development", and upload the .csr file
  5. Download the resulting .cer file
  6. Download the Apple WWDR intermediate certificate from (the one that expires in 2030:
  7. openssl x509 -inform der -in ios_development.cer -out ios_development.pem
  8. openssl x509 -inform der -in AppleWWDRCAG3.cer -out AppleWWDRCAG3.pem
echo 'Updating /etc/wsl.conf...'
printf '[network]\ngenerateResolvConf=false\' | sudo tee -a /etc/wsl.conf > /dev/null
echo 'Updating /etc/resolv.conf...'
printf 'nameserver' | 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 /
Created Oct 17, 2020
Get latest Widevine ChromeCDM version
tmpdir=$(mktemp -d)
curl | dpkg-deb -x - "$tmpdir"
strings "$tmpdir/opt/google/chrome/WidevineCdm/_platform_specific/linux_x64/" | grep '^4\.10'
rm -rf "$tmpdir"
nyuszika7h / urlschemes.json
Last active Feb 13, 2021
iOS app URL schemes for Icon Themer shortcut
View urlschemes.json
"com.8bit.bitwarden": " ",
"com.agilebits.onepassword-ios": "onepassword://",
"": "apmanage://",
"": "applefeedback://",
"": "itms-apps://",
"": "shortcuts://run-shortcut?name=Icon%20Themer&input=%7B%22launch%22%3A%22Connect%22%7D",
"": "shortcuts://run-shortcut?name=Icon%20Themer&input=%7B%22launch%22%3A%22Artists%22%7D",
"": "beatsbond://",
"": "",
nyuszika7h / Namedays.js
Last active Sep 28, 2020
iOS 14 Scriptable Namedays widget
View Namedays.js
async function getCountry() {
let r = new Request('')
let s = await r.loadString()
return s.trim()
function pad(n) {
return n.toString().padStart(2, '0')
if (( EUID != 0 )); then
echo "ERROR: This script must be run as root." >&2
exit 1