Skip to content

Instantly share code, notes, and snippets.

@mon-key
mon-key / mystuff2-sqlite.lisp
Created September 20, 2012 22:59
Some CL for examining the SQLite dbs dumpbed by MyStuff2
;;; :FILE-CREATED <Timestamp: #{2012-06-05T14:40:40-04:00Z}#{12232} - by MON>
;;; :FILE mystuff2-model/mystuff2-sqlite.lisp
;;; ==============================
#|
As of 2012-09-20 unverified with version Mystuff2 v2.0
Known to work with MyStuff2 version 1.4x with the following CL implementation:
@mon-key
mon-key / mon-cln-irc-log-buffer.el
Created June 3, 2012 19:52
mon-cln-irc-log-buffer
;; quick and dirty elisp for cleaning irc log files pulled from
;; http://tunes.org/~nef/logs/lisp/
(defun mon-cln-irc-log-buffer ()
(save-excursion
(dolist (i '("^.*--- log: .*$"
"^.*--- nick: .*$"
"^.*--- part: .*$"
"^.*--- join: .*$"
"^.*--- quit: .*$"))
(goto-char (point-min))
@mon-key
mon-key / lt-tweaks.lisp
Created April 9, 2012 01:10
local-time-tweaks
(in-package #:local-time)
(deftype nanosecond-range ()
'(mod 1000000000))
(deftype second-minute-range ()
'(mod 60))
(deftype hour-range ()
'(mod 24))