Skip to content

Instantly share code, notes, and snippets.

@JeremyVV
JeremyVV / load_config.sh
Created October 23, 2025 17:13
Bash script to security load a simple config file
load_config() {
local config_file="$1"
# Check if the file exists and is readable
if [[ ! -r "$config_file" ]]; then
echo "Error: Configuration file $config_file not found or unreadable." >&2
return 1
fi
# NOTE: This function only reads simple KEY=value pairs.
@JeremyVV
JeremyVV / Semaphore_FAQ.md
Created February 19, 2025 16:48
Semaphore - Useful Stuff

List users

semaphore users list

Reset a user password

semaphore users change-by-login --login {user} --password {newpass}

@JeremyVV
JeremyVV / How to Add Multipath LVM Storage LUNs in RHEL 6.md
Last active January 27, 2020 21:13
[How to Add Multipath LVM Storage LUNs in RHEL 6] #rhel6 #lvm #storage #multipath #san

Table of Contents

Detect New SCSI Devices

Assuming that the multipath device has already been presented from the SAN side we need to scan for the new devices.

for host in /sys/class/scsi_host/* ; do echo "- - -" > ${host}/scan ; done
@JeremyVV
JeremyVV / admin.cmd
Last active July 17, 2019 22:13
[Admin workstation setup]
# From https://chocolatey.org
choco install 7zip.install -y
choco install atom -y
choco install ccleaner -y
choco install colorcop -y
choco install displaylink -y
choco install greenshot -y
choco install keepass.install -y
choco install lepton -y
choco install mremoteng -y
@JeremyVV
JeremyVV / dl_kompose.ps1
Created June 21, 2019 17:14
[Download Windows Kompose.exe] #kubernetes
<#PSScriptInfo
.VERSION 1.0
.GUID e95d1cbe-b25e-4dc1-bde9-7a3cdbcdfd17
.AUTHOR [email protected]
.COMPANYNAME
.COPYRIGHT
.TAGS
.LICENSEURI
.PROJECTURI
.ICONURI
@JeremyVV
JeremyVV / dl_minikube.ps1
Last active June 19, 2019 22:47
[Download Windows minikube.exe] Gets the latest version #kubernetes
<#PSScriptInfo
.VERSION 1.0
.GUID 9160606f-bd5f-4d3d-92d3-a6d273efc48f
.AUTHOR [email protected]
.COMPANYNAME
.COPYRIGHT
.TAGS
.LICENSEURI
.PROJECTURI
.ICONURI
@JeremyVV
JeremyVV / dl_kubectl.ps1
Last active June 19, 2019 22:47
[Download Windows Kubectl.exe] Gets the latest version of Kubectl.exe #kubernetes
<#PSScriptInfo
.VERSION 1.0
.GUID a4c35827-6014-4451-b78a-d57a0706cc5a
.AUTHOR Jeremy Van Veelen
.COMPANYNAME
.COPYRIGHT
.TAGS
.LICENSEURI
.PROJECTURI
.ICONURI
@JeremyVV
JeremyVV / VagrantFile-CentosWorkstation
Last active May 17, 2019 23:18
[VagrantFile-CentosWorkstation]
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
config.vm.box_download_insecure = true
config.vm.box = "bento/centos-7"
config.vbguest.iso_path = "#{ENV['HOME']}/Downloads/VBoxGuestAdditions.iso"
config.vm.provider "virtualbox" do |vb|
vb.name = 'centos-gui'
@JeremyVV
JeremyVV / synctoy.xml
Last active May 15, 2019 19:37
[synctoy scheduled task] For Windows #windows #taskscheduler
<?xml version="1.0" encoding="UTF-16"?>
<Task version="1.2" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task">
<RegistrationInfo>
<Date>2019-05-15T12:31:01.2666135</Date>
<Author>jvanveelen</Author>
<Description>Automatically Sync my file</Description>
</RegistrationInfo>
<Triggers>
<CalendarTrigger>
<Repetition>