View variables.txt
# -*- mode: terraform -*-
owner = "foo-bar"
dcos_version = "1.10.1"
dcos_cluster_name = "staging"
aws_region = "eu-west-1" # Ireland
aws_profile = "foo-foo"
key_name = "your-key"
num_of_masters = "x" # some number
num_of_private_agents = "y" # some number
num_of_public_agents = "z" # some number
View btc.cljs
#!/usr/bin/env lumo
(ns btc.core
(:require [clojure.string :as str]
[goog.string :as gstring]
[goog.string.format]))
(.on js/process "uncaughtException" #(js/console.error %))
(def http (js/require "http"))
View semaphoreci.el
(defun semaphore-open-branch ()
"Open branch in Semaphore CI"
(interactive)
(let* ((branch (magit-get-current-branch))
(group-repo (replace-regexp-in-string "mobytronics" "mobytrader"
(thread-first (magit-get "remote" "origin" "url")
(split-string ":")
last
first
(split-string "\\.")
View sample-job.json
{
"id": "sample-job",
"description": "A sample job that sleeps",
"run": {
"cmd": "sleep 1000",
"cpus": 0.01,
"mem": 32,
"disk": 0,
"placement": {
"constraints": [
View gist-url.el
;; Currently if you want to get the URL of a gist, you can only do it
;; in the gist-list view.
;; This is my tweak to be able to copy the URL of a gist.
(defun gist-url2 ()
"Get the gist URL when viewing the gist. Adds the gist URL to
the kill ring."
(interactive)
(if (null gist-id)
(error "Current buffer is not a part of any gist")
View bp.clj
(a/go-loop [async-tcp-connections-to-chans ; "foreign" -> ch
buffered ; ch -> data
pressurized] ; ch -> foreign
(let [cnx (select (keys async-tcp-connections-to-chans))
ch (async-tcp-connections-to-chans cnx)
data (read-data cnx)
async-tcp-connections-to-chans (dissoc async-tcp-connections-to-chans cnx)
buffered (assoc buffered ch data)
pressurized (assoc pressurized ch cnx)]
View gist:8db621ed433b6d342dad5c8e7b4e4f01
# df -h
Filesystem Size Used Avail Use% Mounted on
devtmpfs 7.4G 0 7.4G 0% /dev
tmpfs 7.4G 0 7.4G 0% /dev/shm
tmpfs 7.4G 804K 7.4G 1% /run
tmpfs 7.4G 0 7.4G 0% /sys/fs/cgroup
/dev/xvda9 5.5G 2.3G 3.0G 44% /
/dev/mapper/usr 985M 625M 309M 67% /usr
/dev/xvda1 128M 39M 90M 31% /boot
tmpfs 7.4G 236K 7.4G 1% /tmp
View question.org

How to parse JSON POST request ?

Vaniall macchiato app, created as per documentation

lein new macchiato first

The request looks like this:

curl -H "Content-Type: application/json" \
View emacs-meetup-2014-05-20.org

emacs meetup

<2014-05-20 Tue>

ideas for meetups

  • language-specific not a great idea

emacsspeak: emacs for visually impaired people

any org-mode users?

  • @otfrom’s public github org-mode .emacs

intro, @bodil & @dotemacs

View clojurex-2014.org

Korny Sietsma, Pragmatic Performance Testing

quotes

  • “we don’t care about perf”
  • “clojure should be fast”
  • “we’re using mongo!”
  • “clojure might not be fast enough, we should use type hints”

JMeter