Skip to content

Instantly share code, notes, and snippets.

@kindaro
kindaro / gist:11bbe3c94071f42295b9
Created November 20, 2014 12:56
lxc-autostart -L lines counted.
# lxc-autostart -L | sort | uniq -c root@master-18:~ [git:master] h3481 12:45:55
24 ngw-db 0
23 ngw-front 0
22 ngw-gate 0
21 ngw-log 0
20 ngw-node 0
19 ngw-ns1 0
18 ngw-proxy 0
17 ngw-salt 0
16 ngw-system-redis 0
@kindaro
kindaro / gist:1a249d4ea7f3df7165d7
Created November 20, 2014 13:03
lxc-autostart -L in terminal
# lxc-autostart -L root@master-18:~ [git:master] h3495 1 13:03:13
ngw-db 0
ngw-front 0
ngw-gate 0
ngw-log 0
ngw-node 0
ngw-ns1 0
ngw-proxy 0
ngw-salt 0
ngw-system-redis 0
@kindaro
kindaro / gist:0f650e0ce2427e0a40ab
Created November 20, 2014 13:04
lxc-autostart -L in cat
# lxc-autostart -L | cat root@master-18:~ [git:master] h3496 13:03:14
ngw-db 0
ngw-db 0
ngw-front 0
ngw-db 0
ngw-front 0
ngw-gate 0
ngw-db 0
ngw-front 0
ngw-gate 0
@kindaro
kindaro / map.sh
Created August 16, 2015 23:17
An utility to map files from one directory to another while processing each file's contents with an arbitrary command.
#!/bin/sh
# Option parser. Pure.
# --------------
while test "${1:0:2}" == '--'
do
opt="${1:2}"
if not test "$opt"; then break; fi
case "$opt" in
@kindaro
kindaro / tearing-apart-the-brain.tar.gz
Last active October 8, 2015 00:18
Dvarf Fortress -- broken save.
This Dwarf Fortress save is broken in a strange way:
No materials (wood, fish...) are transferred into the fortress to be processed.
Dwarves say there are no logs available and fail to make chairs inside the fortress. But happily do
make them if a carpenter's workshop is positioned outside.
@kindaro
kindaro / gist:1af3065273b10655069d
Created October 11, 2015 04:22
luminance-samples-0.2.0.2.log
Configuring luminance-samples-0.2.0.2...
Building luminance-samples-0.2.0.2...
Preprocessing executable 'HelloWorld' for luminance-samples-0.2.0.2...
Linking dist/dist-sandbox-e44f163a/build/HelloWorld/HelloWorld ...
Preprocessing executable 'HelloWorldUniform' for luminance-samples-0.2.0.2...
Linking dist/dist-sandbox-e44f163a/build/HelloWorldUniform/HelloWorldUniform ...
Preprocessing executable 'DepthTest' for luminance-samples-0.2.0.2...
Linking dist/dist-sandbox-e44f163a/build/DepthTest/DepthTest ...
Preprocessing executable 'Blending' for luminance-samples-0.2.0.2...
Linking dist/dist-sandbox-e44f163a/build/Blending/Blending ...
@kindaro
kindaro / gist:6b164977acda2211914d
Created March 20, 2016 09:57
Object.deep_extract (obj, props)
Object.deep_extract =
(obj, props) ->
if props.length == 0
obj
else
prop = props[0]
if obj[prop]? then Object.deep_extract obj[prop], props[1..] else undefined
test_object =
1:
3 4 1 2 3 4 1 2 3 4 1 2 3 4
|
| 3~~ 3~~~2~~ 3~~ 3 2 3 3 3 0
| 0~~~ 0~~~0~~~0~~~ 0 4 4 0 3 0
| 4~~~~ 4~~~4~~~4~~~~ 4 3 0 4 4 4
| 5~~~~~ 5~~ 4~~~2~~~~~ 5 4 2 5 4 2
|
* Building project in /home/kindaro/code/purescript/purescript-datetime
Error 1 of 3:
at src/Data/Date/Component.purs line 23, column 8 - line 23, column 44
Cannot derive a type class instance for
Data.Generic.Generic Year
since instances of this type class are not derivable.
@kindaro
kindaro / exec.err
Created January 29, 2018 22:09
stack repl -- <stdin>: hGetChar: hardware fault (Input/output error)
Version 1.7.0, Git revision 2631803b9c502fa5225eac3536acda9d1d314aa7 (5619 commits) x86_64 hpack-0.20.0
2018-01-30 05:06:20.660731: [debug] Checking for project config at: /home/kindaro/code/algebra/stack.yaml
@(Stack/Config.hs:851:9)
2018-01-30 05:06:20.661079: [debug] Checking for project config at: /home/kindaro/code/stack.yaml
@(Stack/Config.hs:851:9)
2018-01-30 05:06:20.661147: [debug] Checking for project config at: /home/kindaro/stack.yaml
@(Stack/Config.hs:851:9)
2018-01-30 05:06:20.661206: [debug] Checking for project config at: /home/stack.yaml
@(Stack/Config.hs:851:9)
2018-01-30 05:06:20.661256: [debug] Checking for project config at: /stack.yaml