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
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.
[build]
# 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
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');
anchor.download = "hello.txt";
anchor.href = (window.webkitURL || window.URL).createObjectURL(blob);
@andi1984
andi1984 / shell.sh
Created Sep 29, 2018
Mastodon - Fix folder permissions
View shell.sh
sudo docker-compose run --rm -u root web chown -R mastodon:mastodon public/assets public/packs public/system
@andi1984
andi1984 / name-color.js
Created Aug 15, 2018
JS - Name that color
View name-color.js
/*
+-----------------------------------------------------------------+
| Created by Chirag Mehta - http://chir.ag/projects/ntc |
|-----------------------------------------------------------------|
| 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
andi1984 / docker.sh
Last active May 16, 2019
Docker - Remove
View docker.sh
#!/bin/bash
# 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
andi1984 / fix_git_sslread_9806.sh
Created Oct 4, 2017 — forked from entropiae/fix_git_sslread_9806.sh
git: how to solve "SSLRead() return error -9806" in OSX using brew
View fix_git_sslread_9806.sh
$ brew remove git
$ brew remove curl
$ brew install openssl
$ brew install --with-openssl curl
$ brew install --with-brewed-curl --with-brewed-openssl git
View keybase.md

Keybase proof

I hereby claim:

  • I am andi1984 on github.
  • I am andi1984 (https://keybase.io/andi1984) on keybase.
  • I have a public key ASBMEGbsFo1kCSgM4itOgN9WYG74b6GiGsJDaoauG8rjggo

To claim this, I am signing this object:

View Export bookmarks from Evernote to pinboard
(*
http://zoesmith.io
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:
@andi1984
andi1984 / cloudSettings
Last active Aug 19, 2019
Visual Studio Code Sync Settings GIST
View cloudSettings
{"lastUpload":"2019-08-19T15:29:23.455Z","extensionVersion":"v3.4.1"}
You can’t perform that action at this time.