Skip to content

Instantly share code, notes, and snippets.

View aRustyDev's full-sized avatar

aRustyDev aRustyDev

View GitHub Profile
@aRustyDev
aRustyDev / party.json
Created June 4, 2025 18:41
party-json jsonschema
{
"type": "object",
"properties": {
"name": { "type": "string" },
"start_time": { "type": "string", "format": "date-time" },
"end_time": { "type": "string", "format": "date-time" },
"location": { "$ref": "#/$defs/location" },
"timezone": { "type": "string" }
},
"additionalProperties": "false",
@aRustyDev
aRustyDev / tf_log-debug-output
Created May 5, 2025 05:00
`cloudflare_mtls_certificate` "Unable to parse certificate" error
TF_LOG=DEBUG terraform apply -auto-approve
2025-05-05T00:47:40.794-0400 [INFO] Terraform version: 1.11.4
2025-05-05T00:47:40.794-0400 [DEBUG] using github.com/hashicorp/go-tfe v1.70.0
2025-05-05T00:47:40.794-0400 [DEBUG] using github.com/hashicorp/hcl/v2 v2.23.0
2025-05-05T00:47:40.794-0400 [DEBUG] using github.com/hashicorp/terraform-svchost v0.1.1
2025-05-05T00:47:40.794-0400 [DEBUG] using github.com/zclconf/go-cty v1.16.0
2025-05-05T00:47:40.794-0400 [INFO] Go runtime version: go1.23.3
2025-05-05T00:47:40.794-0400 [INFO] CLI args: []string{"terraform", "apply", "-auto-approve"}
2025-05-05T00:47:40.794-0400 [DEBUG] Attempting to open CLI config file: /Users/<username>/.terraformrc
2025-05-05T00:47:40.794-0400 [INFO] Loading CLI configuration from /Users/<username>/.terraformrc
$ terraform apply -auto-approve orbstack.plan
module.orb.module.cluster_config.kubernetes_node_taint.cilium_managed["0"]: Creating...
module.orb.module.cluster_config.kubernetes_node_taint.cilium_managed["0"]: Creation complete after 0s [id=orbstack,node.cilium.io/agent-not-ready=true:NoExecute]
module.orb.module.utils[0].module.cilium[0].helm_release.cilium: Modifying... [id=cilium]
module.orb.module.utils[0].module.cilium[0].helm_release.cilium: Still modifying... [id=cilium, 10s elapsed]
│ Error: Plugin did not respond
│ The plugin encountered an error, and failed to respond to the plugin6.(*GRPCProvider).ApplyResourceChange call. The plugin logs may contain more
@aRustyDev
aRustyDev / fix-for-sudo-command-error-unable-to-initialize-pam-no-such-file-or-directory.md
Last active August 12, 2024 15:10
macOS - Fix for sudo command error: "unable to initialize PAM: No such file or directory" (Intel+M1)

In most cases, the sudo command displays the error unable to initialize PAM: No such file or directory mostly appears when the pluggable authentication module file /etc/pam.d/sudo has been edited with a typo or an incorrect PAM module.

Via Single-User-Mode > Terminal

If you have an older Mac, you can boot into single-user mode, which allows you to access the command line mode of macOS directly, bypassing the UI.

  • Press and hold down the COMMAND + S keys until you see commands being executed in the Terminal.

  • Open the sudo file with vi /Volumes/Macintosh\ - Data/etc/pam.d/, fix what's wrong, save and close the file by switching from INSERT to the COMMAND mode with the ESC key, type :wq!, and hit enter.

@aRustyDev
aRustyDev / CreateGhidraApp.sh
Created July 9, 2024 15:53 — forked from saagarjha/CreateGhidraApp.sh
Creates a Ghidra.app bundle for macOS
#!/bin/sh
set -eu
create_iconset() {
mkdir -p Ghidra.iconset
cat << EOF > Ghidra.iconset/Contents.json
{
"images":
[
@aRustyDev
aRustyDev / get-chrome-cache_data.sh
Last active November 12, 2023 04:29
get chrome cache_data
#!/bin/bash -l
OUTPUT=$PWD
D="~/Library/Caches/Google/Chrome/Default/Cache/Cache_Data/"
arr=( $(grep -R --binary-files=binary --exclude-dir=index-dir "$1" $D | egrep -o "/.* " | tr -d / ) )
for i in "${arr[@]}"
do
hexdump -C "$D$i" > "$OUTPUT/chrome_dump/$i.hex.txt"
xxd -r -p "$OUTPUT/chrome_dump/$i.hex.txt" > "$OUTPUT/chrome_dump/$i.xxd.bin"
done
@aRustyDev
aRustyDev / keybase.md
Created October 31, 2023 03:19
keybase.md

Keybase proof

I hereby claim:

  • I am aRustyDev on github.
  • I am arustydev (https://keybase.io/arustydev) on keybase.
  • I have a public key whose fingerprint is 685B AD3A 5E6C A77A 340D D04E 3A40 BC35 7D83 EFF8

To claim this, I am signing this object:

@aRustyDev
aRustyDev / .gist.new-laptop-who-dis.txt
Last active November 15, 2023 05:09
new laptop who dis?
Installs all the programs I prefer to have on my laptop.
@aRustyDev
aRustyDev / ERR_regex.apply.tf.dbg
Last active May 9, 2023 13:53
TF Debug output for GH Issue "Replace() can't handle PCRE valid syntax" @ https://github.com/hashicorp/terraform
2023-05-09T09:26:25.826-0400 [INFO] Terraform version: 1.4.5
2023-05-09T09:26:25.826-0400 [DEBUG] using github.com/hashicorp/go-tfe v1.18.0
2023-05-09T09:26:25.826-0400 [DEBUG] using github.com/hashicorp/hcl/v2 v2.16.2
2023-05-09T09:26:25.826-0400 [DEBUG] using github.com/hashicorp/terraform-config-inspect v0.0.0-20210209133302-4fd17a0faac2
2023-05-09T09:26:25.826-0400 [DEBUG] using github.com/hashicorp/terraform-svchost v0.1.0
2023-05-09T09:26:25.826-0400 [DEBUG] using github.com/zclconf/go-cty v1.12.1
2023-05-09T09:26:25.826-0400 [INFO] Go runtime version: go1.20.3
2023-05-09T09:26:25.826-0400 [INFO] CLI args: []string{"terraform", "apply", "-auto-approve", "tfplan.v1"}
2023-05-09T09:26:25.826-0400 [TRACE] Stdout is not a terminal
2023-05-09T09:26:25.826-0400 [TRACE] Stderr is a terminal of width 155
@aRustyDev
aRustyDev / 14-2_Setup.sh
Created April 2, 2022 03:40
14-Web-Development-14-2_Setup-script
# !/bin/bash
# This script created from tinyurl.com/web-setup
# Ensure `sudo` is being used to run the script.
if [ "$(id -u)" != "0" ]; then
echo "Please re-run this script, $0, with sudo!" 1>&2
exit 1
fi