Skip to content

Instantly share code, notes, and snippets.

View cburgmer's full-sized avatar

Christoph Burgmer cburgmer

View GitHub Profile
@framegrabber
framegrabber / expense.sh
Last active November 9, 2020 08:15
submit a set of standard expenses for a number of offsets
#!/usr/bin/env bash
set -eu -o pipefail
#Expects the following environment variables to be set
#EXPENSIFY_PARTNER_USER_ID=
#EXPENSIFY_PARTNER_USER_SECRET=
#EXPENSIFY_EMPLOYEE_EMAIL=
#EXPENSIFY_SERVER="https://integrations.expensify.com"
@oliyh
oliyh / clj-sse.clj
Last active September 19, 2024 14:37
Clojure client for Server Sent Events (SSE)
(require '[clj-http.client :as http])
(require '[clojure.core.async :as a])
(require '[clojure.string :as string])
(require '[clojure.java.io :as io])
(import '[java.io InputStream])
(def event-mask (re-pattern (str "(?s).+?\r\n\r\n")))
(defn- parse-event [raw-event]
(->> (re-seq #"(.*): (.*)\n?" raw-event)
@zamaterian
zamaterian / bashrc
Created December 13, 2011 13:08
Clojure highlightning for cli less via source-hightlight
# add to .bashrc or .profile
export LESSOPEN="| /usr/share/source-highlight/src-hilite-lesspipe.sh %s"
export LESS=' -R '