Skip to content

Instantly share code, notes, and snippets.

View telnoratti's full-sized avatar

Calvin Winkowski telnoratti

  • Virginia Tech Transportation Institute
View GitHub Profile
@telnoratti
telnoratti / mynt_to_hugo.sh
Last active November 10, 2017 20:13
Convert mynt posts to hugo
#!/bin/bash
files=$(ls | grep ^20)
for f in $files;
do
date=$(cut -f-3 -d- <<< $f)
sed -i "2i date: $date" $f
sed -i "3i lastmod: $(date --iso-8601=seconds)" $f
sed -i "4i draft: false" $f
#0 __memset_avx2 () at ../sysdeps/x86_64/multiarch/memset-avx2.S:135
No locals.
#1 0x00000000007cdd9b in DFInstanceLinux::read_raw (this=0x13797f0, addr=17974274650124877746, bytes=17179869184, buffer=0x7ffff6c593b0) at /build/src/dfinstancelinux.cpp:154
bytes_read = -1
__FUNCTION__ = "read_raw"
#2 0x0000000000556629 in DFInstance::enum_vec<int> (this=0x13797f0, addr=140406800909548) at /build/src/dfinstance.h:110
bytes_read = 4
__FUNCTION__ = "enum_vec"
out = {d = 0x7ffff6c59398}
start = 17974274650124877746
2017-Feb-24 02:05:01.648 INFO core Dwarf Therapist "37.0.0" starting normally. [/build/src/dwarftherapist.cpp:175] (setup_logging)
2017-Feb-24 02:05:01.648 INFO core Runtime QT Version 5.5.1 [/build/src/dwarftherapist.cpp:176] (setup_logging)
process 226: D-Bus library appears to be incorrectly set up; failed to read machine uuid: UUID file '/etc/machine-id' should contain a hex string of length 32, not length 0, with no other text
See the manual page for dbus-uuidgen to correct this issue.
2017-Feb-24 02:05:01.762 DEBUG core setting up connections for MainWindow [/build/src/mainwindow.cpp:166] (MainWindow)
2017-Feb-24 02:05:01.767 INFO core beginning to read settings [/build/src/dwarftherapist.cpp:202] (read_settings)
2017-Feb-24 02:05:01.771 INFO core finished reading settings [/build/src/dwarftherapist.cpp:253] (read_settings)
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
2017-Feb-24 02:05:01.800 INFO core attempting connection to running DF game [/build/src
# zenburn color theme for alot
[global]
footer = 'standout,bold','','white','dark blue','g100','dark blue'
body = '','','light gray','','light gray',''
notify_error = 'standout','','light gray','dark red','light gray','dark red'
notify_normal = '','','light gray','black','light gray','#68a'
prompt = '','','light gray','','light gray',''
tag = '','','yellow','','yellow',''
tag_focus = 'standout, bold','','yellow','','yellow',''
@telnoratti
telnoratti / rt.py
Created February 8, 2016 04:53
RT ticket filter for afew
# Copyright (c) 2016, Calvin Winkowski <telnoratti@gmail.com>
#
# Permission to use, copy, modify, and/or distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
# WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
# ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
@telnoratti
telnoratti / cowchat.py
Last active December 23, 2015 18:59
Weechat cowsay plugin, sends messages with a low priority in the current buffer, used /cowchat <cowfile> <message>
#############################################################################
# Weechat cowsay plugin, sends messages with a low priority in the current
# buffer, used /cowchat <cowfile> <message>
#
# Written by telnoratti <telnoratti@telnor.org>
#
# Copyright (c) 2013, Telnor Institute
#
# Permission to use, copy, modify, and/or distribute this software for any
# purpose with or without fee is hereby granted, provided that the above