Skip to content

Instantly share code, notes, and snippets.

@memoryleak
memoryleak / create-monterey-iso.sh
Last active November 12, 2024 11:41
Create a Mac OS Monterey ISO file from the official installation DMG file
#!/usr/bin/env bash
sudo hdiutil create -o /tmp/Monterey -size 16g -volname Monterey -layout SPUD -fs HFS+J
sudo hdiutil attach /tmp/Monterey.dmg -noverify -mountpoint /Volumes/Monterey
sudo /Applications/Install\ macOS\ Monterey.app/Contents/Resources/createinstallmedia --volume /Volumes/Monterey --nointeraction
hdiutil eject -force /Volumes/Install\ macOS\ Monterey
hdiutil convert /tmp/Monterey.dmg -format UDTO -o ~/Downloads/Monterey
mv -v ~/Downloads/Monterey.cdr ~/Downloads/Monterey.iso
sudo rm -fv /tmp/Monterey.dmg
@fqborges
fqborges / openlayers+gmap.js
Created January 9, 2018 18:21
make openlayers work with google maps
import ol from 'openlayers';
// View used to sync google maps with ol map
class GmapSyncView extends ol.View {
constructor(gmap, options) {
super(options);
this._gmap = gmap;
this._gmapInit();
@BryanBarrera
BryanBarrera / remote-origin-fix.html
Last active August 31, 2020 15:22
fatal: No such remote 'origin' FIX
// If "git remote -v" doesn't show you any remotes you can simply add a remote using:
// Replace https://username@stash/scm/PROJECT/repo.git with your repo URL
git remote add origin https://username@stash/scm/PROJECT/repo.git