Skip to content

Instantly share code, notes, and snippets.

Hello world!

Wouter wouterds

Hello world!
View GitHub Profile
View twitter-unfollow.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
tzmartin /
Last active May 14, 2021
m3u8 stream to mp4 using ffmpeg

1. Copy m3u8 link

Alt text

2. Run command

echo "Enter m3u8 link:";read link;echo "Enter output filename:";read filename;ffmpeg -i "$link" -bsf:a aac_adtstoasc -vcodec copy -c copy -crf 50 $filename.mp4
ismailmechbal /
Last active Feb 2, 2021
Modify Sketch to never ending trial

###Sketch trial non stop

Open hosts files:

$ open /private/etc/hosts

Edit the file adding:
PieterScheffers / start_docker_registry.bash
Last active Feb 11, 2021
Start docker registry with letsencrypt certificates (Linux Ubuntu)
View start_docker_registry.bash
#!/usr/bin/env bash
# install docker
# install docker-compose
# install letsencrypt
spalladino /
Created Dec 22, 2015
Backup and restore a mysql database from a running Docker mysql container
# Backup
docker exec CONTAINER /usr/bin/mysqldump -u root --password=root DATABASE > backup.sql
# Restore
cat backup.sql | docker exec -i CONTAINER /usr/bin/mysql -u root --password=root DATABASE
wouterds /
Last active Aug 29, 2015
# Configure timezone
dpkg-reconfigure tzdata
# Configure locales
dpkg-reconfigure locales
# Get rid of the annoying locale warnings when installing stuff
echo "" >> ~/.bashrc
echo "export LANGUAGE=\"en_US.UTF-8\"" >> ~/.bashrc
echo "export LC_ALL=\"en_US.UTF-8\"" >> ~/.bashrc
you-think-you-are-special / Singleton.js
Created Feb 18, 2015
ES6 Singleton example. Use: import Singleton from 'Singleton'; let instance = Singleton.instance;
View Singleton.js
'use strict';
* Created by Alexander Litvinov
* Email:
* May be freely distributed under the MIT license
let singleton = Symbol();
let singletonEnforcer = Symbol();
lewayotte / cloudflare-dns.php
Last active Jan 26, 2021
Cloud Flare Automatic DNS Record Updater (PHP Script)
View cloudflare-dns.php
* Script used to update DNS records in Cloud Flare when server IP address changes.
* My use case is to run this script on startup, when I spin up a new Digital Ocean VPS but
* this could easily be used to update for dynamic DNS with a cronjob.
* Digital Ocean referral code:
* Requires PHP cURL
jonathantneal /
Last active May 22, 2020
Local SSL websites on macOS Sierra

Local SSL websites on macOS Sierra

These instructions will guide you through the process of setting up local, trusted websites on your own computer.

These instructions are intended to be used on macOS Sierra, but they have been known to work in El Capitan, Yosemite, Mavericks, and Mountain Lion.

NOTE: You may substitute the edit command for nano, vim, or whatever the editor of your choice is. Personally, I forward the edit command to Sublime Text:

alias edit="/Applications/Sublime\"
MattWilcox /
Last active Nov 9, 2020
Fetch, build, and install the latest nginx with the latest OpenSSL for RaspberryPi
#!/usr/bin/env bash
# names of latest versions of each package
export VERSION_PCRE=pcre-8.38
export VERSION_OPENSSL=openssl-1.0.2d
export VERSION_NGINX=nginx-1.9.7
# URLs to the source directories