Skip to content

Instantly share code, notes, and snippets.

View tiesmaster's full-sized avatar

Ties Brobbel tiesmaster

View GitHub Profile
@tiesmaster
tiesmaster / rancher
Last active November 21, 2025 16:13
Rancher wrapper script to follow the oauth flow to your browser
#!/usr/bin/env bash
set -ueo pipefail
# Path to the actual rancher executable
RANCHER_BIN="/opt/homebrew/bin/rancher"
# Check if the first argument is "token"
if [ "$1" = "token" ]; then
# Monitor the output file for the authentication code
@tiesmaster
tiesmaster / main.go
Created March 14, 2025 15:25
check-tcp-socket-liveness-in-golang
package main
import (
"fmt"
"net"
"time"
)
func main() {
// Connect to the server
@tiesmaster
tiesmaster / 1.0 Science Book - Tileable
Created January 20, 2024 17:30
Factorio: my blueprints
0eNrtvV2TWzmSJfhXwvRUtU2qLr6BtN41m57dhzWbsW7bmrV92EmTURGUREuKEUtGKCenLf/73kuGgiAJXJzjl6GUqvMhqzJDigOHAw7HdRx3//c379dPy4ftavP47v39/S9vfvr34092b376f7P/HP7sbrm73a4eHlf3mzc/vZnf/Nen3ePN++XN58XmabFe/3bzYXl385fV9n5zs9jc3dzePzwstzcP68XjcvfXt/99M7/516fHh6fHn25UvNn2f3d3u1pubpd/+7zavH0ze7O6vd8cht2tPm4W62HMx98elv1gq8fl5/5vbBafh/9aPD3ef14McsyfIeYPi9tf3vzeY2zulv/jzU/q959nb5abx9XjanmA3P/Hb+82T5/fL7f9X3gBWy/e98gP97vVYWL//qb//bl562Zvfjv8y++/zy5+Xx+F2e2Wn9+vV5uP88+L20+rzXKuLgG7HG/2Zru8XT2MT+ViSDMusm1IbF9+fbXZLbeP/c8up61Oxbxb9YIe/lwXIB0AqauIvoDoSbXOv8J3YrUGRC8vs1Dns7AFyPgCufvcG8Z8ue7/9nZ1O3+4Xy8L6N0p+ma5+vjp/f3Tdti5qptpN9P+58I4CRH9BbxDlrQfjpJdjYgeSzIrBQjdUepWGoBUVTWU9qE6Gtuv9/d3y8389tNy9zgi6QG2P8E2B9zd8BfU8D8ft8vlJj+DVnf9AOn3n38vmamypAmYyRagEDs23JIcDXk41B8Xm8f57f3n96vN4vF+bJders5eqY/b+/W798tPiy+r/tf73/mwWvdiQt7i4Ifmez/0Zr9GT4M/U7mzKK5EEJ7x+nQlBoc4/7hcbOe/flou18UVOD8x1ovPD/U93JVPeJUI07pQtC0r+na1vX1aPb7r/+zuBefDart7fNfQ++W8X/bC4ZzpN8TDYrvfED+9+ec3v1P2Yyr2o7uGZ/96lNuKY1eMP9AVED0uhGnIYAiDrIlghRborm+B+51A2592QjdqQVekvczXwfiBdCKuspS
@tiesmaster
tiesmaster / settings.json
Created December 31, 2023 14:37
WT: worddelimiters
"wordDelimiters": " \\()\"',:;<>~!@#$%^&*|+=[]{}~?\u2502",
{
"id": "0961ecf3-ccf0-4444-8979-1b2ca1772cf2",
"name": "My Visual Studio extensions",
"description": "A collection of my Visual Studio extensions",
"version": "1.0",
"extensions": [
{
"name": "Add New File (64-bit)",
"vsixId": "d48e8f25-661b-4970-8b66-03f051ba5fc3",
"moreInfoUrl": "https://marketplace.visualstudio.com/items?itemName=MadsKristensen.AddNewFile64",
@tiesmaster
tiesmaster / settings.json
Created December 11, 2023 18:04
WT: keyboard shortcuts [F1 - F5]
{
"command":
{
"action": "commandPalette"
},
"keys": "f1"
},
{
"command":
{
@tiesmaster
tiesmaster / NoCaps.reg
Created December 11, 2023 13:14
Moving the Ctrl Key: No Caps
REGEDIT4
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout]
"Scancode Map"=hex:00,00,00,00,00,00,00,00,02,00,00,00,1d,00,3a,00,00,00,00,00
@tiesmaster
tiesmaster / go.mod
Last active December 2, 2023 12:22
Reproduce Docker "default context" bug
module example/hello
go 1.21.4
require (
github.com/GoogleCloudPlatform/cloudsql-proxy v1.33.14
github.com/Xuanwo/go-locale v1.1.0
github.com/blang/semver v3.5.1+incompatible
github.com/docker/cli v24.0.7+incompatible
github.com/docker/go-connections v0.4.0
# Bash History settings
export HISTCONTROL=ignoredups
export HISTIGNORE="&:ls:ll:[bf]g:fc:history *:exit:eb:ei"
export HISTSIZE=2000
unset HISTFILESIZE
HISTTIMEFORMAT="%d %b %R "
shopt -s histappend
shopt -s histverify
# ENV vars
@tiesmaster
tiesmaster / _gvimrc
Created August 7, 2023 20:32
Some basic VIM dotfiles
au GUIEnter * simalt ~x