Skip to content

Instantly share code, notes, and snippets.

@esemwy
esemwy / macOSHighSierra_Bootable.sh
Created August 12, 2021 17:01
Create a Bootable macOSHighSierra.iso for installing macOS High Sierra in Virtualbox or VMware with macOS High Sierra.app
# Create a Bootable macOSHighSierra.iso for installing macOS High Sierra in Virtualbox or VMware with macOS High Sierra.app
# Create a "virtual USB flash drive"/disk image:
hdiutil create -o /tmp/HighSierra -size 8G -layout SPUD -fs HFS+J -type SPARSE
# Mount it:
hdiutil attach /tmp/HighSierra.sparseimage -noverify -mountpoint /Volumes/install_build
# Write the installer files into this new disk image:
@esemwy
esemwy / unifi_ubuntu_2004.sh
Created February 13, 2021 20:03 — forked from davecoutts/unifi_ubuntu_2004.sh
Install Ubiquiti Unifi Controller on Ubuntu 20.04
# Install Ubiquiti Unifi Controller on Ubuntu 20.04.
# As tested on a fresh install of ubuntu-20.04.1-live-server, August 22nd 2020.
# Thanks to https://gist.github.com/tmuncks for posting the updated install steps.
sudo apt update
sudo apt install --yes apt-transport-https
echo 'deb https://www.ui.com/downloads/unifi/debian stable ubiquiti' | sudo tee /etc/apt/sources.list.d/100-ubnt-unifi.list
sudo wget -O /etc/apt/trusted.gpg.d/unifi-repo.gpg https://dl.ui.com/unifi/unifi-repo.gpg
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@esemwy
esemwy / IOR.json
Last active August 29, 2015 14:23
Set IOR of Iray Surface
[
{
"name": "Acetone",
"start": 1.36
},
{
"name": "Acrylic glass",
"start": 1.49,
"stop": 1.492
},
Silver 0.18
Gold 0.47
Helium 1.000036
Hydrogen (gas) 1.00014
Water (gas) 1.000261
Oxygen (gas) 1.000276
Argon 1.000281
Air 1.0002926
Nitrogen (gas) 1.000297
Carbon Dioxide (gas) 1.000449
@esemwy
esemwy / mkdim.py
Created June 10, 2015 12:13
Create DAZ Install Manager packages from zip or directory
#!/usr/bin/python
import uuid
import os
from zipfile import ZipFile, is_zipfile
import sys
import time
from random import randint
import argparse
import re
@esemwy
esemwy / makeMosaic
Created June 10, 2015 12:10
Create 360 degree mosaic from Google Maps Street View data.
#!/usr/bin/env python
# Based on http://stackoverflow.com/questions/17555345/creating-a-montage-of-pictures-in-python
from sys import path
# needed for some package installs, harmless otherwise
path.append('/usr/local/lib/python2.7/site-packages')
import argparse
import os
import sys
from time import strftime