Skip to content

Instantly share code, notes, and snippets.

View tree-s's full-sized avatar
👋

Michael J. MacMullin tree-s

👋
View GitHub Profile
@tree-s
tree-s / dashboard.admin-user-role.yml
Created April 12, 2023 12:25
Kubernetes setup scripts
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: admin-user
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: cluster-admin
subjects:
- kind: ServiceAccount
@aynik
aynik / rtttl_to_casio.py
Created August 14, 2024 04:38
RTTTL folder to Casio buzzer sequence structs
#!/usr/bin/env python3
import sys
import os
from ptttl.parser import PTTTLParser
from math import log2
DURATION_ADJUSTMENT = 18
def parse_rtttl(file_path):
with open(file_path, 'r') as f:
@tree-s
tree-s / rtttl_to_casio.py
Created August 14, 2024 14:34 — forked from aynik/rtttl_to_casio.py
RTTTL folder to Casio buzzer sequence structs
#!/usr/bin/env python3
import sys
import os
from ptttl.parser import PTTTLParser
from math import log2
DURATION_ADJUSTMENT = 18
def parse_rtttl(file_path):
with open(file_path, 'r') as f:
@tree-s
tree-s / theme.py
Last active November 27, 2025 17:57
Quetbrowser theme
matrix = {
# matrix night
'matrix0': '#0D0208',
'matrix1': '#0D0208',
'matrix2': '#0D0208',
'matrix3': '#226622',
# term
'matrix4': '#55ff55',
'matrix5': '#00ff41',
'matrix6': '#00ff41',
@tree-s
tree-s / qute-win-1pass.py
Last active November 27, 2025 17:57
Windows compatable version of user login scripts
import argparse
import os
import json
import subprocess
import tempfile
import re
import sys
import tkinter as tk
from urllib.parse import urlparse
from tkinter import simpledialog
@tree-s
tree-s / Microsoft.PowerShell_profile.ps1
Last active December 4, 2025 12:20
PSReadline config
# --- Zsh-like PSReadLine Configuration for Windows PowerShell 5.1 ---
# Predictions (history-based)
Set-PSReadLineOption -PredictionSource History
Set-PSReadLineOption -PredictionViewStyle Inline
# Use menu completion when pressing Tab (zsh-like)
Set-PSReadLineKeyHandler -Key Tab -Function MenuComplete
# History search with Up/Down arrows (zsh substring search feel)