Skip to content

Instantly share code, notes, and snippets.


Anthony Wang anthony-wang

View GitHub Profile
shawwn / syncscroll
Created Apr 1, 2021
Synchronized scrolling (and zooming) across browser tabs
View syncscroll
sbyx / wake-up-light-alarm-with-sunrise-effect.yaml
Last active Sep 29, 2022
Home Assistant Blueprint: Wake-up light alarm with sunrise effect
View wake-up-light-alarm-with-sunrise-effect.yaml
name: Wake-up light alarm with sunrise effect
description: 'A wake-up light alarm with a brightness and color temperature sunrise
effect. Note: Requires date_time_iso sensor in configuration, not manually executable!'
domain: automation
name: Wake-up light entity
description: The light to control. Turning it off during the sunrise will keep
it off. Color temperature range is auto-detected.
zottelbeyer /
Last active Mar 6, 2022
ipv6 on docker-pihole
# enable ipv6 in dockerd conf:
# cat /etc/docker/daemon.json
"ipv6": true,
"fixed-cidr-v6": "2003::/64" # your ipv6. not sure if this is even necessary
# reload daemon conf:
sudo systemctl reload docker.service
tsrivishnu /
Last active Feb 27, 2022
Increase inotify watchers in Docker images during build

Increasing fs.inotify.max_user_watches for Docker images

TL;DR You can't set those for an image during build time becasue Docker takes the sysctl configuration from the Host. So, set the config on your host machine.

As in this link, to increase the maximum watchers, we need set fs.inotify.max_user_watches to a higher number in /etc/sysctl.conf.

zoilomora /
Last active Sep 26, 2022
How to disable cloud-init in Ubuntu

How to disable cloud-init in Ubuntu

Prevent start

  • Create an empty file to prevent the service from starting

      sudo touch /etc/cloud/cloud-init.disabled


zoilomora /
Last active Sep 20, 2022
How to disable systemd-resolved in Ubuntu

How to disable systemd-resolved in Ubuntu


  • Disable and stop the systemd-resolved service:

      sudo systemctl disable systemd-resolved.service
      sudo systemctl stop systemd-resolved
  • Then put the following line in the [main] section of your /etc/NetworkManager/NetworkManager.conf:

Overbryd / unbound.conf
Created Mar 29, 2019
A pretty good unbound.conf, DNSSEC, caching and local forwarding
View unbound.conf
control-enable: yes
do-ip6: no
do-ip4: yes
do-udp: yes
tls-cert-bundle: /etc/ssl/certs/ca-certificates.crt
num-threads: 4
# Enable logs
verbosity: 1
vinayak-mehta / disease_outbreaks_camelot.ipynb
Last active Aug 15, 2022
A jupyter notebook showing how Camelot can be used to extract tables from PDFs scraped from the IDSP website.
View disease_outbreaks_camelot.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
anthony-wang / spotify-hosts.txt
Last active Sep 5, 2022
The hosts file entries to block Spotify ad servers
View spotify-hosts.txt
# Use this to block Spotify ad servers
# sources:
############## Begin manual list
# # might block the entire Spotify app from working too
deergod1 / pfSense
Last active Sep 23, 2022
pfSense Easy Configuration Guide for HP t620 Plus
View pfSense

pfSense Simple Home Configuration - 2.4.3 / 2.4.4

Starting from Scratch

This is my personal guide for installing pfSense. Hope you find it useful. I made these notes to capture the details of my "install from scratch" to ensure I didn't miss important details. Also, I'm trying build my network with discrete "disposable" components that make the system mutable and less rigid. It does not cover installing any packages like Squid or Suricata as that's way beyond the scope of a basic, functional install.

I migrated from an environment that was at various times running Tomato Toastman 1.28 or Asuswrt-Merlin on Netgear and ASUS routers across four "access points" (one always acting as the firewall/gateway, the rest as APs). It was OK pre-gigabit, but had roaming problems, and I was using large Wifi routers with most of the features disabled. Also, I found that I could easily swamp the network and tank VOIP and Wifi Calling without even trying. The only fix was to throttle everything by using Bandwidth Limit