Skip to content

Instantly share code, notes, and snippets.

Avatar

René Stalder renestalder

View GitHub Profile
View hey-sieve-filter.md

Example of a similar email triaging system like HEY.com, but with a manual Sieve-Filter. For example, protonmail.com 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
renestalder / storybook-6-twig.md
Last active Apr 27, 2021
Storybook 6 Twig Setup
View storybook-6-twig.md
  1. Install twigjs-loader via npm.

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

    main.js:

    module.exports = {
     stories: [
View gulp-patternlab.js
/******************************************************
* PATTERN LAB NODE
* EDITION-NODE-GULP
* 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
renestalder / Brewfile
Last active Nov 27, 2018
Brew / Cask packages for Interaction Designers. Use https://github.com/Homebrew/homebrew-bundle 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
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
renestalder / _wordpress-theme-child-translate.md
Last active Sep 30, 2015
Translate WordPress theme via child theme
View _wordpress-theme-child-translate.md
  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
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
:search
for /r "tokens=* delims=;" %%F in ("%fileDir%\..") do if not exist "%fileDir%\config.rb" (
if "%fileDir%" neq "%%~fF" (
set "fileDir=%%~fF"
@renestalder
renestalder / _README.md
Last active Aug 29, 2015
A (cross-browser) CSS utility class for preserving pixels when scaling up images
@renestalder
renestalder / README.md
Last active Apr 8, 2021
Unfollow all on Facebook
View README.md

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.