Skip to content

Instantly share code, notes, and snippets.

View sharethewisdom's full-sized avatar

Bart De Roy sharethewisdom

  • Belgium
View GitHub Profile
@sharethewisdom
sharethewisdom / README.md
Created March 14, 2023 18:16
GTK4 snippet test

snippet test

I struggle to get snippets working... I'm probably missing a lot of pieces in the code.

I tried to put latex.rng in $XDG_DATA_HOME/gtksourceview-5/snippets/.

requirements

$ sudo apt install gcc pkg-config libgtksourceview-5-dev
@sharethewisdom
sharethewisdom / be.user.css
Last active March 5, 2022 13:08
Simple and crude dark theme for often used domains of the Belgian government
/* ==UserStyle==
@name Belgian government sites dark theme
@namespace https://userstyles.world/user/sharethewisdom
@version 1.0.0
@description Simple and crude dark theme for often used domains of the Belgian government
@author Sharethewisdom
@license MIT
@preprocessor stylus
==/UserStyle== */
@sharethewisdom
sharethewisdom / intro.md
Created May 22, 2021 07:18
intro p5.js

Intro p5.js

Wat is p5.js?

De Javascript programmabibliotheek (library) p5.js stelt ons een hele reeks functies ter beschikking om te tekenen in wat we hier metaforisch een "schets" noemen. Maar we zijn niet beperkt tot het tekenen op een canvas. We kunnen de hele pagina beschouwen als een schets, inclusief HTML5 objecten voor tekst, invoer, video, webcam en geluid.

Aan de slag

@^[^/]+//(?:[^/]+\.)?coolblue\.(be|nl)/ , Coolblue
@^[^/]+//(?:[^/]+\.)?bol\.com/ , Bol
@^[^/]+//(?:[^/]+\.)?wehkamp\.(com|nl)/ , Wehkamp
@^[^/]+//(?:[^/]+\.)?zalando\.com/ , Zalando
@^[^/]+//(?:[^/]+\.)?vandenborre\.be/ , Vandenborre
@^[^/]+//(?:[^/]+\.)?alibaba\.com/ , Alibaba
@^[^/]+//(?:[^/]+\.)?aliexpress\.com/ , Alibaba
@^[^/]+//(?:[^/]+\.)?taobao\.com/ , Alibaba
@^[^/]+//(?:[^/]+\.)?tmall\.com/ , Alibaba
@^[^/]+//(?:[^/]+\.)?alipay\.com/ , Alibaba
[Defaults]
columns=2
style=wldesk.css
wallpaper=wldesk.jpg
[Firefox]
# icon=/usr/share/icons/hicolor/48x48/apps/firefox.png
icon=/usr/share/icons/HighContrast/48x48/apps/firefox.png
exec=/usr/bin/firejail --disable-mnt --dns=9.9.9.9 --hostname=host --name=firefox --netfilter /usr/lib/firefox/firefox
--- tllocalmgr.orig 2019-11-17 16:14:30.928584915 +0100
+++ tllocalmgr 2019-11-17 16:21:09.985868826 +0100
@@ -18,7 +18,7 @@
my $INSTALLEDPKGS = "$TEXMFVAR/arch/installedpkgs";
our $VERSION = "0.7";
-our $YEAR = "2018";
+our $YEAR = "2019";
my $CTANBASEURL="http://mirror.ctan.org/systems/texlive/tlnet";
@sharethewisdom
sharethewisdom / zshrc
Created October 18, 2019 14:32
Site-wide zsh configuration with autocompletion (predict completer and short options tag order).
# vim: set sw=2 sts=2 :
# /etc/zsh/zshrc
[[ -o nointeractive ]] && return
unlimit
limit stack 8192
limit core 0
limit -s
export ZBEEP='\e[?5h\e[?5l'
@sharethewisdom
sharethewisdom / 80-mkinitcpio-patch.hook
Last active September 20, 2019 12:23
mkinitcpio patch
[Trigger]
Type = File
Operation = Install
Operation = Upgrade
Target = usr/bin/mkinitcpio
[Action]
Description = Patching /usr/bin/mkinitcpio
When = PostTransaction
Exec = /usr/bin/patch /usr/bin/mkinitcpio /root/mkinitcpio.patch
\documentclass[border=5mm]{standalone}
\usepackage{filecontents}
\begin{filecontents*}{A0.txt}
x y ey- ey+ label
21 -26 {} {} A0
33 -25 {} {} A1
40 -23 2 2 E2
45 -19.5 2.5 2 A2
49 -14 1 1 C\sharp3
@sharethewisdom
sharethewisdom / yt.user.js
Last active January 20, 2018 17:31
userscript to make youtube user friendly
// ==UserScript==
// @name Youtube watch redirect
// @namespace http://tampermonkey.net/
// @version 0.2
// @description redirect watch pages, channel and user video listings and add some magic
// @author Bart De Roy
// @match https://www.youtube.com
// @match https://www.youtube.com/*
// @homepageURL https://gist.github.com/sharethewisdom/
// @downloadURL https://gist.github.com/sharethewisdom/56585798273ef6a0e98e393c5c95e9c5/raw/3f7266847a61f8ee4a3e0250b5112359eb54c762/yt.user.js