Skip to content

Instantly share code, notes, and snippets.

View frobert's full-sized avatar

Robert Ferencek frobert

View GitHub Profile
@iphoneio
iphoneio / El Capitan Disk maker for M1 Mac
Created May 1, 2022 02:09 — forked from t3rmin4t0r/El Capitan Disk maker for M1 Mac
How to make an El Capitan usb bootable disk from an M1 Mac
# verbatim copied over from - https://apple.stackexchange.com/a/420325
# Download install DMG for El Capitan
# https://support.apple.com/en-us/HT211683
wget -c http://updates-http.cdn-apple.com/2019/cert/061-41424-20191024-218af9ec-cf50-4516-9011-228c78eda3d2/InstallMacOSX.dmg
# mount and unzip the packager
pkgutil --expand InstallMacOSX.pkg Installer
@BrendonKoz
BrendonKoz / leaflet-darkmode.md
Last active August 18, 2025 13:28
Automatic Dark Mode for Leaflet.js
// Leaflet JS - note the *className* attribute
// [...]

L.tileLayer('https://{s}.tile.openstreetmap.fr/hot/{z}/{x}/{y}.png', {
    attribution: '&copy; <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors',
    className: 'map-tiles'
}).addTo(map);

// [...]