Skip to content

Instantly share code, notes, and snippets.

@daantjie
daantjie / packer-build.log
Created July 12, 2017 15:49
The tail of a log file, to test on packuilon-monitor.
openstack: --> Processing Dependency: upstart for package: 1:readahead-1.5.6-2.el6.x86_64
openstack: --> Processing Dependency: /sbin/new-kernel-pkg for package: kernel-2.6.32-696.1.1.el6.x86_64
openstack: --> Processing Dependency: /sbin/new-kernel-pkg for package: kernel-2.6.32-696.1.1.el6.x86_64
openstack: --> Processing Dependency: /sbin/new-kernel-pkg for package: kernel-2.6.32-696.3.2.el6.x86_64
openstack: --> Processing Dependency: /sbin/new-kernel-pkg for package: kernel-2.6.32-696.3.2.el6.x86_64
openstack: --> Restarting Dependency Resolution with new changes.
openstack: --> Running transaction check
openstack: ---> Package upstart.x86_64 0:0.6.5-16.el6 will be obsoleted
openstack: --> Processing Dependency: upstart for package: 1:readahead-1.5.6-2.el6.x86_64
openstack: --> Processing Dependency: /sbin/new-kernel-pkg for package: kernel-2.6.32-696.1.1.el6.x86_64
@daantjie
daantjie / rename-tests.patch
Created July 8, 2017 17:02
Renaming the test files (and CL package names) for the ‘pascals-triangle’ exercise [exercism/common-lisp]
diff --git a/exercises/pascals-triangle/example.lisp b/exercises/pascals-triangle/example.lisp
index 7e65b44..65f37f2 100644
--- a/exercises/pascals-triangle/example.lisp
+++ b/exercises/pascals-triangle/example.lisp
@@ -1,8 +1,8 @@
-(defpackage #:pascal
+(defpackage #:pascals-triangle
(:use #:common-lisp)
(:export #:rows))
@daantjie
daantjie / keybase.md
Created December 11, 2016 19:23
Keybase verification.

Keybase proof

I hereby claim:

  • I am daantjie on github.
  • I am daantjie (https://keybase.io/daantjie) on keybase.
  • I have a public key whose fingerprint is 4856 8AB6 E6B7 6E6F 75F5 887E DC30 0B07 B45C 7EEB

To claim this, I am signing this object:

UPDATING = true
USER = 'digitalis'
USERID = 5477562
cache = {}
cache_name = function (user, site)
return ('cache/' .. user .. '_' .. site)
end
curl_user = function (user, site)
@daantjie
daantjie / public
Last active December 11, 2016 19:22
GPG Public Key
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQENBFdymMcBCAC4mdRUZxXofQXkgAQ581oEiuGR/ZjerfUcaHRBqXtw/WZWka/M
OAQ0nLK4EMnNw254gFAYXawamzxgn+22wGVG7wOuBOYof45OUbvUlZXCSqGYkDnH
GjBtcAMW7G3O+WtWn2QKLBFbU2BA0NpdhEpGTtQNuqrxJwSHLgyN4fjk5JGItBzZ
8X64PCO8e7tw4mc1QEs1ckHeZu8Njt+FEFxArbLGVH85El9yERr0nxCIaw66l850
hUbBjRMbrvXj7sDtwWxSxyvbhoyFzXpCWvXpxk4SoFtwWjz4mFvw4kHpccuPVz4H
jEKHe9oQDihMtHn4jO2kJz11Ff42MQerzLVZABEBAAG0UURhbmllbCBPb3N0aHVp
emVuIChiYXJiYSBub24gZmFjaXQgcGhpbG9zb3BodW0pIDxkYW5pZWx0aGVleHBl
cmltZW50ZXJAZ21haWwuY29tPokBNwQTAQgAIQUCV3KYxwIbAwULCQgHAgYVCAkK
#/bin/bash
git init
touch f1
git add f1
git commit -m 'c1'
touch f2
git add f2
@daantjie
daantjie / finder.sh
Last active February 14, 2016 17:12
Search up through directories until ~ is reached.
#!/bin/bash
x=`pwd`
while [ "$x" != "/home/$(whoami)" ]; do
find "$x" -maxdepth 1 -name $1
x=`dirname "$x"`
done
\documentclass{article}
% Footnotes
\usepackage{footmisc}
\usepackage{fnpct}
\usepackage{scrextend}
\deffootnote{0em}{1.6em}{\thefootnotemark.\enskip}
% Endnotes
\usepackage{endnotes}
#NoEnv ; Boilerplate
SendMode Input
SetWorkingDir %A_ScriptDir%
waitTimeLoad = 1500 ;; for slower internet connections, this number needs to be larger (in milliseconds) 700
waitTimeKey = 500 ;; for slower computers, this number needs to be larger (in milliseconds) 200
^+b::
IfWinExist, ahk_class Chrome_WidgetWin_1 ;; modify ahk_class for use with other browsers
{