Skip to content

Instantly share code, notes, and snippets.

View coolaj86's full-sized avatar
😎
🐹 Go 🦎 Zig πŸ“¦ Node 🐧 POSIX πŸͺŸ PowerShell

AJ ONeal coolaj86

😎
🐹 Go 🦎 Zig πŸ“¦ Node 🐧 POSIX πŸͺŸ PowerShell
View GitHub Profile
@coolaj86
coolaj86 / Plaid Security Questionnaire (v6).md
Created September 1, 2024 01:40
Plaid Security Questionnaire (v6)

Plaid Security Questionnaire (v6)

Part One

Hosting (inf_sec_hosting)

  1. What is your organization's strategy for hosting the server-side components of your application?
    • On-prem hosting - We host all server-side components of our application using on-premise physical infrastructure
@coolaj86
coolaj86 / proxmox-container-urls.md
Last active August 25, 2024 23:27
Proxmox PVE Container Image Download URLs

Proxmox's pveam update fetches releases from http://download.proxmox.com/images/aplinfo-pve-8.dat and https://releases.turnkeylinux.org/pve/aplinfo.dat, which can be changed in /usr/share/perl5/PVE/APLInfo.pm.

The dat files contain the names of images which can you use to get the direct pveam download download URLs, for example:

@coolaj86
coolaj86 / LICENSE
Last active August 16, 2024 14:52
EventSocket
@copyright AJ ONeal 2024 MPL-2.0
@coolaj86
coolaj86 / view-dependent-tables-mysql.sql
Last active December 2, 2023 15:48
How to View Tables that Reference a Target Table in MySQL
-- USAGE
-- call show_references_to('my_much_referenced_table') \G
DELIMITER //
CREATE OR REPLACE PROCEDURE show_references_to(
my_table_name VARCHAR(255)
-- , my_column_name VARCHAR(255)
)
BEGIN
@coolaj86
coolaj86 / posix-bsd-flags.md
Last active January 11, 2025 15:09
POSIX, BSD, GNU, & IEEE Standard Command Line Flags & Options

POSIX & BSD Standard Command Line Flags & Options

The vital resource for developers creating new command-line tools to learn the wisdom of the ancients.

All programs should universally implement these flags:

  • -V (uppercase), --version, version
  • --help, help (also the default if nothing is given)
  • -- stop processing flags; treat all else as raw arguments

I'm creating a backup retention strategy with this directory structure:

backups
β”œβ”€β”€ daily
β”œβ”€β”€ monthly
β”‚  β”œβ”€β”€ 2019
β”‚  └── 2020
└── weekly

Expected Output

/usr/bin
$HOME/.local/bin
$HOME/.local/a/bin
$HOME/.local/b/bin
$HOME/.local/c/bin
$HOME/.local/d/bin