Skip to content

Instantly share code, notes, and snippets.

View laurio's full-sized avatar

Lauri Oherd laurio

  • Wunderdog Oy
  • Espoo, Finland
View GitHub Profile
@laurio
laurio / reorder.clj
Created April 5, 2021 08:42
babashka script for reordering requires and imports in clojure files
#!/usr/bin/env bb
(ns reorder
(:require [clojure.java.io :as io]
[clojure.string :as string]
[rewrite-clj.node :as n]
[rewrite-clj.zip :as z]
[rewrite-clj.zip.subedit :as zsub])
(:import (java.io File StringWriter)))
(defn- top? [loc]

PostgreSQL Checkup. Project: 'psatest1'. Database: 'programs'

Epoch number: '1'

NOTICE: while most reports describe the “current database”, some of them may contain cluster-wide information describing all databases in the cluster.

Last modified at: 2020-08-17 12:12:14 +0300

 

Table of contents

Keybase proof

I hereby claim:

  • I am laurio on github.
  • I am laurioherd (https://keybase.io/laurioherd) on keybase.
  • I have a public key ASCTsEpw5YdFXYeZ-f9oQhMqiADUxMKwB6n576-Wg6kSmgo

To claim this, I am signing this object:

(require 'datomic.api)
(clojure.edn/read-string
{:readers *data-readers*}
"[#db/id[:db.part/db] #db/id[:db.part/db]]")
(require 'package)
(add-to-list 'package-archives
'("marmalade" . "http://marmalade-repo.org/packages/"))
(package-initialize)
(defvar my-packages '(starter-kit
starter-kit-lisp
starter-kit-bindings
starter-kit-eshell
@laurio
laurio / lein-profiles.clj
Last active August 29, 2015 13:57
Added [cider/cider-nrepl "0.6.0"] to :plugins.
;; for more details see http://dev.solita.fi/2014/03/18/pimp-my-repl.html
{:user
{:plugins [[lein-try "0.3.0"]
[lein-bin "0.3.4"]
[lein-cljsbuild "1.0.3"]
[lein-exec "0.3.1"]
[lein-immutant "1.1.0"]
[lein-autoexpect "1.0"]
[lein-datomic "0.2.0"]
[lein-vanity "0.1.0"]
#!/bin/sh
# https://vitux.com/generation-of-a-random-password-on-linux-shell/
apg -s -a 1 -m 21 -n 4