Skip to content

Instantly share code, notes, and snippets.

View amdprophet's full-sized avatar
🏠
Working from home

Justin Kolberg amdprophet

🏠
Working from home
View GitHub Profile
@amdprophet
amdprophet / apply_to_idrac.bat
Created June 7, 2022 15:47 — forked from Alex4386/apply_to_idrac.bat
iDRAC 6 SSL Certificate Deploy Tool - with certbot
@echo off
echo Dell iDRAC 6 SSL Key upload system
echo.
echo ===[credentials]===
set default_hostname=your.idrac.address
rem Host Section
set /p host="Host (Default. %default_hostname%): "
IF NOT DEFINED host (
@amdprophet
amdprophet / embedded.go
Created June 29, 2021 20:00 — forked from joshrotenberg/embedded.go
embedded nsqd
package main
// This is a basic example of running an nsqd instance embedded. It creates
// and runs an nsqd with all of the default options, and then produces
// and consumes a single message. You are probably better off running a
// standalone instance, but embedding it can simplify deployment and is
// useful in testing.
// See https://github.com/nsqio/nsq/blob/master/nsqd/options.go and
// https://github.com/nsqio/nsq/blob/master/apps/nsqd/nsqd.go for
@amdprophet
amdprophet / rem_proxmox_popup.sh
Created May 27, 2021 18:43 — forked from tavinus/rem_proxmox_popup.sh
Remove PROXMOX 5.x / 6.x subscription message popup
#!/bin/sh
#######################################################
#
# Edits the proxmox Subscription file to make it
# think that it has a Subscription.
#
# Will disable the annoying login message about
# missing subscription.
#
@amdprophet
amdprophet / reset-iptables.sh
Created May 14, 2021 19:17 — forked from x-yuri/reset-iptables.sh
Reset iptables
#!/usr/bin/env bash
set -eu
declare -A chains=(
[filter]=INPUT:FORWARD:OUTPUT
[raw]=PREROUTING:OUTPUT
[mangle]=PREROUTING:INPUT:FORWARD:OUTPUT:POSTROUTING
[security]=INPUT:FORWARD:OUTPUT
[nat]=PREROUTING:INPUT:OUTPUT:POSTROUTING
)
for table in "${!chains[@]}"; do
#!/bin/bash
TOKEN="YOUR_TOKEN_HERE" # The API v2 OAuth token
ACCOUNT_ID="YOUR_ACCOUNT_ID_HERE" # Replace with your account ID
ZONE_ID="example.com" # The zone ID is the name of the zone (or domain)
RECORD_ID="42424242" # Replace with the Record ID
IP=`curl -s -4 v4.ifconfig.co` # or provide your own value
curl -H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-X "PATCH" \
@amdprophet
amdprophet / setuppdp.sh
Created February 21, 2019 20:44 — forked from juliandunn/setuppdp.sh
Script to set up IBM PDP AIX machines
#!/bin/sh
#
# Note: On AIX, /bin/sh is Korn Shell. Don't use Bashisms here!
# Partitions are too small to be useful. Expand them.
chfs -a size=+2000000 /usr
chfs -a size=+2000000 /opt
chfs -a size=+2000000 /home
chfs -a size=+2000000 /var
chfs -a size=+2000000 /tmp
@amdprophet
amdprophet / frontendDevlopmentBookmarks.md
Created August 18, 2016 03:09 — forked from dypsilon/frontendDevlopmentBookmarks.md
A badass list of frontend development resources I collected over time.
@amdprophet
amdprophet / fast.md
Created June 21, 2016 05:08 — forked from mfikes/fast.md
Fast Clojure REPL

An experimental change for fast Clojure REPL startup:

  1. Download the JAR: clojure-1.8.0-fast.jar
  2. Launch it via java -jar clojure-1.8.0-fast.jar

The code used to create this JAR is on GitHub.

What's it doing?

It is: