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 / gist:2c1d029137bce325ef493f9f62d64435
Created March 30, 2019 10:18
Delete a file/folder from your entire git history
git filter-branch --tree-filter 'rm -rf dist' --prune-empty HEAD
git for-each-ref --format="%(refname)" refs/original/ | xargs -n 1 git update-ref -d
cat <<EOT > .gitignore
node_modules/
dist/
EOT
git add .gitignore
git commit -m 'Removing dist from git history'
git gc
@QNimbus
QNimbus / stadia-fullscreen.user.js
Last active January 22, 2020 16:37
TamperMonkey script to enable double-click of mousebutton to switch Stadia to fullscreen mode
// ==UserScript==
// @name Stadia Fullscreen
// @namespace Stadia
// @version 0.3
// @description Will force fullscreen on any Stadia launch URL for the first click.
// @author EricLowry
// @include /^https:\/\/stadia\.google\.com\/(u\/[0-9]+\/)?player\/.+/
// @grant none
// @downloadURL https://gist.github.com/QNimbus/09f036615ced9f873a5b3d16849b6a91
// ==/UserScript==
@QNimbus
QNimbus / CPUTemp.sh
Last active January 23, 2020 10:54
Script for use with M/Monit to monitor CPU core temperature
#!/bin/sh -e
##
## Title: CPUTemp.sh
## Description: Script for use with M/Monit to monitor CPU core temperature
## Author: B. van wetten
## Created date: 21-01-2020
## Updated date: 23-01-2020
## Version: 0.3
## GitHub Gist: https://gist.github.com/QNimbus/529ab50d7293a42f7bb2924c27b4b951
##
@QNimbus
QNimbus / SystemTemp.sh
Last active January 23, 2020 10:52
Script for use with M/Monit to monitor system temperature
#!/bin/sh -e
##
## Title: SystemTemp.sh
## Description: Script for use with M/Monit to monitor system temperature
## Author: B. van wetten
## Created date: 22-01-2020
## Updated date: 23-01-2020
## Version: 0.2
## GitHub Gist: https://gist.github.com/QNimbus/b2ead8cde75bcf9b177b1a9d951d9411
##
#!/usr/bin/env bash
##
## Title: deploy_unifi.sh
## Description: Script to deploy Let's Encrypt certificates for use with unifi controller container
## Author: B. van wetten
## Created date: 23-01-2020
## Updated date: 06-02-2024
## Version: 0.8
## GitHub Gist: https://gist.github.com/QNimbus/1d27f8f44912545f047d3254cb51de70
##
#!/usr/bin/env bash
##
## Title: deploy_traefik.sh
## Description: Script to deploy uploaded certificates for use with traefik container
## Author: B. van wetten
## Created date: 26-01-2020
## Updated date: 07-02-2020
## Version: 0.3.1
## GitHub Gist: https://gist.github.com/QNimbus/010ccc77919e07292e2a21edcf78b94a
##
#!/usr/bin/env sh
##
## Title: deploy_vmware.sh
## Description: Script to deploy uploaded certificates for use with VMWare ESXi
## Author: B. van wetten
## Created date: 27-01-2020
## Updated date: 10-02-2020
## Version: 0.3
## GitHub Gist: https://gist.github.com/QNimbus/9883a3ff8834843b3b024baf3bcccc29
##
@QNimbus
QNimbus / nodered.yaml
Created January 30, 2020 19:28
Sample docker-compose file for NodeRED on Docker for Windows
version: '3.7'
services:
nodered:
container_name: nodered
image: nodered/node-red
healthcheck:
test: curl -f --connect-timeout 2 http://localhost:1880 || exit 1
interval: 30s
timeout: 4s
retries: 3
#!/usr/bin/env bash
##
## Title: deploy_freenas.sh
## Description: Script to deploy uploaded certificates for use with VMWare ESXi
## Author: B. van wetten
## Created date: 28-01-2020
## Updated date: 12-02-2020
## Version: 0.3
## GitHub Gist: https://gist.github.com/QNimbus/08dd3a44cddfc7b8ffc22aad1f012645
##
#!/usr/bin/env bash
##
## Title: deploy_dsmr.sh
## Description: Script to deploy uploaded certificates for use with DSMR
## Author: B. van wetten
## Created date: 10-02-2020
## Updated date: 10-02-2020
## Version: 0.1
## GitHub Gist: https://gist.github.com/QNimbus/3091a0ee7610e02fcbf2c975e51ecde5
##