Skip to content

Instantly share code, notes, and snippets.

View taojang's full-sized avatar
🐢
slowly

Tao Yang taojang

🐢
slowly
View GitHub Profile
security.pki.certificateFiles = [
(pkgs.fetchurl {
url = "https://www.cacert.org/certs/class3.crt";
sha256 = "0kzq3gvili5mpjkz7p3mf46d14175id4b4ll188mph0wvajxmfpm";
})
];
@etorreborre
etorreborre / reader-lenses.scala
Last active March 10, 2016 16:49
Use of lenses to access only specific parts of a configuration when using the Reader monad
package application
import cats.data.Reader
import cats.data.Kleisli._
import monocle.macros.Lenses
object Application {
/**
* A general configuration for the system
@codification
codification / proc.clj
Created March 6, 2012 08:10
Clojure asynchronous process
(ns proc
(:import [java.lang ProcessBuilder])
(:use [clojure.java.io :only [reader writer]]))
(defn spawn [& args]
(let [process (-> (ProcessBuilder. args)
(.start))]
{:out (-> process
(.getInputStream)
(reader))

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name: