As configured in my dotfiles.
start new:
tmux
start new with session name:
#Deploy and rollback on Heroku in staging and production | |
task :deploy_staging => ['deploy:set_staging_app', 'deploy:push', 'deploy:restart', 'deploy:tag'] | |
task :deploy_production => ['deploy:set_production_app', 'deploy:push', 'deploy:restart', 'deploy:tag'] | |
namespace :deploy do | |
PRODUCTION_APP = 'YOUR_PRODUCTION_APP_NAME_ON_HEROKU' | |
STAGING_APP = 'YOUR_STAGING_APP_NAME_ON_HEROKU' | |
task :staging_migrations => [:set_staging_app, :push, :off, :migrate, :restart, :on, :tag] | |
task :staging_rollback => [:set_staging_app, :off, :push_previous, :restart, :on] |
;; ~/.lein/user.clj | |
(if (>= (.compareTo (clojure-version) "1.3.0") 0) | |
(do (use 'clojure.repl) | |
(use 'clojure.java.javadoc) | |
(use 'clojure.reflect))) |
As configured in my dotfiles.
start new:
tmux
start new with session name:
If you have two days to learn the very basics of modelling, Domain-Driven Design, CQRS and Event Sourcing, here's what you should do:
In the evenings read the [Domain-Driven Design Quickly Minibook]{http://www.infoq.com/minibooks/domain-driven-design-quickly}. During the day watch following great videos (in this order):
This is a guide on how to email securely.
There are many guides on how to install and use PGP to encrypt email. This is not one of them. This is a guide on secure communication using email with PGP encryption. If you are not familiar with PGP, please read another guide first. If you are comfortable using PGP to encrypt and decrypt emails, this guide will raise your security to the next level.
Like [last year][1] I am planning to visit many of the BBQ joints in Saint Louis, most of which are not in walking distance of the conference venues. Unlike in 2015, the [Q in the Lou BBQ][6] festival will not conveniently overlap dates with the Strange Loop conference- Q in the Lou will occur the weekend following Strange Loop.
This is the itinerary. We will leave Union Station in groups using UberXLs or cabs around 10:30 am. Meet outside the main doors at Union Station Double Tree on Market Street.
(ns maps.core) | |
;; In Clojure you can fetch items from a map three different ways. Which should | |
;; you use when? | |
(= "bar" ({:foo "bar"} :foo)) ; map as function | |
(= "bar" (:foo {:foo "bar"})) ; key as function | |
(= "bar" (get {:foo "bar"} :foo)) ; `get` as function | |
;; <INCIDENTALLY> |
cons = fn (a, b) -> fn x -> x.(a, b) end end | |
car = fn (p) -> p.(fn (q, _) -> q end) end | |
cdr = fn (p) -> p.(fn (_, q) -> q end) end | |
each = fn (list, func) -> | |
iter = fn (list, func, next) -> | |
(fn (a, nil) -> func.(a) | |
(a, b) -> func.(a); next.(b, func, next) | |
end).(car.(list), cdr.(list)) | |
end | |
iter.(list, func, iter) |
GH_TOKEN="1234" | |
ORG_NAME="some-org" | |
curl -H "Authorization: token ${GH_TOKEN}" https://api.github.com/orgs/${ORG_NAME}/repos | jq -r '.[].url' > /tmp/repos | |
rm /tmp/repos 2>/dev/null | |
while read REPO;do | |
curl -H "Authorization: token ${GH_TOKEN}" ${REPO}/contributors 2>/dev/null | jq -r '.[].login' >> /tmp/users | |
done < /tmp/repos |
#!/usr/bin/env bash | |
# shellcheck disable=SC2059 | |
set -euo pipefail | |
RED='\033[0;31m' | |
GREEN='\033[0;32m' | |
NO_COLOR='\033[0m' | |
CLEAR_LINE='\r\033[K' |