Skip to content

Instantly share code, notes, and snippets.


René Stalder renestalder

View GitHub Profile

Example of a similar email triaging system like, but with a manual Sieve-Filter. For example, supports Sieve-Filters. See for other email clients in the info below.

The individual sections can be changed and extended by your liking.

require ["fileinto", "extlists"];  

if anyof(header :contains "subject" "online purchase", header :contains "subject" "invoice", header :contains "subject" "order", header :contains "subject" "order")
  # Everything related to orders, invoices and so on, goes to "Paper trail"
renestalder /
Last active Apr 27, 2021
Storybook 6 Twig Setup
  1. Install twigjs-loader via npm.

    $ npm i -D twigjs-loader
  2. Extend Storybook's Webpack config to use the Twig loader.


    module.exports = {
     stories: [
View gulp-patternlab.js
* The gulp wrapper around patternlab-node core, providing tasks to
* interact with the core library and move supporting frontend assets.
import gulp from 'gulp';
import path from 'path';
import browserSyncLib from 'browser-sync';
import minimist from 'minimist';
renestalder / Brewfile
Last active Nov 27, 2018
Brew / Cask packages for Interaction Designers. Use to install.
View Brewfile
cask_args appdir: '~/Applications'
tap 'caskroom/cask'
tap 'homebrew/bundle'
tap 'homebrew/core'
tap 'homebrew/dupes'
tap 'homebrew/php'
tap 'homebrew/versions'
brew 'curl', args: ['with-libssh2']
brew 'gcc'
brew 'git'
renestalder / keybindings.json
Created Aug 22, 2016
Visual Studio Code Keybindings
View keybindings.json
"key": "cmd+s",
"command": "workbench.action.files.saveAll"
"key": "cmd+shift+i",
"command": "editor.action.format",
"when": "editorTextFocus"
renestalder /
Last active Sep 30, 2015
Translate WordPress theme via child theme
  1. Paste the code snipped in the functions.php of the child theme
  2. Add languagesfolder to your child theme and add translated language files
renestalder / wp_gallery_style.css
Created Aug 25, 2015
WordPress Gallery Default Style
View wp_gallery_style.css
View gist:6786d144655db47d4dd2
@echo off
setlocal EnableDelayedExpansion
set fileDir=%~f1
if exist "%fileDir%\config.rb" goto :build
for /r "tokens=* delims=;" %%F in ("%fileDir%\..") do if not exist "%fileDir%\config.rb" (
if "%fileDir%" neq "%%~fF" (
set "fileDir=%%~fF"
renestalder /
Last active Aug 29, 2015
A (cross-browser) CSS utility class for preserving pixels when scaling up images
renestalder /
Last active Apr 8, 2021
Unfollow all on Facebook

Facebook: Unfollow people and pages

  1. Open news feed preferences on your Facebook menu (browser)
  2. Click people or pages
  3. Scroll down (or click see more) until your full list is loaded
  4. Run the script in your browser console

Facebook will block this feature for you while you use it, depending on how much entities you try to unfollow. It automatically unblocks in a couple of hours and you will be able to continue.

See comments section for more up-to-date versions of the script. The original script is from 2017 and will not work as is.