Skip to content

Instantly share code, notes, and snippets.

View melroy89's full-sized avatar
🏳️‍🌈
Decentralizing the WWW

Melroy van den Berg melroy89

🏳️‍🌈
Decentralizing the WWW
View GitHub Profile
@melroy89
melroy89 / unbond.conf
Created October 26, 2024 13:01 — forked from MatthewVance/unbond.conf
Example of how to configure Unbound as a local forwarder using DNS-over-TLS to forward queries.
server:
###########################################################################
# BASIC SETTINGS
###########################################################################
# Time to live maximum for RRsets and messages in the cache. If the maximum
# kicks in, responses to clients still get decrementing TTLs based on the
# original (larger) values. When the internal TTL expires, the cache item
# has expired. Can be set lower to force the resolver to query for data
# often, and not trust (very large) TTL values.
cache-max-ttl: 86400
-----BEGIN PGP PUBLIC KEY BLOCK-----
Comment: E0C7 C029 005B 0CE6 A743 8BD5 71D1 1FF2 3454 B9D7
Comment: Melroy Antoine van den Berg <[email protected]>
xsDNBGBs24cBDADT/fNSAWzvYhjz0lUvZc6ZjNVO69F2GzzN/q86dlVqciofP+F/
zWyw1Pd5QZfhWDxHlH91kb1emrdrnrWitD9DdAAlcrRtopDlqF8MSyn7jrXw1Bd1
D2QJFtnGM3LnWXmlgdiuykgwQRcteVpPy9xSKeMGs17+WFCLQAOvfErQ9OFRGdSy
8rN68L5rvx6YpDg003sNE3tukfhQIAtURZRai43WepJ3my39G+7Acp8VI3KgohlL
ZDWKO09vrXaoArvW1psKU+abAPtE+N/r52KmrFCqLpyIBBubGlYqjVrEMXLG7mhg
CBI42jzPBbPj3Xyj+3++RDzByvC5ErfXlnIBeEWIIOpBltDu9KwgW6Pt+8SqGvpo
@melroy89
melroy89 / mastodon-docker-setup.md
Last active November 11, 2024 15:58 — forked from akuechl/mastodon-docker-setup.md
Mastodon Docker Setup - most complete and easiest guide online
@melroy89
melroy89 / pull_push_all.sh
Created November 9, 2020 23:55
Pull/push all your Git repos Bash script (Origin: https://gitlab.melroy.org/-/snippets/40)
#!/usr/bin/env bash
# Script that goes through all my git repos and update them. And report any untracked files.
RED='\033[0;31m'
GREEN='\033[0;32m'
ORANGE='\033[0;33m'
NC='\033[0m' # No Color
# Do not add automatically to staged area, but only pull & push all repos
CURRENT="$(dirname "$(realpath "$0")")"
for dir in */;do
@melroy89
melroy89 / .about+license.md
Created September 16, 2019 23:53 — forked from anilnairxyz/.about+license.md
Candlestick Chart

A zoomable candlestick chart.

Copyright © 2015, Anil Nair - MIT License

@melroy89
melroy89 / gpu_speed_fan_control.sh
Last active November 1, 2021 21:16
AMD GPU Fan speed control based on real temperature under GNU/Linux
#!/bin/bash
# Control AMD GPU videocard fan speed based on real GPU temperature under GNU/Linux
# Just using the open-source AMDGPU driver, part of the kernel
# By: Melroy van den Berg <[email protected]>
############## Documentation #################
# Note 1: Temps are in Degrees Celcius
# Note 2: Fan speeds are in PWM (0-255 range) - which is NOT the same as RPM!
#
# You should read it like such: Until 48 degrees (temp1) is reached,
@melroy89
melroy89 / countries.sql
Last active April 26, 2024 09:55 — forked from paulochf/countries.sql
All countries of the world in SQL database. See https://gitlab.melroy.org/snippets/6 for comma seperated file (CSV).
CREATE TABLE IF NOT EXISTS `country` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`iso` char(2) NOT NULL,
`name` varchar(80) NOT NULL,
`nicename` varchar(80) NOT NULL,
`iso3` char(3) DEFAULT NULL,
`numcode` smallint(6) DEFAULT NULL,
`phonecode` int(5) NOT NULL,
PRIMARY KEY (`id`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
@melroy89
melroy89 / patch.diff
Last active October 29, 2016 20:10
[PATCH] Fixing cursor reset issue #539
Index: binaries/data/mods/mod/art/textures/cursors/test.png
===================================================================
Cannot display: file marked as a binary type.
svn:mime-type = application/octet-stream
Index: binaries/data/mods/mod/art/textures/cursors/test.png
===================================================================
--- binaries/data/mods/mod/art/textures/cursors/test.png (revision 18887)
+++ binaries/data/mods/mod/art/textures/cursors/test.png (nonexistent)
Property changes on: binaries/data/mods/mod/art/textures/cursors/test.png
@melroy89
melroy89 / cloud.melroy.org
Created May 27, 2016 11:48
ownCloud config for melroy domain

server { listen 80; server_name cloud.melroy.org;

return 301 https://$server_name$request_uri; }

server { listen 443 ssl; server_name cloud.melroy.org;

[2015-09-10 22:16:00,414: WARNING/Worker-2] Welkom: 2015-09-10 22:16:00.413937
[2015-09-10 22:16:01,445: WARNING/Worker-2] Welkom: 2015-09-10 22:16:01.440656
[2015-09-10 22:16:02,470: WARNING/Worker-2] Welkom: 2015-09-10 22:16:02.469527
[2015-09-10 22:16:03,504: WARNING/Worker-2] Welkom: 2015-09-10 22:16:03.499993
[2015-09-10 22:16:04,532: WARNING/Worker-2] Welkom: 2015-09-10 22:16:04.531897
[2015-09-10 22:16:05,565: WARNING/Worker-2] Welkom: 2015-09-10 22:16:05.564384
[2015-09-10 22:16:06,595: WARNING/Worker-2] Welkom: 2015-09-10 22:16:06.594335
[2015-09-10 22:16:07,625: WARNING/Worker-2] Welkom: 2015-09-10 22:16:07.624215
[2015-09-10 22:16:08,655: WARNING/Worker-2] Welkom: 2015-09-10 22:16:08.654153
[2015-09-10 22:16:09,684: WARNING/Worker-2] Welkom: 2015-09-10 22:16:09.683010