Skip to content

Instantly share code, notes, and snippets.

View qnimbus's full-sized avatar
🎯
Focusing

Bas qnimbus

🎯
Focusing
  • The Netherlands
View GitHub Profile
@qnimbus
qnimbus / interfaces.pve1
Last active July 11, 2025 19:58
Proxmox #proxmox
# network interface settings; autogenerated
# Please do NOT modify this file directly, unless you know what
# you're doing.
#
# If you want to manage parts of the network configuration manually,
# please utilize the 'source' or 'source-directory' directives to do
# so.
# PVE will preserve these directives, but will NOT read its network
# configuration from sourced files, so do not attempt to move any of
# the PVE managed interfaces into external files!
@qnimbus
qnimbus / Caddyfile
Last active January 28, 2025 10:00
Caddy welcome page
caddy.apps.vwn.io {
root * /srv
file_server
encode gzip zstd
log {
output stdout
format console
}
tls {
@qnimbus
qnimbus / certificate_import.py
Last active January 13, 2025 12:11
Certificate import #truenas #ssl
import requests
import json
import time
import os
import sys
import argparse
from datetime import datetime
import logging
from urllib.parse import urlparse
import urllib3
import requests
import json
import time
import os
import sys
import argparse
from datetime import datetime
import logging
from urllib.parse import urlparse
import urllib3
@qnimbus
qnimbus / .bash_aliases
Last active November 19, 2024 10:25
Linux WSL #linux #wsl
sgpt_function() {
if [ -t 0 ]; then
# Interactive mode
docker run --rm -it --name sgpt --user $(id -u):$(id -g) \
-e SHELL_NAME=$SHELL -e HOME=/home/$(whoami) -e TERM=xterm-256color \
-v gpt-cache:/tmp/chat_cache -v $(pwd):/app/workdir \
-v ~/:/home/$(whoami) shell-gpt "$@"
else
# Non-interactive mode
@qnimbus
qnimbus / automations---fibaro_hue_dimmer.yaml
Last active November 12, 2025 16:17
Home Assistant #ha #homeassistant
alias: Test
description: Test
triggers:
- id: key_single_click
trigger: event
event_type: zwave_js_value_notification
event_data:
domain: zwave_js
node_id: 172
command_class: 43
@qnimbus
qnimbus / _index.md
Last active November 23, 2024 10:47
SSL Certificates #ssl
@qnimbus
qnimbus / gh-clean.sh
Last active October 19, 2025 17:16
Git scripts & tools #git #scripts
#!/bin/bash
#
# name: gh-clean.sh
# version: 1.2.0
# date: 2024-07-11
# author: B. van Wetten
# url: https://gist.githubusercontent.com/QNimbus/bbaf20553b9d733c2b3f1b95346dbe0f/raw/gh-clean.sh
# usage: Cleans a specified GitHub repository by removing the entire commit history of each branch, then recommitting each branch with the message 'Initial Commit'.
# Optionally, it can also clean the local repository to match the cleaned remote repository and clear all pull requests and PR branches.
#
@qnimbus
qnimbus / git-cheatsheet.md
Last active December 8, 2024 03:19
Cheat sheets #git #jq #cheatsheet
@qnimbus
qnimbus / Windows Sandbox.wsb
Last active December 12, 2025 03:58
Provisioning Windows Sandbox #windows
<Configuration>
<vGPU>Enable</vGPU>
<Networking>Default</Networking>
<AudioInput>Disable</AudioInput>
<VideoInput>Disable</VideoInput>
<PrinterRedirection>Disable</PrinterRedirection>
<ClipboardRedirection>Default</ClipboardRedirection>
<ProtectedClient>Enable</ProtectedClient>
<MappedFolders>
<MappedFolder>