Skip to content

Instantly share code, notes, and snippets.

View julianschiavo's full-sized avatar

Julian Schiavo julianschiavo

View GitHub Profile
#!/bin/bash
clear
# Initialize variables
declare -a output
declare -a ping_history
max_ping_lines=$(($(tput lines) - 7))
success_count=0
timeout_count=0
total_count=0
@julianschiavo
julianschiavo / 1 iOS Apps on Apple Silicon.md
Last active December 22, 2023 14:26
Bash script to resign wrapped iOS apps on Apple Silicon; allows running third party apps

iOS Apps on Apple Silicon

Bash script to resign wrapped iOS apps on Apple Silicon; allows running third party apps

  1. Get a copy of an unencrypted iOS app (IPA) file (see here)
  2. Double-click the file on Mac with Apple Silicon to install it to /Applications
  3. Save the resign.sh script
  4. Replace CODE_SIGN_IDENTITY_HERE with your code signing identity from Xcode (see here)
  5. If needed, allow execution on the script file by running chmod +x SCRIPT_PATH in Terminal
  6. Run resign.sh, passing in the wrapped app to resign ./resign.sh /Applications/Snapchat.app
  7. If successful, the resigned app will open
@julianschiavo
julianschiavo / ISOCountryCodes.swift
Last active March 13, 2020 11:39
An Enum generated from ISO-3166 Country Codes with the country name, region, and code
enum Region: String {
case antarctica = "Antarctica"
case africa = "Africa"
case asia = "Asia"
case europe = "Europe"
case latinAmericaAndTheCaribbean = "Latin America and the Caribbean"
case northAmerica = "North America"
case oceania = "Oceania"
var name: String { rawValue }
@julianschiavo
julianschiavo / MarzipanWorkarounds.swift
Last active March 14, 2019 12:17
Marzipan Cheatsheet and Workarounds
import UIKit
// Fix missing selectors on NSFont
extension NSObject {
@objc func isSystemFont() -> Bool {
return false
}
@objc func _fontAdjustedForContentSizeCategoryCompatible(withTraitCollection arg1: Any?) -> Any? {
return self
@julianschiavo
julianschiavo / keybase.md
Last active September 12, 2019 03:19
Keybase proof

Keybase proof

I hereby claim:

  • I am julianschiavo on github.
  • I am dotjs (https://keybase.io/dotjs) on keybase.
  • I have a public key ASDOEPbTWb9xB_BtQoZNlI9HnXlheqbXmmQUsD2Z-zluNAo

To claim this, I am signing this object:

const Command = require('../../cmdModule/commands').Command
class LcountCommand extends Command {
constructor() {
super({
name: 'list',
help: 'List the members who have the prestige car',
lhelp: '{crew letter} [z]\n{crew letter} is G or Y or R, what crew to list prestige car + cup for.\n[z] If z is specified, the list will be of the crew\'s user\'s nicks/timezones rather than prestige status'
})
}
@julianschiavo
julianschiavo / The Nitro List.md
Last active October 3, 2017 10:35
This is a list of people who want me to give them a prepaid CC for one month of Discord Nitro.

The Nitro List

This is a list of people who want me to give them a prepaid CC for one month of Discord Nitro.

Username Offering in Return
Azzeh 5 RLME tokens, Alpha Testing
Jordan#7468 Server promotion thru giveaway
Jeder#2091