Skip to content

Instantly share code, notes, and snippets.

View edrex's full-sized avatar

Eric Drechsel edrex

  • Portland, OR
View GitHub Profile
@edrex
edrex / publish.sh
Last active May 5, 2016 21:27
Upload static site to S3 with clean URLs
#!/bin/sh
# Be sure to set the index and 404 docs to "index" and "404" respectively in your bucket settings
# replace with your compile command
harp compile ./ ./out
# removes the html extension
for f in `ls out/*.html out/**/*.html`; do mv $f "${f%%.*}"; done
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@edrex
edrex / mpl_animation_examples.ipynb
Last active August 29, 2015 13:56
matplotlib animations as HTML5 video
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

Failing test case, demonstating error when using N3.js module with webpack.

Usage:

@edrex
edrex / camlistore-server-vps-s3.md
Last active June 8, 2016 10:12
Camlistore on a VPS with S3 blob storage

Let's set up Camlistore on a Linux server, with blobs stored in s3. This seems to be the currently best-supported option for "cloud" deployment.

This is meant as a supplement to the official server config doc. Read through both docs before you start.

http://camlistore.org/docs/server-config

This blog post is also recommended reading.

I've posted my config files for reference, but they will be created the first time you run camlistored (for the server) and camput init (for the client) so don't copy them.

Keybase proof

I hereby claim:

  • I am edrex on github.
  • I am edrex (https://keybase.io/edrex) on keybase.
  • I have a public key whose fingerprint is AC47 2CCC 9867 4644 A9CF EB28 1C5C 1ED0 9F66 6824

To claim this, I am signing this object:

@edrex
edrex / init.d-camlistored
Last active August 29, 2015 14:02
camlistored sysvinit script
#!/bin/sh
### BEGIN INIT INFO
# Provides: camlistored
# Required-Start: $local_fs $network $named $time $syslog
# Required-Stop: $local_fs $network $named $time $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Description: Camlistore server
### END INIT INFO
@edrex
edrex / README.md
Created November 6, 2014 19:51
sfpd incidents_march_2012

README is empty

LOGGING = {
'version': 1,
'disable_existing_loggers': False,
'handlers': {
'console': {
'level': 'WARNING',
'class': 'logging.StreamHandler',
},
},
'loggers': {