Skip to content

Instantly share code, notes, and snippets.

@kelsotodd
kelsotodd / add_admin_user.ps1
Created March 23, 2020 06:56
Add an administrator user using PowerShell
$Password = Read-Host -AsSecureString
New-LocalUser "sysadmin" -Password $Password -FullName "sysadmin" -Description "System Administrator"
Add-LocalGroupMember -Group "Administrators" -Member "sysadmin"
@kelsotodd
kelsotodd / choco.ps1
Last active February 8, 2021 13:22
Chocolatey Install and Package Installation
Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
choco install -y firefox googlechrome jre8 7zip.install vlc adobereader teamviewer8
@kelsotodd
kelsotodd / unifi-controller-install.sh
Last active October 25, 2017 12:55 — forked from hisnameisjimmy/le-install.sh
Unifi Controller one-shot install script for Ubuntu 16.04 with Lets Encrypt on Digital Ocean
#!/bin/sh
#
# This script stands on the shoulders of giants.
#
# It is written and tested for Ubuntu 16.04 on Digital Ocean using a 1GB droplet.
# Anything less than 1GB of memory may cause issues with anything memory intensive
# like imports/exports.
#
# It does the following:
# 1) Opens the appropriate ports for Unifi, SSH, Web/SSL traffic via ufw