Skip to content

Instantly share code, notes, and snippets.

@davecoutts
davecoutts / unifi_ubuntu_2004.sh
Last active August 26, 2024 04:23
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
@grifferz
grifferz / blkleaderboard.sh
Last active April 22, 2024 02:43
Block device leaderboard
#!/bin/bash
# Paste at shell prompt (or download and execute) and get:
#
# sdc 9936 hours ( 1.13 years) 3.49TiB SAMSUNG MZ7KH3T8
# nvme0n1 9936 hours ( 1.13 years) 3.49TiB SAMSUNG MZQLB3T8HALS-00007
# sde 9932 hours ( 1.13 years) 4.55TiB ST5000LM000-2AN1
# sdd 9931 hours ( 1.13 years) 4.55TiB ST5000LM000-2AN1
# sdb 9617 hours ( 1.09 years) 0.01TiB SuperMicro SSD
# sda 9616 hours ( 1.09 years) 0.01TiB SuperMicro SSD
@nugget
nugget / gist:102a65441eebc62b0c5a65f2e0f24553
Created December 12, 2017 20:34
macnugget.org Pullet Surprise
What do you expect? This is just an online message board. Nobody here is going
to win the pullet surprise for their posts. Mistakes like spelling "lose" as
"loose" are pardon parcel with people who learn the language through talking
and not through reading.
I could of made that same mistake if I hadn't learned these words by reading
them. Sadly, people who don't read just can't cut the muster. Alot of people
would just assume watch a movie instead of read a book and it shows in there
writing. For all intensive purposes they are exposed to new words strickly by
hearing them and they never learn the proper spelling -- It is simple cause and
@timvisee
timvisee / falsehoods-programming-time-list.md
Last active October 3, 2024 12:23
Falsehoods programmers believe about time, in a single list

Falsehoods programmers believe about time

This is a compiled list of falsehoods programmers tend to believe about working with time.

Don't re-invent a date time library yourself. If you think you understand everything about time, you're probably doing it wrong.

Falsehoods

  • There are always 24 hours in a day.
  • February is always 28 days long.
  • Any 24-hour period will always begin and end in the same day (or week, or month).
@alirobe
alirobe / reclaimWindows10.ps1
Last active October 5, 2024 11:57
This Windows 10 Setup Script turns off a bunch of unnecessary Windows 10 telemetery, bloatware, & privacy things. Not guaranteed to catch everything. Review and tweak before running. Reboot after running. Scripts for reversing are included and commented. Fork of https://github.com/Disassembler0/Win10-Initial-Setup-Script (different defaults). N.…
###
###
### UPDATE: For Win 11, I recommend using this tool in place of this script:
### https://christitus.com/windows-tool/
### https://github.com/ChrisTitusTech/winutil
### https://www.youtube.com/watch?v=6UQZ5oQg8XA
### iwr -useb https://christitus.com/win | iex
###
###