Skip to content

Instantly share code, notes, and snippets.

@freehuntx
freehuntx / globalz.gd
Last active July 31, 2024 19:05
Godot globalz - Simple globals class
class_name Globalz
static var _globals := {}
static func write(key: String, value: Variant) -> void:
_globals[key] = value
static func read(key: String) -> Variant:
return _globals.get(key)
@freehuntx
freehuntx / _helpers.tpl
Created August 22, 2024 11:49
Helm - Templated values
{{- define "templated-values" -}}
{{- $filteredValues := dict -}}
{{- range $key, $val := $.Values }}
{{- $isSubchart := false -}}
{{- range $name, $subchart := $.Subcharts }}
{{- if eq $key $name }}
{{- $isSubchart = true -}}
{{- end -}}
{{- end -}}
{{- if not $isSubchart }}
@freehuntx
freehuntx / DataViewStream.js
Last active November 5, 2024 23:34
Buffer Serialization tools
class DataViewStream {
_grow = false
_byteOffset = 0
_view = null
_textDecoder = new TextDecoder()
_textEncoder = new TextEncoder()
get byteOffset() { return this._byteOffset }
get byteLength() { return this._view.byteLength }
get bytesLeft() { return this._view.byteLength - this._offset }
@freehuntx
freehuntx / release.sh
Created July 8, 2025 16:25
Release workflow bash file
#!/bin/bash
set -euo pipefail
IFS=$'\n\t'
# Get the latest tag
LAST_TAG="$(git describe --tags --abbrev=0 2>/dev/null || true)"
# Get commits since the last tag, or all commits if no tag exists
if [[ -z "$LAST_TAG" ]]; then
COMMITS=$(git log --pretty=format:"%s")
// ==UserScript==
// @name GitHub Tag Creator
// @namespace http://tampermonkey.net/
// @version 2.2
// @description Add ability to create tags on GitHub via API
// @author freehuntx
// @match https://github.com/*/*/tags*
// @grant GM_xmlhttpRequest
// @grant GM_addStyle
// @grant GM_getValue