Skip to content

Instantly share code, notes, and snippets.

View notDavid's full-sized avatar

David notDavid

  • Netherlands
View GitHub Profile
Blackshome / sensor-light.yaml
Last active February 26, 2024 09:23
Home Assistant Sensor Light that can be used in Blueprints
View sensor-light.yaml
name: Sensor Light
description: >
# 💡 Sensor Light
**Version: 6.3**
Your lighting experience, your way - take control and customize it to perfection! 💡✨
tmo1 /
Last active February 24, 2024 16:38
Nextcloud behind Caddy as a reverse proxy, using Docker


This is a guide to deploying Nextcloud behind a Caddy reverse proxy, both running in Docker containers (an official Nextcloud one and a caddy-docker-proxy one), with the goal of implementing as much as possible via docker-compose files. This is much more difficult than it should be, for a variety of reasons:

  • As with Docker versions of software in general, documentation of the software does not always apply to the Docker versions, and the Docker documentation does not always include the Docker equivalent ways of doing things.

  • Docker images do not always expose the desired configuration knobs of the underlying software.

  • Nextcloud requires special configuration to run correctly behind a reverse proxy (and again, some of the instructions for this configuration requires modification for

kepano / obsidian-web-clipper.js
Last active March 1, 2024 14:55
Obsidian Web Clipper Bookmarklet to save articles and pages from the web (for Safari, Chrome, Firefox, and mobile browsers)
View obsidian-web-clipper.js
javascript: Promise.all([import(''), import(''), ]).then(async ([{
default: Turndown
}, {
default: Readability
}]) => {
/* Optional vault name */
const vault = "";
/* Optional folder name such as "Clippings/" */
View libtorrent and rtorrent on
# Installs the XCode command line tools if you don't have them
xcode-select --install
# Installs brew if you don't have it
/usr/bin/ruby -e "$(curl -fsSL"
# Makes your account the owner of /usr/local, which is preferred on single user Macs
sudo chown -R `whoami` /usr/local
# Installs all the dependencies for building libtorrent and rtorrent
brew install automake libtool boost curl lzlib libsigc++ openssl pkg-config xmlrpc-c
# Uninstall libtorrent-rasterbar if you already have it
robinsloan / unfave.rb
Last active June 5, 2022 21:32
Unfave script, because why not??
View unfave.rb
#!/usr/bin/env ruby
require "rubygems"
require "twitter"
require "json"
require "faraday"
# things you must configure
TWITTER_USER = "your_username"
# get these from
alirobe / reclaimWindows10.ps1
Last active February 25, 2024 16:21
This Windows 10 Setup Script turns off a bunch of unnecessary Windows 10 telemetery, bloatware, & privacy things. Not guaranteed to catch everything. Review and tweak before running. Reboot after running. Scripts for reversing are included and commented. Fork of (different defaults). N.…
View reclaimWindows10.ps1
### UPDATE: For Win 11, I recommend using this tool in place of this script:
### iwr -useb | iex
View free security

Simple Security Guidelines

Using an iDevice? (Best option)

  • Use an iPod or an iPad without a SIM card
  • Use an iPhone
  • Do not jailbreak
  • Always upgrade to new iOS versions
  • Use Brave browser

Need Secure chat?

olalonde /
Last active December 4, 2023 12:07
Script to mount /Users with nfs instead of vboxsf in boot2docker
# This script will mount /Users in the boot2docker VM using NFS (instead of the
# default vboxsf). It's probably not a good idea to run it while there are
# Docker containers running in boot2docker.
# Usage: sudo ./
deanishe / toggle-alfred-theme.bash
Last active August 24, 2020 03:08
Automatically toggle Alfred dark/light themes at sunset/sunrise. You need to edit the location settings before use.
View toggle-alfred-theme.bash
#!/bin/bash -e
# Wrapper for the script at
# (where this script also comes from)
# The purpose of this wrapper is to enable you to update the Python script
# without having to edit the script to change the settings each time. You keep
# them in here instead, and this script should hopefully prove dumb enough
# to require little updating...
# Sublime Text 3 Install (last update: Monday 13 March 2017)
# No need to download this script, just run it on your terminal:
# curl -L | sh
# Detect the architecture