Skip to content

Instantly share code, notes, and snippets.

Working from home

Andreas Sander andi1984

Working from home
Block or report user

Report or block andi1984

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
andi1984 / 1-easy.js
Created Jan 6, 2020 — forked from nybblr/1-easy.js
3 examples of using Async Generators and Async Iteration in JavaScript!
View 1-easy.js
// Create a Promise that resolves after ms time
var timer = function(ms) {
return new Promise(resolve => {
setTimeout(resolve, ms);
// Repeatedly generate a number starting
// from 0 after a random amount of time
var source = async function*() {
andi1984 / netlify.toml
Created Jun 13, 2019
Example netlify config
View netlify.toml
# Settings in the [build] context are global and are applied to all contexts
# unless otherwise overridden by more specific contexts.
# Directory to change to before starting a build.
# This is where we will look for package.json/.nvmrc/etc.
base = "project/"
# Directory (relative to root of your repo) that contains the deploy-ready
# HTML files and assets generated by the build. If a base directory has
# been specified, include it in the publish directory path.
andi1984 / save-file-local.js
Created Nov 15, 2018 — forked from liabru/save-file-local.js
Save a text file locally with a filename, by triggering a download in JavaScript
View save-file-local.js
* Save a text file locally with a filename by triggering a download
var text = "hello world",
blob = new Blob([text], { type: 'text/plain' }),
anchor = document.createElement('a'); = "hello.txt";
anchor.href = (window.webkitURL || window.URL).createObjectURL(blob);
andi1984 /
Created Sep 29, 2018
Mastodon - Fix folder permissions
sudo docker-compose run --rm -u root web chown -R mastodon:mastodon public/assets public/packs public/system
andi1984 / name-color.js
Created Aug 15, 2018
JS - Name that color
View name-color.js
| Created by Chirag Mehta - |
| ntc js (Name that Color JavaScript) |
All the functions, code, lists etc. have been written specifically
for the Name that Color JavaScript by Chirag Mehta unless otherwise
andi1984 /
Last active May 16, 2019
Docker - Remove
# Delete all containers
docker rm $(docker ps -a -q)
# Delete all images
docker rmi $(docker images -q)
# Prune unused volumes
docker volume prune
# Log in with bash to container
docker exec -i -t <container-id> /bin/bash
View test.sass
// *************************************
// First Level
// -> Description
// *************************************
// -------------------------------------
// Second Level
// ——————————————————
andi1984 /
Created Oct 4, 2017 — forked from entropiae/
git: how to solve "SSLRead() return error -9806" in OSX using brew
$ brew remove git
$ brew remove curl
$ brew install openssl
$ brew install --with-openssl curl
$ brew install --with-brewed-curl --with-brewed-openssl git

Keybase proof

I hereby claim:

  • I am andi1984 on github.
  • I am andi1984 ( on keybase.
  • I have a public key ASBMEGbsFo1kCSgM4itOgN9WYG74b6GiGsJDaoauG8rjggo

To claim this, I am signing this object:

View Export bookmarks from Evernote to pinboard
Export Bookmarks from Evernote to Pinboard
v1.4 12th September 2012
This script takes selected notes in Evernote and sends an email for each to Pinboard, extracting each note's title, source URL and associated tags. The user should enter their Pinboard email address in the pinboardEmail property below, and can choose a default tag to add to each bookmark on import.
This code is hacky, horrible and non-error checking (but it worked for me). Don't use on thousands of notes at a time, it'll go all crashy. Try selecting one test note first to see if it works for you.
Change log:
You can’t perform that action at this time.