Skip to content

Instantly share code, notes, and snippets.

View rlaager's full-sized avatar

Richard Laager rlaager

View GitHub Profile
@rlaager
rlaager / dmesg.log
Created February 9, 2016 08:42
Hung task log
[ 1806.562345] INFO: task dpkg:8812 blocked for more than 120 seconds.
[ 1806.562349] Tainted: P OE 4.2.0-16-generic #19-Ubuntu
[ 1806.562350] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
[ 1806.562352] dpkg D ffff88007e716640 0 8812 8790 0x00000000
[ 1806.562355] ffff880022acb248 0000000000000086 ffff88007b4d2940 ffff88000060d280
[ 1806.562357] ffff880022acb278 ffff880022acc000 ffff88003014a064 ffff88000060d280
[ 1806.562359] 00000000ffffffff ffff88003014a068 ffff880022acb268 ffffffff817eb9a7
[ 1806.562360] Call Trace:
[ 1806.562367] [<ffffffff817eb9a7>] schedule+0x37/0x80
[ 1806.562369] [<ffffffff817ebc5e>] schedule_preempt_disabled+0xe/0x10
-----BEGIN DH PARAMETERS-----
MIICCAKCAgEA///////////JD9qiIWjCNMTGYouA3BzRKQJOCIpnzHQCC76mOxOb
IlFKCHmONATd75UZs806QxswKwpt8l8UN0/hNW1tUcJF5IW1dmJefsb0TELppjft
awv/XLb0Brft7jhr+1qJn6WunyQRfEsf5kkoZlHs5Fs9wgB8uKFjvwWY2kg2HFXT
mmkWP6j9JM9fg2VdI9yjrZYcYvNWIIVSu57VKQdwlpZtZww1Tkq8mATxdGwIyhgh
fDKQXkYuNs474553LBgOhgObJ4Oi7Aeij7XFXfBvTFLJ3ivL9pVYFxg5lUl86pVq
5RXSJhiY+gUQFXKOWoqqxC2tMxcNBFB6M6hVIavfHLpk7PuFBFjb7wqK6nFXXQYM
fbOXD4Wm4eTHq/WujNsJM9cejJTgSiVhnc7j0iYa0u5r8S/6BtmKCGTYdgJzPshq
ZFIfKxgXeyAMu+EXV3phXWx3CYjAutlG4gjiT6B05asxQ9tb/OD9EI5LgtEgqSEI
ARpyPBKnh+bXiHGaEL26WyaZwycYavTiPBqUaDS2FQvaJYPpyirUTOjbu8LbBN6O
ask-cert-level
use-agent
# http://www.debian-administration.org/users/dkg/weblog/48
personal-digest-preferences SHA256
cert-digest-algo SHA256
default-preference-list SHA512 SHA384 SHA256 SHA224 AES256 AES192 AES CAST5 ZLIB BZIP2 ZIP Uncompressed
keyserver hkps://hkps.pool.sks-keyservers.net
keyserver-options ca-cert-file=/home/rlaager/.gnupg/sks-keyservers.netCA.pem
@rlaager
rlaager / gist:10500159
Last active August 29, 2015 13:59
keybase.md
### Keybase proof
I hereby claim:
* I am rlaager on github.
* I am rlaager (https://keybase.io/rlaager) on keybase.
* I have a public key whose fingerprint is 9B9F 8D75 21C6 588D 3FBC 2861 0FFD 32C7 5517 E252
To claim this, I am signing this object:
@rlaager
rlaager / bgpd.conf
Last active November 17, 2023 21:28 — forked from dotysan/spamhaus2quagga.sh
This fork does BGP announcements in a manner intended to be compatible with SpamHaus's BGPf BGP feed. The router you're connecting to should set the next-hop to a null-routed IP (e.g. 192.0.2.1).
hostname HOSTNAME
log syslog
router bgp 65190
bgp router-id IP
neighbor ROUTER remote-as AS
neighbor ROUTER password PASSWORD
neighbor ROUTER ebgp-multihop 255
neighbor ROUTER prefix-list deny-all in
PASS: /home/rlaager/gplugin/build/lua/tests/test-lua-loader
[ 80%] Generating test-gplugin-lua-junit.xml
[ 80%] Built target lua-tests
[ 81%] Building C object python/CMakeFiles/gplugin-python.dir/gplugin-python-core.c.o
[ 82%] Building C object python/CMakeFiles/gplugin-python.dir/gplugin-python-loader.c.o
[ 83%] Building C object python/CMakeFiles/gplugin-python.dir/gplugin-python-plugin.c.o
[ 84%] Building C object python/CMakeFiles/gplugin-python.dir/gplugin-python-utils.c.o
/home/rlaager/gplugin/python/gplugin-python-utils.c: In function ‘gplugin_python_exception_to_gerror’:
/home/rlaager/gplugin/python/gplugin-python-utils.c:95:22: warning: implicit declaration of function ‘PyUnicode_AsUTF8’ [-Wimplicit-function-declaration]
/home/rlaager/gplugin/python/gplugin-python-utils.c:96:22: warning: format ‘%s’ expects argument of type ‘char *’, but argument 4 has type ‘int’ [-Wformat]
ZFS on Linux Improvements
1. `zpool status` can output disk names which are under /dev/disk.
2. `zpool status` outputs the whole disk device for wholedisk pools,
but GRUB needs the partition device.
Before this can be accepted upstream, I am to merge it into the
existing /dev scanning code.
Index: grub/util/getroot.c
@rlaager
rlaager / gist:6941858
Created October 11, 2013 20:51
A patch to irchelper which strips control characters.
diff --git a/irchelper/irchelper.c b/irchelper/irchelper.c
--- a/irchelper/irchelper.c
+++ b/irchelper/irchelper.c
@@ -781,18 +781,44 @@
if ((node = (PurpleBlistNode *)purple_blist_find_chat(account, name)) != NULL)
{
const char *last_topic = purple_blist_node_get_string(node, PLUGIN_ID "_topic");
+ char *topic_cleaned = g_malloc(strlen(topic));
+ const char *t = topic;
+ char *tc = topic_cleaned;
@rlaager
rlaager / gist:6313891
Created August 22, 2013 23:12
OpenIndiana rpool mirror setup
# In this example, c7t0d0 is the existing rpool disk and c7t1d0 is the second disk.
# Add a default partition map on the new drive.
fdisk -B c7t1d0p0
# Copy the disk label from the first disk to the second:
prtvtoc /dev/rdsk/c7t0d0s0 | fmthard -s - /dev/rdsk/c7t1d0s0
# Attach the second disk to the root pool:
zpool attach rpool c7t0d0s0 c7t1d0s0
dir=$PWD
while [ "$dir" != "/" ] ; do
if [ -e "$dir/debian/rules" -a -d "$dir/debian/patches" ] ; then
export QUILT_PATCHES=debian/patches
break
fi
dir="`dirname "$dir"`"
done
QUILT_DIFF_ARGS="--color=auto"