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
@Alex4386
Alex4386 / apply_to_idrac.bat
Last active March 15, 2024 08:49
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 (
#!/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" \
@tavinus
tavinus / rem_proxmox_popup.sh
Last active February 27, 2024 22:47
Remove PROXMOX 5.x / 6.x / 7.3-4 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.
#
@lucab
lucab / runtime-goarm.go
Created March 24, 2017 13:56
golang: runtime access to private symbol "runtime.goarm"
package main
import (
"fmt"
_ "unsafe"
)
//go:linkname goarm runtime.goarm
var goarm uint8
@mdo
mdo / 00-intro.md
Last active March 24, 2024 08:04
Instructions for how to affix an Ikea Gerton table top to the Ikea Bekant sit-stand desk frame.

Ikea Bekant standing desk with Gerton table top

@mdrovdahl
mdrovdahl / gist:5b2edc510439776ed02a2cb8221dbee5
Created November 14, 2016 16:29
Deconstructing the NeviWeb API
Warning, raw notes below...
Functions:
DEFINES
input("email", "text", title: "E-mail", description: "Your neviweb® account login e-mail")
input("password", "password", title: "Password", description: "Your neviweb® account login password")
input("gatewayname", "text", title: "Network Name:", description: "Name of your neviweb® network")
input("devicename", "text", title: "Device Name:", description: "Name of your neviweb® thermostat")
@mfikes
mfikes / fast.md
Last active January 6, 2024 07:19
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:

@joshrotenberg
joshrotenberg / embedded.go
Last active August 4, 2023 08:56
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
@brianbianco
brianbianco / gist:cb8a9f73a39ed1f42934
Created October 13, 2014 20:36
Shared volumes OS X / Docker
  $ cd ~/.boot2docker
  $ curl http://static.dockerfiles.io/boot2docker-v1.2.0-virtualbox-guest-additions-v4.3.14.iso > boot2docker.iso
  $ boot2docker init
  $ VBoxManage sharedfolder add boot2docker-vm -name home -hostpath /Users
  $ boot2docker up
 
  $ boot2docker ssh "sudo modprobe vboxsf && mkdir -v -p /Users && sudo mount -v -t vboxsf  -o uid=0,gid=0 home /Users"
#!/bin/sh
#
# aixsetup.sh: Set up an AIX 6.1 server to have all the prerequisites to run Omnibus.
#
# Authors: Scott Hain (<shain@getchef.com>), Julian Dunn (<jdunn@getchef.com>)
#
# Notes:
# 1. /bin/sh is actually ksh. Your bashisms ain't gonna work here, sonny!
# 2. Run this script as superuser.
# 3. I've tried to be clear about what requires GNU Make and what requires BSD make