Skip to content

Instantly share code, notes, and snippets.

View JulyIghor's full-sized avatar
🇺🇦

Ighor July JulyIghor

🇺🇦
View GitHub Profile
@JulyIghor
JulyIghor / firetv_firmware.md
Last active February 25, 2025 05:01
Amazon Fire TV Stick 4K Firmware and apps. Official Cloud Front direct links only
@kdubau
kdubau / macOS-ISO-howto.md
Created September 24, 2018 17:57
How to create a bootable ISO of macOS install application.

Download

First download the install app bundle. Older versions can be hard to find but the current version of the time you read this, can be found in the App Store.

Create and attach a drive wtih hdiutil

To create a drive run this command: hdiutil create -o /tmp/Mojave.cdr -size 6200m -layout SPUD -fs HFS+J.
Next you will need to mount that drive hdiutil attach /tmp/Mojave.cdr.dmg -noverify -mountpoint /Volumes/install_build.

Create installation media in the new drive

Use the downloaded app bundle to create the media: sudo /Applications/Install\ macOS\ Mojave.app/Contents/Resources/createinstallmedia --volume /Volumes/install_build.

function show(x) { console.log(Automation.getDisplayString(x)) }
function showByApp(text) {
app = Application.currentApplication()
app.includeStandardAdditions = true
app.displayDialog(Automation.getDisplayString(text))
}
function getDockInfo() {
apps = Application("System Events").processes()
for (app of apps) {
if (app.name() != "Dock") continue
@eguven
eguven / brew-list.sh
Last active February 26, 2025 09:25
List all packages installed using Homebrew and their sizes
# this original one uses values returned from 'brew info'
brew list --formula | xargs -n1 -P8 -I {} \
sh -c "brew info {} | egrep '[0-9]* files, ' | sed 's/^.*[0-9]* files, \(.*\)).*$/{} \1/'" | \
sort -h -r -k2 - | column -t
# faster alternative using 'du'
du -sch $(brew --cellar)/*/* | sed "s|$(brew --cellar)/\([^/]*\)/.*|\1|" | sort -k1h
@adamawolf
adamawolf / Apple_mobile_device_types.txt
Last active March 2, 2025 05:19
List of Apple's mobile device codes types a.k.a. machine ids (e.g. `iPhone1,1`, `Watch1,1`, etc.) and their matching product names
i386 : iPhone Simulator
x86_64 : iPhone Simulator
arm64 : iPhone Simulator
iPhone1,1 : iPhone
iPhone1,2 : iPhone 3G
iPhone2,1 : iPhone 3GS
iPhone3,1 : iPhone 4
iPhone3,2 : iPhone 4 GSM Rev A
iPhone3,3 : iPhone 4 CDMA
iPhone4,1 : iPhone 4S