Skip to content

Instantly share code, notes, and snippets.

View sanderdatema's full-sized avatar

Sander Datema sanderdatema

View GitHub Profile
import json
import codecs
import html2markdown
import io
thoughts_path = "./export/thoughts.json"
links_path = "./export/links.json"
attachments_path = "./export/attachments.json"
# Relations

Keybase proof

I hereby claim:

  • I am sanderdatema on github.
  • I am sanderdatema (https://keybase.io/sanderdatema) on keybase.
  • I have a public key whose fingerprint is 3036 5A3D CD75 F684 5240 CD3F CD43 A7FB 8AD9 578B

To claim this, I am signing this object:

Verifying that +sanderdatema is my blockchain ID. https://onename.com/sanderdatema
#!/bin/bash
#
# Version 0.2, for Ubuntu 13.04 (Raring)
#
# Based on Chrubuntu 34v87 script
BASE_IMAGE_FILE="http://cdimage.ubuntu.com/lubuntu/releases/13.04/release/lubuntu-13.04-preinstalled-desktop-armhf+ac100.tar.gz"
# fw_type will always be developer for Mario.
# Alex and ZGB need the developer BIOS installed though.
@sanderdatema
sanderdatema / import_facebook.rake
Last active December 16, 2015 12:59
This rake task will import all posts of a Facebook group into Discourse
############################################################
#### IMPORT FACEBOOK GROUP INTO DISCOURSE
####
#### created by Sander Datema (info@sanderdatema.nl)
####
#### version 1.0 (22/04/2013)
############################################################
############################################################
#### Description
# Apache2 Virtual Host file to proxy Discourse to Thin cluster
<VirtualHost *:80>
ServerName site1.domain.ext
DocumentRoot /var/www/discourse/public/
LogLevel debug
ErrorLog /var/www/discourse/log/error.log
CustomLog /var/www/discourse/log/access.log combined
# Hide some server information, since we can..