Skip to content

Instantly share code, notes, and snippets.

View edrex's full-sized avatar

Eric Drechsel edrex

  • Portland, OR
View GitHub Profile
localhost
log access.log
websocket /echo cat
localhost
log access.log
proxy /echo 127.0.0.1:8080 {
websocket
}
@edrex
edrex / .zprofile
Created February 13, 2016 22:17
ZSH e(dit) and p(roject) commands
export EDITOR='emacsclient -t'
# Handy e command to edit in already open emacs
alias e='emacsclient -nc'
printEntryPoint() {
entryPoints=("README.md" "package.json");
for name in "${entryPoints[@]}"; do
[[ -a "$name" ]] && echo "$name" && return
done
localhost
log access.log
websocket /echo cat
alexandria.pdxhub.org {
root PDXHubWiki
fastcgi /ikiwiki.cgi /run/fcgiwrap-eric.sock
browse /share
redir /irc http://alexandria.pdxhub.org:64080{uri} 301
}
@edrex
edrex / index.html
Last active March 14, 2016 03:52
Loading Prosemirror
<!doctype html>
<meta charset="utf-8">
<script src="https://jspm.io/system@0.19.21.js"></script>
<script>
System.config({
transpiler: 'babel'
});
SystemJS.import('./index.js');
</script>
localhost:2020 {
log proxy.log
proxy /echo localhost:2021 {
websocket
}
}
localhost:2021 {
log websocket.log
localhost
{
log proxy.log
proxy /echo localhost:8080 {
websocket
}
}
@edrex
edrex / funcs.el
Created April 18, 2016 17:13
my/journal spacemacs layer (trimmed down)
(setq journal-directory "~/Documents/Journal/")
(defun my/journal-path (time name)
(concat (file-name-as-directory journal-directory) (format-time-string "%Y-%m-%d" time) "-" name ".org")
)
(defun my/journal (title)
"Open the journal file for today"
(interactive)
(find-file (my/journal-path nil title)))
package main
import "os"
import "log"
import "github.com/cznic/kv"
import "bytes"
import "strconv"
func usage() {
log.Fatalf(`Usage: exifgps-fixup FILE`)