Skip to content

Instantly share code, notes, and snippets.

View jeremybusk's full-sized avatar
💭
Demo

Jeremy Busk jeremybusk

💭
Demo
View GitHub Profile
@jeremybusk
jeremybusk / LXD-cheat-sheet.md
Created November 3, 2021 22:10 — forked from berndbausch/LXD-cheat-sheet.md
LXD cheat sheet

Useful LXD commands

Summarized from https://stgraber.org/2016/03/19/lxd-2-0-your-first-lxd-container-312/.

Interestingly, the LXD command line client is named.... lxc!

List available containers

lxc image list ubuntu:        # ubuntu: is officially supported image source
lxc image list images:        # images: is an unsupported source
lxc image alias list images:  # lists user-friendly names
@jeremybusk
jeremybusk / kubernetes_add_service_account_kubeconfig.sh
Created July 18, 2021 19:32 — forked from innovia/kubernetes_add_service_account_kubeconfig.sh
Create a service account and generate a kubeconfig file for it - this will also set the default namespace for the user
#!/bin/bash
set -e
set -o pipefail
# Add user to k8s using service account, no RBAC (must create RBAC after this script)
if [[ -z "$1" ]] || [[ -z "$2" ]]; then
echo "usage: $0 <service_account_name> <namespace>"
exit 1
fi
@jeremybusk
jeremybusk / Reset-LocalAccountPassword.ps1
Created January 23, 2020 17:17 — forked from Bill-Stewart/Reset-LocalAccountPassword.ps1
Securely reset local account or the local Administrator account (RID 500) passwords
# Reset-LocalAccountPassword.ps1
# Written by Bill Stewart (bstewart@iname.com)
#requires -version 2
# Version history:
# 1.3 (2019-11-01)
# Correct code formatting.
# 1.2 (2019-09-10)
@jeremybusk
jeremybusk / Create-Administrator.ps1
Created January 22, 2020 04:01 — forked from ducas/Create-Administrator.ps1
Create a local administrator account using PowerShell
$Username = "su"
$Password = "password"
$group = "Administrators"
$adsi = [ADSI]"WinNT://$env:COMPUTERNAME"
$existing = $adsi.Children | where {$_.SchemaClassName -eq 'user' -and $_.Name -eq $Username }
if ($existing -eq $null) {
@jeremybusk
jeremybusk / simple-arch-install.sh
Created November 30, 2018 01:01 — forked from magnunleno/simple-arch-install.sh
Simplified Arch Linux Install Script (en)
#!/bin/bash
# encoding: utf-8
##################################################
# Variables #
##################################################
# Computer Name
HOSTN=Arch-VM
# Keyboard Layout