Skip to content

Instantly share code, notes, and snippets.

4.4.23$ grep -H '.*' x.clj; clojure -e "$(< x.clj)"
x.clj:(import '[java.nio.file Files FileVisitOption Path])
x.clj:(time
x.clj: (-> (Files/walk (Path/of "." (into-array String []))
x.clj: (into-array FileVisitOption []))
x.clj: (.iterator)
x.clj: iterator-seq
x.clj: count))
WARNING: Implicit use of clojure.main with options is deprecated, use -M
java.nio.file.Path
@timvisher
timvisher / # emacs - 2022-04-26_16-31-38.txt
Created April 26, 2022 21:15
emacs on macOS 12.3 - Homebrew build logs
Homebrew build logs for emacs on macOS 12.3
Build date: 2022-04-26 16:31:38
--- bash_completion
+++ bash_completion
@@ -1205,6 +1205,39 @@
_known_hosts_real $options "$(_get_cword :)"
} # _known_hosts()
+# Helper function to locate ssh included files in configs
+# This function look for the "Include" keyword in ssh config files and include
+# them recursively adding each result to the config variable
+_included_ssh_config_files()
🐟 sw_vers; rvm --version; ruby -v; gem list; bundle install
ProductName: Mac OS X
ProductVersion: 10.12
BuildVersion: 16A323
rvm 1.26.11 (latest) by Wayne E. Seguin <wayneeseguin@gmail.com>, Michal Papis <mpapis@gmail.com> [https://rvm.io/]
ruby 2.1.9p490 (2016-03-30 revision 54437) [x86_64-darwin16.0]
artifactory (2.5.0)
bigdecimal (1.2.4)
builder (3.2.2)
bundle (0.0.1)
ProductName: Mac OS X
ProductVersion: 10.12
BuildVersion: 16A323
rvm 1.26.11 (latest) by Wayne E. Seguin <wayneeseguin@gmail.com>, Michal Papis <mpapis@gmail.com> [https://rvm.io/]
ruby 2.1.9p490 (2016-03-30 revision 54437) [x86_64-darwin16.0]
artifactory (2.5.0)
bigdecimal (1.2.4)
builder (3.2.2)
bundle (0.0.1)
bundler (1.12.5)
🐢 lein try org.clojure/core.async
nREPL server started on port 59425 on host 127.0.0.1 - nrepl://127.0.0.1:59425
REPL-y 0.3.7, nREPL 0.2.12
Clojure 1.8.0
Java HotSpot(TM) 64-Bit Server VM 1.8.0_31-b13
Docs: (doc function-name-here)
(find-doc "part-of-name-here")
Source: (source function-name-here)
Javadoc: (javadoc java-object-or-class-here)
Exit: Control+D or (exit) or (quit)
https://gist.github.com/timvisher/e647654de44e6959a4302998f21e3b67
base_dir="$2"
🐗 bash --version
GNU bash, version 3.2.57(1)-release (x86_64-apple-darwin15)
Copyright (C) 2007 Free Software Foundation, Inc.
🐊 echo $foo
🐚 source <(echo foo=bar)
🐂 echo $foo
#!/usr/bin/env bash
set -eu
set -x
path="${1:-}"
path="$(basename "$path")"