Skip to content

Instantly share code, notes, and snippets.

View QNimbus's full-sized avatar
🎯
Focusing

Bas QNimbus

🎯
Focusing
  • The Netherlands
View GitHub Profile
# Blueprint metadata
blueprint:
name: Disable Fibaro lights during daylight
description: |
# 🪄 Disable Fibaro lights during daylight
**Version: 0.3**
This blueprint can disable the manual operation of one or more Fibaro dimmers during a certain period (i.e. daytime, between sunrise and sunset).
The use case for this blueprint is the fact that my children occasionally refuse to open their bedroom curtains and switch on their room lights during the day which is wasteful and not required when the sun is up.
@QNimbus
QNimbus / _index.md
Last active June 4, 2024 13:39
SSL Certificates #ssl_certificates
@QNimbus
QNimbus / gh-clean.sh
Last active July 5, 2024 14:56
Git scripts & tools #git #scripts
#!/bin/bash
#
# name: gh-clean.sh
# version: 1.0.0
# date: 2024-07-05
# author: B. van Wetten
# purpose: ## FIXIT ##
# 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.
@QNimbus
QNimbus / cheatsheet.md
Last active January 10, 2024 11:33
Git cheat sheet #git #cheatsheet
@QNimbus
QNimbus / Windows Sandbox.wsb
Last active May 31, 2024 20:19
Provisioning #provisioning
<Configuration>
<vGPU>Enable</vGPU>
<Networking>Default</Networking>
<AudioInput>Disable</AudioInput>
<VideoInput>Disable</VideoInput>
<PrinterRedirection>Disable</PrinterRedirection>
<ClipboardRedirection>Default</ClipboardRedirection>
<ProtectedClient>Enable</ProtectedClient>
<MappedFolders>
<MappedFolder>
@QNimbus
QNimbus / code_outline_exporter.py
Last active December 18, 2023 19:19
Python scripts
#!/usr/bin/env -S python -W ignore
# code_outliner_exporter.py
# Standard library imports
import os
import ast
import argparse
from pathlib import Path
@QNimbus
QNimbus / network-client.sh
Last active November 25, 2023 09:56
Basic network performance testing
#!/bin/env bash
# Function to check if a command exists
command_exists() {
command -v "$1" >/dev/null 2>&1
}
# Function to perform iperf test
run_iperf_test() {
if ! command_exists iperf3; then
@QNimbus
QNimbus / jq-cheetsheet.md
Created November 23, 2023 08:37 — forked from olih/jq-cheetsheet.md
jq Cheet Sheet

Processing JSON using jq

jq is useful to slice, filter, map and transform structured json data.

Installing jq

On Mac OS

brew install jq

@QNimbus
QNimbus / log2ram.md
Last active November 16, 2023 15:18
Linux

log2ram

To install log2ram, run the following commands:

sudo apt update
sudo apt install rsync # RSync is synchronizes files and directories from one location to another
mkdir log2ram
curl -LfSs https://github.com/azlux/log2ram/archive/master.tar.gz | tar -xz --strip-components=1 -C log2ram
sudo ./install.sh
@QNimbus
QNimbus / crontab.md
Last active November 18, 2023 14:07
Docker + Nginx reverse proxy + LetsEncrypt + Chisel

Cron entry

0 0 * * 0 docker compose -f /opt/docker/nginx/docker-compose-le.yaml up && docker exec nginx-service nginx -s reload