Skip to content

Instantly share code, notes, and snippets.

View clmsnskr's full-sized avatar

Christopher Coker clmsnskr

View GitHub Profile
@clmsnskr
clmsnskr / unifi_ubuntu_2004.sh
Created May 5, 2021 01:16 — 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
@clmsnskr
clmsnskr / machine.js
Created December 17, 2020 20:35
Generated by XState Viz: https://xstate.js.org/viz
const fetchMachine = Machine({
id: 'BrandEditor',
initial: 'loadDefaults',
context: {
dataLoaded: false
},
states: {
loadDefaults: {
entry: ['doStupid'],
id: 'loadDefaults',
@clmsnskr
clmsnskr / machine.js
Created May 26, 2020 21:14
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@clmsnskr
clmsnskr / machine.js
Created November 9, 2019 07:43
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@clmsnskr
clmsnskr / machine.js
Last active November 7, 2019 17:22
Generated by XState Viz: https://xstate.js.org/viz
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions