Skip to content

Instantly share code, notes, and snippets.

Avatar

Hagmonk hagmonk

View GitHub Profile
@hagmonk
hagmonk / install.md
Created Jul 6, 2019
K3OS on Raspberry Pi
View install.md

Imaging

Assuming macOS and an SD card presented as /dev/rdisk3:

For ARMv7 (Pi 2):

diskutil unmountDisk disk3
xzcat ubuntu-18.04.2-preinstalled-server-armhf+raspi2.img.xz | sudo dd of=/dev/rdisk3 bs=32m
View DefaultKeyBinding.dict
{
/* Keybindings for emacs emulation. Compiled by Jacob Rus.
*
* This is a pretty good set, especially considering that many emacs bindings
* such as C-o, C-a, C-e, C-k, C-y, C-v, C-f, C-b, C-p, C-n, C-t, and
* perhaps a few more, are already built into the system.
*
* BEWARE:
* This file uses the Option key as a meta key. This has the side-effect
* of overriding Mac OS keybindings for the option key, which generally
View gist:5344c5c1461544aa1d3ffbe1fc604f70
https://github.com/10nin/hello-world
https://github.com/AdamFrey/clojure-git-deps-demo
https://github.com/Bronsa/tools.decompiler-aot
https://github.com/Cirru/calcit-editor
https://github.com/Cirru/cirru.org
https://github.com/Cirru/ir.core
https://github.com/Cirru/sepal.clj
https://github.com/Codamic/core.async
https://github.com/ComputeSoftware/shoe
https://github.com/ComputeSoftware/spec-keys
View gist:c1d03f8f359708be22a60a0cbecbf400
(mapv #(%1 %2) (cycle [(partial identity) #(* %1 -1)]) [1 2 3 4 5])
@hagmonk
hagmonk / conj2017.ics
Last active Oct 12, 2017
Clojure/conj 2017 calendar
View conj2017.ics
BEGIN:VCALENDAR
METHOD:PUBLISH
VERSION:2.0
X-WR-CALNAME:Clojure/conj 2017
PRODID:-//Apple Inc.//Mac OS X 10.13//EN
X-APPLE-CALENDAR-COLOR:#CC73E1
X-WR-TIMEZONE:America/Los_Angeles
CALSCALE:GREGORIAN
BEGIN:VTIMEZONE
TZID:America/New_York
@hagmonk
hagmonk / result-set-test.clj
Last active Jun 17, 2017
the not-very-lazy ResultSet
View result-set-test.clj
(ns result-set-test.core
(:require [clojure.java.jdbc :as jdbc]
[clojure.string :as str])
(:gen-class)
(:import (java.sql ResultSet)
(clojure.lang IReduceInit)))
(def sqlvec ["select left(md5(i::text), 10),
md5(random()::text),
md5(random()::text),
@hagmonk
hagmonk / community.md
Last active Nov 11, 2018
Clojure Community Collaboration Tools
View community.md

This document lists ...

  • High level requirements for a community collaboration tool, ranked by importance to the Clojure community.
    • mandatory
    • expected
    • nice to have
  • Extant collaboration tools, with pointers towards existing Clojure communities within them, if any.
  • A detailed analysis of how each tool satisfies the requirements of the Clojure community.
@hagmonk
hagmonk / calendar.ics
Created Nov 29, 2016
Clojure/conj 2016 Calendar
View calendar.ics
BEGIN:VCALENDAR
METHOD:PUBLISH
VERSION:2.0
X-WR-CALNAME:Clojure/conj 2016
PRODID:-//Apple Inc.//Mac OS X 10.12.2//EN
X-APPLE-CALENDAR-COLOR:#1BADF8
X-WR-TIMEZONE:America/Los_Angeles
CALSCALE:GREGORIAN
BEGIN:VTIMEZONE
TZID:America/Chicago
View gist:241a8083c5d764708010
(*
Procedural answer to the question posted here:
"http://nbviewer.ipython.org/url/norvig.com/ipython/Cheryl.ipynb"
Doing this in other fun mathematica ways is left as an exercise for the reader :)
*)
In[665]:= str = " May 15 May 16 May 19
June 17 June 18
July 14 July 16
View I finally cracked and wrote my own naive Things database syncer.
#!/usr/bin/ruby
require 'rubygems'
require 'net/ssh'
require 'net/scp'
thingsPath = "HOME/Library/Application\ Support/Cultured\ Code/Things/Database.xml"
getTimestamp = "ls -lT '#{thingsPath}' | cut -f9-13 -d' '"
getThings = "ps waux | grep [T]hings"
quitThings = "osascript -e 'tell application \"Things\"\nquit\nend tell'"
You can’t perform that action at this time.