Skip to content

Instantly share code, notes, and snippets.

View goodwillhacking's full-sized avatar
🔨
Building

Goodwill Hacking goodwillhacking

🔨
Building
View GitHub Profile
@goodwillhacking
goodwillhacking / add_to_zshrc.sh
Created August 26, 2024 01:24 — forked from karpathy/add_to_zshrc.sh
Git Commit Message AI
# -----------------------------------------------------------------------------
# AI-powered Git Commit Function
# Copy paste this gist into your ~/.bashrc or ~/.zshrc to gain the `gcm` command. It:
# 1) gets the current staged changed diff
# 2) sends them to an LLM to write the git commit message
# 3) allows you to easily accept, edit, regenerate, cancel
# But - just read and edit the code however you like
# the `llm` CLI util is awesome, can get it here: https://llm.datasette.io/en/stable/
gcm() {
@goodwillhacking
goodwillhacking / mac-vendor.txt
Created July 6, 2024 04:39 — forked from aallan/mac-vendor.txt
List of MAC addresses with vendors identities
000000 Officially Xerox
000001 SuperLAN-2U
000002 BBN (was internal usage only, no longer used)
000003 XEROX CORPORATION
000004 XEROX CORPORATION
000005 XEROX CORPORATION
000006 XEROX CORPORATION
000007 XEROX CORPORATION
000008 XEROX CORPORATION
000009 powerpipes?
@goodwillhacking
goodwillhacking / bash_strict_mode.md
Created June 11, 2024 20:39 — forked from mohanpedala/bash_strict_mode.md
set -e, -u, -o, -x pipefail explanation
@goodwillhacking
goodwillhacking / keybase.md
Last active June 11, 2024 04:08
keybase.md

Keybase proof

I hereby claim:

  • I am goodwillhacking on github.
  • I am goodwillhacking (https://keybase.io/goodwillhacking) on keybase.
  • I have a public key ASD97l8ly_9M8-5IygmoMFdAIyfmnAHaS0ZEt6sHPwtxzAo

To claim this, I am signing this object:

@goodwillhacking
goodwillhacking / shell-setup.ps1
Created May 9, 2024 17:09 — forked from mikepruett3/shell-setup.ps1
Packages to install via scoop, winget, choco, and other tools...
<#
.SYNOPSIS
Script to Initialize my custom powershell setup.
.DESCRIPTION
Script uses scoop
.NOTES
**NOTE** Will configure the Execution Policy for the "CurrentUser" to Unrestricted.
Author: Mike Pruett
Date: October 18th, 2018
#compdef foo-tools.sh
_foo_tools_sh() {
local -a commands
commands=(
"start:Start something"
"stop:Stop something"
"install:Install something"
"switch:Switch to something else"
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "ansible/tower"
config.vm.network "forwarded_port", guest: 80, host: 8777
# Create a private network. In VirtualBox, this is a Host-Only network
config.vm.network "private_network", ip: "192.168.33.10"
@goodwillhacking
goodwillhacking / ai-gpt.md
Last active March 16, 2024 02:05
Helpful Tools and Services

Flow GPT

Gemini

Copilot

ChatGPT

Claude (Anthropic)

DALL-E3

Mistral

Llama2

@goodwillhacking
goodwillhacking / haproxy.cfg
Created March 10, 2024 20:23
haproxy.cfg - loadbalance a kuber cluster
global
log stdout local0 notice
chroot /var/lib/haproxy
stats socket /run/haproxy-admin.sock mode 660 level admin expose-fd listeners
stats timeout 20s
maxconn 4096
user haproxy
group haproxy
# daemon