Skip to content

Instantly share code, notes, and snippets.

View daryltucker's full-sized avatar

Daryl Tucker daryltucker

  • Neo-Retro Group
  • Salem, Or
View GitHub Profile
@daryltucker
daryltucker / gist:7906d66be9b393a5998132ee9345eef6
Created December 20, 2024 16:34
Supermicro / Redfish Set IKVM back to Java/JNLP Mode
"/redfish/v1/Managers/1/Oem/Supermicro/IKVM"
'{"Current interface": "JAVA plug-in"}'
as opposed to
'{"Current interface": "HTML 5"}'
( via PATCH )
@daryltucker
daryltucker / curl_azure_chunk_upload.sh
Last active December 15, 2023 23:19
Chunk Upload to Azure Storage with curl
#!/bin/bash
# AZ_SAS_TOKEN=''
# ArtifactLocation=''
# ArtifactBaseName=''
DATE_NOW=$(date -Ru | sed 's/\\+0000/GMT/')
AZ_VERSION="2022-11-02"
AZ_BLOB_URL="https://STORAGE_ACCOUNT_HERE.blob.core.windows.net"
AZ_BLOB_CONTAINER="${ApplicationName}"
AZ_BLOB_TARGET="${AZ_BLOB_URL}/${AZ_BLOB_CONTAINER}/"
@daryltucker
daryltucker / certbot-dns-linode_v4.mkd
Created October 6, 2023 19:20
certbot-dns-linode

[{u'ERRORCODE': 16, u'ERRORMESSAGE': u'Linode API v3 is no longer active. Please use Linode API v4: https://www.linode.com/docs/api'}]

Make sure you're on Debian 11+ vs Debian 10-

@daryltucker
daryltucker / kibana-node-upgrade.sh
Last active November 22, 2023 04:03
Upgrade Node for Kibana
#!/bin/bash
NODE_VERSION=v18.18.2
cd /tmp/
wget --no-clobber https://nodejs.org/download/release/${NODE_VERSION}/node-${NODE_VERSION}-linux-x64.tar.xz
sudo systemctl stop kibana
tar -xvf node-${NODE_VERSION}-linux-x64.tar.xz --strip-components=1 \
--overwrite \
--directory /usr/share/kibana/node/
cat <<EOF | tee /tmp/node_version_validator.js.patch
@daryltucker
daryltucker / pem-to-pkcs12-with-intermediates.sh
Created August 24, 2023 17:42
Create PKCS12 from PEM (Certbot)
openssl pkcs12 -export -out example.net.p12 -inkey /etc/letsencrypt/live/example.net/privkey.pem -in /etc/letsencrypt/live/example.net/cert.pem -certfile /etc/letsencrypt/live/example.net/chain.pem -name example.net
@daryltucker
daryltucker / Windows11_Program_Startup.mkd
Created September 7, 2022 20:14
Windows 11 Startup Application named "Program"

While investigating Startup Applications, I noticed one named "Program". Using Task Manager, I was able to add "Command line" column under the Startup tab. This showed me which application was being started. In my case, it was WinHotKey. Also, "Startup type" column, to expose where the startup configuration lives (ie: Registry).

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run

Place double quotes around the value. For example:

"C:\Program Files (x86)\WinHotKey\WinHotKey.exe"
@daryltucker
daryltucker / hevrist
Created August 19, 2022 21:42
Find directories with lots of data within them.
#!bin/bash
function hevrist(){
local MAX=3;
local n=0;
QUERY=$1;
function h_x(){
du -shx $1/* 2>/dev/null | sort -rh | head -n 10;
};
while [ -n ${n} ] && [ ${n} -lt ${MAX} ]; do
@daryltucker
daryltucker / etc-pulse-default.pa
Created August 1, 2022 17:35
Intel Corporation C610/X99
load-module module-udev-detect tsched=0
@daryltucker
daryltucker / PulseAudio-No-Over-Amplification.mkd
Created July 25, 2022 17:17
Do not allow volume to exceed 100% in Pulse Audio
dconf write /com/ubuntu/sound/allow-amplified-volume false
@daryltucker
daryltucker / README.mkd
Last active August 26, 2022 20:55
Commit Message Hooks for Various Ticketing Systems

Goal

  1. Isolate different git configurations by like-workflows
  2. Automatically associate work tasks to commits.

Example

git checkout features/1234-banana
touch banana; git add banana