Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Kevin Karhan kkarhan

🏠
Working from home
View GitHub Profile
@lichnak
lichnak / unifi_ubuntu_2004.sh
Created June 26, 2020 20:22 — forked from davecoutts/unifi_ubuntu_2004.sh
Install Ubiquiti Unifi Controller on Ubuntu 20.04
View unifi_ubuntu_2004.sh
sudo apt install --yes ca-certificates 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 apt-key adv --keyserver keyserver.ubuntu.com --recv 06E85760C0A52C50
wget -qO - https://www.mongodb.org/static/pgp/server-3.4.asc | sudo apt-key add -
echo 'deb https://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.4 multiverse' | sudo tee /etc/apt/sources.list.d/mongodb-org-3.4.list
sudo apt-mark hold openjdk-11-*
View keybase.md

Keybase proof

I hereby claim:

  • I am kkarhan on github.
  • I am kkarhan (https://keybase.io/kkarhan) on keybase.
  • I have a public key ASCUneYvuZ1CsVmFr_xYvP0F6dQIZ_MfF7F5LsRyqe6ZDAo

To claim this, I am signing this object:

@davecoutts
davecoutts / unifi_ubuntu_2004.sh
Last active May 19, 2023 23:24
Install Ubiquiti Unifi Controller on Ubuntu 20.04
View unifi_ubuntu_2004.sh
# 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
@joostrijneveld
joostrijneveld / gpg2qrcodes.sh
Created May 20, 2014 19:43
Producing printable QR codes for persistent storage of GPG private keys
View gpg2qrcodes.sh
# Heavily depends on:
# libqrencode (fukuchi.org/works/qrencode/)
# paperkey (jabberwocky.com/software/paperkey/)
# zbar (zbar.sourceforge.net)
# Producing the QR codes:
# Split over 4 codes to ensure the data per image is not too large.
gpg --export-secret-key KEYIDGOESHERE | paperkey --output-type raw | base64 > temp
split temp -n 4 IMG
for f in IMG*; do cat $f | qrencode -o $f.png; done