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:2ea342fbf83c1fd1f000cbf45929fd81
Created August 6, 2025 17:57
EdgeMax / EdgeRouter IPv6 Base Firewall Rules
edit firewall ipv6-name WAN6_IN
set default-action drop
set rule 10 action accept
set rule 10 description "Allow Established/Related"
set rule 10 protocol all
set rule 10 state established enable
set rule 10 state related enable
set rule 20 action drop
@daryltucker
daryltucker / gist:7db405c723eb979a0ac89fe0d2b0454f
Last active August 6, 2025 19:36
EdgeMax / EdgeRouter IPv6 on Multiple Interfaces / NICs
# Assuming you got a small IPv6 block and want to delegate across multiple LAN interfaces
edit interfaces ethernet eth0
set dhcpv6-pd pd 0 prefix-length /64
set dhcpv6-pd pd 0 interface eth1 host-address ::1
set dhcpv6-pd pd 0 interface eth1 prefix-id :0
set dhcpv6-pd pd 0 interface eth1 service slaac
set dhcpv6-pd pd 0 interface eth2 host-address ::1
set dhcpv6-pd pd 0 interface eth2 prefix-id :1
@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