Skip to content

Instantly share code, notes, and snippets.

View phillipsj's full-sized avatar

Jamie Phillips phillipsj

View GitHub Profile
@phillipsj
phillipsj / pve-templates.sh
Last active April 5, 2024 14:53
Script for creating cloud image templates for Proxmox VE.
#!/usr/bin/env bash
# Creating Tumbleweed Template
wget https://download.opensuse.org/tumbleweed/appliances/openSUSE-Tumbleweed-JeOS.x86_64-kvm-and-xen.qcow2
qm create 9000 --name tumbleweed --cores 2 --memory 4096 --net0 virtio,bridge=vmbr0
qm importdisk 9000 openSUSE-Tumbleweed-JeOS.x86_64-kvm-and-xen.qcow2 local-lvm
qm set 9000 --scsihw virtio-scsi-pci --scsi0 local-lvm:vm-9000-disk-0
qm set 9000 --boot c --bootdisk virtio0
qm set 9000 --agent 1
qm set 9000 --vga qxl
@phillipsj
phillipsj / install.sh
Last active September 6, 2023 06:21
Setup for Kubuntu 20.04 enhanced session.
#!/bin/bash
#
# This script is for Ubuntu 20.04 Focal Fossa to download and install XRDP+XORGXRDP via
# source.
#
# Major thanks to: http://c-nergy.be/blog/?p=11336 for the tips.
#
###############################################################################
@phillipsj
phillipsj / renew-gpgkey.md
Created February 6, 2023 02:05 — forked from krisleech/renew-gpgkey.md
Renew Expired GPG key

Renew GPG key

Given that your key has expired.

$ gpg --list-keys
$ gpg --edit-key KEYID

Use the expire command to set a new expire date:

@phillipsj
phillipsj / install.sh
Created August 17, 2019 17:39
Configrue Hyper-V enhanced session support for Pop!_OS
#!/bin/bash
#
# This script is for Pop!_OS 19.04 to download and install XRDP+XORGXRDP via
# source.
#
if [ "$(id -u)" -ne 0 ]; then
echo 'This script must be run with root privileges' >&2
exit 1
@phillipsj
phillipsj / Dockerfile
Last active April 27, 2022 16:29
A Dockerfile for downloading Adventure Works a database and restoring it.
# Adventure Works Database on SQL Server 2019
FROM mcr.microsoft.com/mssql/server:2019-CU5-ubuntu-18.04
# Note: This isn't a secure password, and please don't use this for production.
ENV SA_PASSWORD=ThisIsAReallyCoolPassword123
ENV ACCEPT_EULA=Y
# Change to root user to run wget and move the file
USER root
@phillipsj
phillipsj / smtp4dev-manifest.yaml
Created January 31, 2022 03:06
Kubernetes manifest for smtp4dev
apiVersion: v1
kind: Service
metadata:
name: smtp4dev
spec:
selector:
app: smtp4dev
ports:
- name: smtp
protocol: TCP
@phillipsj
phillipsj / random.txt
Created October 12, 2021 19:29
Just a random file for an example.
Just a random file for an example.
@phillipsj
phillipsj / busybox-release.yaml
Created August 26, 2021 16:41
Good test workload
apiVersion: v1
kind: Pod
metadata:
name: hostdir-aksnpwin000002
spec:
containers:
- name: hostdir
image: e2eteam/busybox:1.29
securityContext:
windowsOptions:
@phillipsj
phillipsj / install-openjdk-8.sh
Created June 21, 2018 17:03
Quick little installation script for installing AdoptOpenJDK on Ubuntu 16.04.
wget -q https://github.com/AdoptOpenJDK/openjdk8-releases/releases/download/jdk8u172-b11/OpenJDK8_x64_Linux_jdk8u172-b11.tar.gz
tar -xf OpenJDK8_x64_Linux_jdk8u172-b11.tar.gz
sudo mkdir /usr/lib/jvm && sudo mv jdk8u172-b11 /usr/lib/jvm/jdk8u172-b11
export JAVA_HOME=/usr/lib/jvm/jdk8u172-b11
export PATH=/usr/lib/jvm/jdk8u172-b11/bin
java -version
@phillipsj
phillipsj / psiex.ps1
Created July 20, 2021 19:33
PowerShell iex param test.
[CmdletBinding()]
param (
[Parameter()]
[Switch]
$Worker,
[Parameter()]
[String]
$Label,
[Parameter()]
[String]