Skip to content

Instantly share code, notes, and snippets.

Avatar
🏳️‍🌈

Melroy van den Berg danger89

🏳️‍🌈
View GitHub Profile
@danger89
danger89 / pull_push_all.sh
Created Nov 9, 2020
Pull/push all your Git repos Bash script (Origin: https://gitlab.melroy.org/-/snippets/40)
View pull_push_all.sh
#!/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
View .about+license.md

A zoomable candlestick chart.

Copyright © 2015, Anil Nair - MIT License

@danger89
danger89 / gpu_speed_fan_control.sh
Last active Jan 27, 2020
AMD GPU Fan speed control based on real temperature under GNU/Linux
View gpu_speed_fan_control.sh
#!/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 <melroy@melroy.org>
############## 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,
@danger89
danger89 / countries.sql
Last active Oct 1, 2019 — 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).
View countries.sql
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;
@danger89
danger89 / patch.diff
Last active Oct 29, 2016
[PATCH] Fixing cursor reset issue #539
View patch.diff
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
@danger89
danger89 / cloud.melroy.org
Created May 27, 2016
ownCloud config for melroy domain
View cloud.melroy.org

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

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

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

View celery_measurement.log
[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
You can’t perform that action at this time.