Skip to content

Instantly share code, notes, and snippets.

View mkaito's full-sized avatar

Christian Höppner mkaito

View GitHub Profile
# .notmuch-config - Configuration file for the notmuch mail system
#
# For more information about notmuch, see http://notmuchmail.org
# Database configuration
#
# The only value supported here is 'path' which should be the top-level
# directory where your mail currently exists and to where mail will be
# delivered in the future. Files should be individual email messages.
# Notmuch will store its database within a sub-directory of the path
Exception: #<NoMethodError: undefined method `resolve_id' for nil:NilClass>
/nix/store/5j7abr7493yf3nqmdhi95am9pdf2ylyj-ruby2.5.5-discordrb-3.3.0/lib/ruby/gems/2.5.0/gems/discordrb-3.3.0/lib/discordrb/data.rb:749:in `role_id_array'
/nix/store/5j7abr7493yf3nqmdhi95am9pdf2ylyj-ruby2.5.5-discordrb-3.3.0/lib/ruby/gems/2.5.0/gems/discordrb-3.3.0/lib/discordrb/data.rb:613:in `add_role'
lib/shaibot/events/member_join.rb:24:in `block in <module:MemberJoinEvent>'
/nix/store/5j7abr7493yf3nqmdhi95am9pdf2ylyj-ruby2.5.5-discordrb-3.3.0/lib/ruby/gems/2.5.0/gems/discordrb-3.3.0/lib/discordrb/events/generic.rb:98:in `call'
/nix/store/5j7abr7493yf3nqmdhi95am9pdf2ylyj-ruby2.5.5-discordrb-3.3.0/lib/ruby/gems/2.5.0/gems/discordrb-3.3.0/lib/discordrb/bot.rb:1316:in `block in call_event'
#!/bin/zsh
# For documentation, read below or execute $0 help.
BLOG_PATH=${HOME}/dev/blog;
DRAFTS_PATH=${BLOG_PATH}/_drafts;
POSTS_PATH=${BLOG_PATH}/_posts;
FILE_EXT=".mkd"
# TODO: Add flags for byline, meta, published, date.
# TODO: Assume format jekyllator.sh [options] [title or filename]
! --- special colors ---
*background: #120d0a
*foreground: #b9b4b2
! --- standard colors ---
! black
*color0: #120d0a
@mkaito
mkaito / gdb.log
Created May 8, 2013 18:50
GDB session of termite
(gdb) run
Starting program: /home/chris/dev/build/termite/termite
warning: no loadable sections found in added symbol-file system-supplied DSO at 0x7ffff7ffa000
warning: Could not load shared library symbols for linux-vdso.so.1.
Do you need "set solib-search-path" or "set sysroot"?
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
[New Thread 0x7fffe7962700 (LWP 3338)]
[New Thread 0x7fffe7161700 (LWP 3339)]
[New Thread 0x7fffe68b0700 (LWP 3341)]
@mkaito
mkaito / termite.strace.log
Created May 8, 2013 14:19
Strace output for termite
execve("/usr/bin/termite", ["termite"], [/* 89 vars */]) = 0
brk(0) = 0x12af000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 4
fstat(4, {st_mode=S_IFREG|0644, st_size=166383, ...}) = 0
mmap(NULL, 166383, PROT_READ, MAP_PRIVATE, 4, 0) = 0x7f30e5332000
close(4) = 0
open("/usr/lib/libvte2_90.so.9", O_RDONLY|O_CLOEXEC) = 4
read(4, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\2607\1\0\0\0\0\0"..., 832) = 832
fstat(4, {st_mode=S_IFREG|0755, st_size=662024, ...}) = 0
@mkaito
mkaito / screencast.sh
Created November 10, 2012 20:21
Recording a screencast with ffmpeg
ffmpeg -v info\
-f x11grab -s 1920x1064 -i :0.0+0,16\
-f pulse -i "alsa_output.pci-0000_00_1b.0.analog-stereo.monitor"\
-f pulse -i "alsa_input.usb-Sennheiser_Communication_Sennheiser_USB_headset-00-headset.analog-mono"\
-vcodec libx264 -preset ultrafast -tune zerolatency -crf 0\
-acodec pcm_s16le\
-filter_complex 'amerge, pan=2:c0=0.3*c0+3*c2:c1=0.3*c1+3*c2'\
"$rec"
@mkaito
mkaito / memoricide-codefest.md
Created August 25, 2012 16:16 — forked from manpages/memoricide-codefest.md
Memoricide /codefest/ workflow

Workflow for memoricide /codefest/ project

  • Our work flow is based on features and projects. Each project has a maintainer, usually, the same person as the project author. The maintainer accepts new features and is makes decissions about feature APIs.

  • A feature request is assigned to a programmer.

  • He or she negotiates the JSON API with the project maintainer.

@mkaito
mkaito / post-receive
Created July 27, 2012 02:49
post-receive hook to notify our hubot instance
#!/usr/bin/env ruby
# Notify hubot when someone pushes.
require 'net/http'
branches = []
cnum = 0
STDIN.each do |line|
(oldref, newref, refname) = line.split
branches.push `git rev-parse --symbolic --abbrev-ref #{refname}`.chomp
@mkaito
mkaito / readrc.sh
Created February 22, 2012 15:48
rc-file reading in a shell script
#!/usr/bin/env zsh
# An example script that reads a colon separated rc file, given on argv
# Line format expected:
# option: value
# Mind the colon and space separating option name from the value.
# Adjust the parameter expansion as needed if you change the line format.
# - read <var> will read a line at a time.
# - Piping the file name into the while block reads the file into the read call.
# - typeset -A <var> explicitly marks a hash for ZSH.