Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
# create a git repo somewhere then copy this to the helpers folder in that repo then create an alias e.g
# mkdir -p ~/todos/
# cd ~/todos/
# git init .
# mkdir helpers
# put this file in helpers
# add alias to bashrc
# alias todo='~/todos/helpers/add_todo.sh'
@awalker125
awalker125 / gist:aa4d638822787504178a09e1c716f901
Created October 10, 2023 06:24
Create iso on windows for virtual box
# See https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/amazon-linux-2-virtual-machine.html.
# If using windows/virtual-box to run amzn2 linux you can create the seed.iso with
vbox-img createiso -o "seed.iso" --volid=cidata --joliet --rock seedconfig/user-data seedconfig/meta-data
# This is not very well documented in virtualbox but is there alongside vboxmanage.
# This saves installing oscdimg.exe via the windows adk
@awalker125
awalker125 / gist:3aebb158621c15a787fd9f65b2ca998d
Created June 11, 2021 13:17
install harbor ca in minikube so pulls are trusted by docker
cat > update-docker-registry-trust.yaml << END
apiVersion: batch/v1
kind: Job
metadata:
name: update-docker-registry-trust
namespace: harbor
spec:
template:
spec:
containers:
@awalker125
awalker125 / with_z_patch.txt
Created April 28, 2017 07:24
Copying files fails when selinux is enabled on docker build host logs
[packer-ansible-rhel7-selinux-issue] $ /bin/sh -xe /tmp/hudson7405600183805422075.sh
+ export PACKER_LOG=1
+ PACKER_LOG=1
+ /usr/local/bin/packer build -var build_number=5 -var 'built_by=Andrew Walker' -on-error=abort -debug /var/jenkins/workspace/packer-ansible-rhel7-selinux-issue/packer.json
2017/04/28 07:02:29 [INFO] Packer version: 1.1.0-dev (23d2917b9850a4eb1f2edf742b68e82f7023f3b6)
2017/04/28 07:02:29 Packer Target OS/Arch: linux amd64
2017/04/28 07:02:29 Built with Go Version: go1.8.1
2017/04/28 07:02:29 Detected home directory from env var: /home/jenkins
2017/04/28 07:02:29 Using internal plugin for azure-arm
2017/04/28 07:02:29 Using internal plugin for hyperv-iso