Skip to content

Instantly share code, notes, and snippets.

View renestalder's full-sized avatar

René Stalder renestalder

View GitHub Profile
@renestalder
renestalder / README.md
Last active May 3, 2024 14:08
Unfollow all on Facebook

Facebook: Unfollow people and pages

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

  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.

@renestalder
renestalder / storybook-6-twig.md
Last active August 4, 2023 11:25
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.

    main.js:

    module.exports = {
     stories: [
@renestalder
renestalder / Brewfile
Last active September 13, 2022 13:14
Brew / Cask packages for Interaction Designers. Use https://github.com/Homebrew/homebrew-bundle to install.
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 / twig-add-namespace-regex.md
Created May 13, 2022 09:28
Search and replace regex to add a namespace to all references in Twig

The regex is made for JavaScript regex engines.

It can, for example, be used in node, or pasted into search field of Visual Studio Code and used for a search/replace.

Search:

(\{%|\{\{)\s*(import|embed|include|source|extends|from)(\s*)(\(?['|"])(.*)(['|"]\)?)([\s\S]*?)(%\}|\}\})
@renestalder
renestalder / sieve.txt
Last active March 31, 2022 11:07
Personal Sieve Triaging
require ["fileinto", "extlists"];
if anyof(header :contains "subject" "online purchase", header :contains "subject" "rechnung", header :contains "subject" "order", header :contains "subject" "artikel verschickt", header :contains "subject" "auftragsbestätigung", header :contains "subject" "sendung", header :contains "subject" "Bankdokumente")
{
fileinto "Paper trail";
} elsif anyof(exists "X-Gitlab-Issue-Id", address :is "from" ["notifications@tasks.clickup.com", "notes-reply@email.zeplin.io"])
{
fileinto "Issues";
} elsif anyof(exists "X-Gitlab-Pipeline-Status", address :is "from" "status@notify.gitlab.com")
{
@renestalder
renestalder / wp_gallery_style.css
Created August 25, 2015 15:53
WordPress Gallery Default Style

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 / gulp-patternlab.js
Created June 7, 2017 16:42
Patternlab Gulp 4
/******************************************************
* 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 / keybindings.json
Created August 22, 2016 11:43
Visual Studio Code Keybindings
[
{
"key": "cmd+s",
"command": "workbench.action.files.saveAll"
},
{
"key": "cmd+shift+i",
"command": "editor.action.format",
"when": "editorTextFocus"
},
@renestalder
renestalder / _rem-fallback.scss
Last active January 4, 2016 19:09
ZURB Foundation px Fallback for rem
// Foundation settings example
$base-font-size: 62.5%;
$rem-base: 10px;
// Mixin using rem-calc from ZURB Foundation, but adding pixel fallback
@mixin rem-fallback($property, $values, $base-value: $rem-base){
#{$property}: $values;
#{$property}: rem-calc($values, $base-value: $rem-base);
}