Skip to content

Instantly share code, notes, and snippets.

View ghthor's full-sized avatar
🦆
Ducking

Will Owens ghthor

🦆
Ducking
View GitHub Profile
@ghthor
ghthor / ANSI.md
Created May 16, 2023 07:39 — forked from fnky/ANSI.md
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27
@ghthor
ghthor / PKGBUILD.diff
Created May 11, 2023 03:27
python3-threaded_servers AUR PKGBUILD update
diff --git a/PKGBUILD b/PKGBUILD
index 85a1d3e..1b4a63e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,6 +1,6 @@
#Maintainer: Xyne <gro xunilhcra enyx, backwards>
pkgname=python3-threaded_servers
-pkgver=2022
+pkgver=2022.9
pkgrel=3
@ghthor
ghthor / 0001-Add-bash-zsh-completions-and-fix-version-string.patch
Created November 11, 2022 07:25
Subject: [PATCH] Add bash/zsh completions and fix version string
From 8faf889cf8991cd383ad89bbd1f93d8db2ec5a6a Mon Sep 17 00:00:00 2001
From: Will Owens <[email protected]>
Date: Fri, 11 Nov 2022 02:13:38 -0500
Subject: [PATCH] Add bash/zsh completions and fix version string
They are embedded in a command that requires sudo to run so I
pulled the templates out of their source so we can install them
a package build time instead of afterwards.
```
@ghthor
ghthor / main.go
Created July 30, 2021 19:03
Product Pricing
/*
(ns ch-market-place.core-test
(:require [clojure.test :refer :all]
[ch-market-place.core :refer :all]))
;; Here are the minimal inputs you should use for your test
;; cases. These test cases must be shown to work in your program:
;; Scan these items in this order: ABCDABAA; Verify the total price is
;; $32.40.

Keybase proof

I hereby claim:

  • I am ghthor on github.
  • I am khutulun (https://keybase.io/khutulun) on keybase.
  • I have a public key ASACpwrwIS_-CJP_z_MlmAp1iLMeFSIDVHRAzfAYkJCvJwo

To claim this, I am signing this object:

@ghthor
ghthor / poly-example.go
Last active January 25, 2018 12:18
One of my first(03/15/2010) Golang experiments, Polymorphism using Interfaces.
package main
import (
"fmt"
)
// Declare an Interface to a 3d Solid
type Solid interface {
Volume() float
SurfaceArea() float
@ghthor
ghthor / polymorphism-example.cpp
Last active January 25, 2018 10:59
A C++ example I made to demonstrate polymorphism to David Rogers
// Base Class
class BaseClass
{
public:
virtual void myFunc()
{
cout << "myFunc From BaseClass";
}
void overLoaded()
@ghthor
ghthor / wow-dualbox.ahk
Created January 25, 2018 08:42
AHK Script to enabling Dualbox'ing in WoW
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
;#InstallKeybdHook
WarrID := 0
ShamID := 0
DrudID := 0
@ghthor
ghthor / git-merge-magic-spells.sh
Last active October 24, 2016 18:14
Git Merge Conflict - Magic Spells
alias grm-added-by-us='git status | grep "added by us" | cut -f 2 -d ":" | tr "\n" "\0" | xargs -0 git rm'
@ghthor
ghthor / ChordInput.cs
Created September 15, 2016 21:47
Chordpad For Vive in Unity
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
[RequireComponent(typeof(SteamVR_TrackedObject))]
public class ChordInput : MonoBehaviour
{
SteamVR_TrackedObject controller;
enum ControllerHand { L, R }