Skip to content

Instantly share code, notes, and snippets.

(require 'dash)
(defun insert-git-cd-number ()
(-when-let (project-number
(car (s-match "CD-[0-9]+"
(shell-command-to-string
"git symbolic-ref --short HEAD"))))
(when (and (bolp) (eolp)) (insert project-number " "))))
(add-hook 'git-commit-mode-hook 'insert-git-cd-number)
(ns tennis.core
(:require [clojure.string :as s]))
(def score-names
["love"
"fifteen"
"thirty"
"forty"])
(defn diff [xs]
(setq package-filter-function
(lambda (package version archive)
(or (not (string-equal archive "melpa"))
(memq package my-melpa-packages))))
@shosti
shosti / keybase.md
Created May 17, 2015 18:44
Keybase Proof

Keybase proof

I hereby claim:

  • I am shosti on github.
  • I am shosti (https://keybase.io/shosti) on keybase.
  • I have a public key whose fingerprint is 8958 4243 8B9F 8AD8 4155 862C F0D9 6538 27AD 9C47

To claim this, I am signing this object:

Aug 01 10:39:42 cersei polkitd[1120]: Registered Authentication Agent for unix-process:1924:35364 (system bus name :1.13 [/usr/bin/pkttyagent --notify-fd 5 --fallback], object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.utf8)
Aug 01 10:39:42 cersei systemd[1]: Starting TLP suspend/resume...
Aug 01 10:39:42 cersei polkitd[1120]: Unregistered Authentication Agent for unix-process:1924:35364 (system bus name :1.13, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.utf8) (disconnected from bus)
Aug 01 10:39:42 cersei systemd[1]: Started TLP suspend/resume.
Aug 01 10:39:42 cersei systemd[1]: Reached target Sleep.
Aug 01 10:39:42 cersei systemd[1]: Starting Suspend...
Aug 01 10:39:42 cersei systemd-sleep[2007]: Suspending system...
Aug 01 10:39:46 cersei kernel: PM: Syncing filesystems ... done.
Aug 01 10:39:46 cersei kernel: PM: Preparing system for mem sleep
Aug 01 10:39:46 cersei kernel: Freezing user space processes ... (elapsed 0.001 seconds) done.
2015-09-18T18:58:04.078843+00:00 app[test.1]: Connecting to host ec2-54-235-152-160.compute-1.amazonaws.com:14869 (full host: redis://h:pe98ser63m7ek72q1vvp6dsn2jr@ec2-54-235-152-160.compute-1.amazonaws.com:14869)
2015-09-18T18:58:04.072565+00:00 app[test.1]: buildpack=stunnel at=stunnel-disabled
2015-09-18T18:58:04.087454+00:00 app[test.1]: STATUS: -NOAUTH Authentication required.
test: bin/start-stunnel go-test
2015-09-18T19:00:44.310863+00:00 app[test.1]: buildpack=stunnel at=config-gen-start
2015-09-18T19:00:44.422251+00:00 app[test.1]: Setting HEROKU_REDIS_PINK_URL_STUNNEL config var
2015-09-18T19:00:44.431768+00:00 app[test.1]: buildpack=stunnel at=config-gen-override REDIS_URL
2015-09-18T19:00:44.431825+00:00 app[test.1]: buildpack=stunnel at=config-gen-override HEROKU_REDIS_PINK_URL
2015-09-18T19:00:44.436777+00:00 app[test.1]: buildpack=stunnel at=stunnel-launched pid=23 signal=SIGINT
2015-09-18T19:00:44.442697+00:00 app[test.1]: Connect error: dial tcp 127.0.0.1:6371: getsockopt: connection refused
2015-09-18T19:00:44.310562+00:00 app[test.1]: buildpack=stunnel at=stunnel-enabled
2015-09-18T19:00:44.412566+00:00 app[test.1]: Setting REDIS_URL_STUNNEL config var
2015-09-18T19:00:44.427304+00:00 app[test.1]: buildpack=stunnel at=config-gen-end
2015-09-18T19:00:44.437002+00:00 app[test.1]: buildpack=stunnel at=stunnel-start
2015-09-18T22:16:07.408595+00:00 heroku[test.1]: Starting process with command `bin/start-stunnel go-test`
2015-09-18T22:16:08.007127+00:00 heroku[test.1]: State changed from starting to up
2015-09-18T22:16:08.809883+00:00 app[test.1]: buildpack=stunnel at=stunnel-enabled
2015-09-18T22:16:08.810010+00:00 app[test.1]: buildpack=stunnel at=config-gen-start
2015-09-18T22:16:09.958501+00:00 app[test.1]: buildpack=stunnel at=config-gen-end
2015-09-18T22:16:09.967461+00:00 app[test.1]: buildpack=stunnel at=stunnel-launched pid=19 signal=SIGINT
2015-09-18T22:16:09.968064+00:00 app[test.1]: buildpack=stunnel at=app-launched pid=20
2015-09-18T22:16:09.972711+00:00 app[test.1]: Connecting to host 127.0.0.1:6371 (full host: redis://h:p3nf66qcvest85f1o7076ejocn@127.0.0.1:6371)
2015-09-18T22:16:09.974160+00:00 app[test.1]: buildpack=stunnel at=app-end
2015-09-18T22:16:09.974166+00:00 app[test.1]: buildpack=stunnel at=exit process=app
2015-09-18T23:51:25.232293+00:00 heroku[api]: Scale to test=1 by mail@emanuel.industries
2015-09-18T23:51:27.271284+00:00 heroku[test.1]: Starting process with command `bin/start-stunnel go-test`
2015-09-18T23:51:27.977688+00:00 heroku[test.1]: State changed from starting to up
2015-09-18T23:51:29.270223+00:00 app[test.1]: buildpack=stunnel at=stunnel-disabled
2015-09-18T23:51:29.282871+00:00 app[test.1]: worker: AUTH
2015-09-18T23:51:29.274686+00:00 app[test.1]: worker: Dial
2015-09-18T23:51:29.286807+00:00 app[test.1]: worker: PING
2015-09-18T23:51:30.294844+00:00 app[test.1]: worker: Dial
2015-09-18T23:51:30.306406+00:00 app[test.1]: worker: PING
2015-09-18T23:51:30.302864+00:00 app[test.1]: worker: AUTH