Skip to content

Instantly share code, notes, and snippets.

@derchrisuk
derchrisuk / Lines_SBahn.geojson
Created October 15, 2017 21:05 — forked from leftshift/Lines_SBahn.geojson
Mvg Stations json and lines geojson
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@derchrisuk
derchrisuk / HOWTO.md
Created August 22, 2017 03:26 — forked from cvan/HOWTO.md
How to serve a custom HTTPS domain on GitHub Pages with CloudFlare: *FREE*, secure and performant by default

Instructions

CloudFlare is an awesome reverse cache proxy and CDN that provides DNS, free HTTPS (TLS) support, best-in-class performance settings (gzip, SDCH, HTTP/2, sane Cache-Control and E-Tag headers, etc.), minification, etc.

  1. Make sure you have registered a domain name.
  2. Sign up for CloudFlare and create an account for your domain.
  3. In your domain registrar's admin panel, point the nameservers to CloudFlare's (refer to this awesome list of links for instructions for various registrars).
  4. From the CloudFlare settings for that domain, enable HTTPS/SSL and set up a Page Rule to force HTTPS redirects. (If you want to get fancy, you can also enable automatic minification for text-based assets [HTML/CSS/JS/SVG/etc.], which is a pretty cool feature if you don't want already have a build step for minification.)
  5. If you
@derchrisuk
derchrisuk / build_libusb_lion_64bit.sh
Created June 25, 2017 15:16 — forked from cdwilson/build_libusb_lion_64bit.sh
Rebuild libusb for OSX Lion 64-bit
#!/bin/sh
# If you're getting errors like:
#
# dyld: Library not loaded: /usr/local/lib/libusb-1.0.0.dylib
# Referenced from: /Users/cwilson/stow/bin/JLinkExe
# Reason: no suitable image found. Did find:
# /opt/local/lib/libusb-1.0.0.dylib: mach-o, but wrong architecture
# Trace/BPT trap: 5