Skip to content

Instantly share code, notes, and snippets.

@rk295
rk295 / -
Created April 25, 2015 16:07
Apr 24 16:52:39 sn-b12 kernel: JBD: barrier-based sync failed on dm-18-8 - disabling barriers
Apr 24 16:56:42 sn-b12 kernel: INFO: task pdflush:699 blocked for more than 120 seconds.
Apr 24 16:56:42 sn-b12 kernel: "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message.
Apr 24 16:56:42 sn-b12 kernel: pdflush D ffffffff801583d9 0 699 331 700 698 (L-TLB)
Apr 24 16:56:42 sn-b12 kernel: ffff81043f7eb750 0000000000000046 0000000000000010 000000104e1ab940
Apr 24 16:56:42 sn-b12 kernel: ffff810429d02c58 000000000000000a ffff81083fe1c0c0 ffff81043fd020c0
Apr 24 16:56:42 sn-b12 kernel: 00003f6801b18a86 000000000000c81e ffff81083fe1c2a8 000000083f253360
Apr 24 16:56:42 sn-b12 kernel: Call Trace:
Apr 24 16:56:42 sn-b12 kernel: [<ffffffff887bb135>] :ext4:ext4_mb_use_best_found+0x2d6/0x3a9
Apr 24 16:56:42 sn-b12 kernel: [<ffffffff887847a6>] :jbd2:do_get_write_access+0x212/0x418
@rk295
rk295 / -
Created April 14, 2015 14:14
foo
@rk295
rk295 / CF Weirdness.md
Created April 10, 2015 15:43
CF Weirdness

The following Cloudformation snippet produces this name tag olive-asg-asgElb-16GSCPHUFSWEN. The stack name was olive-asg so I was expecting olive-asg-asgElb, without the -16GSCPHUFSWEN on the end!

Tags: [
    {
        Key: "Name",
        Value: {
            "Fn::Join": [
                "-",
 [
@rk295
rk295 / -
Created January 28, 2015 10:50
10:50:02 up 9 days, 18:18, 2 users, load average: 0.58, 1.26, 1.09
@rk295
rk295 / -
Created January 26, 2015 16:00
foo
@rk295
rk295 / gist:25176f150c24f95df73e
Created January 18, 2015 09:34
Openvpn enable MD5 Centos 7 hack
Not advised, but until I can work out which keys are MD5...
[Unit]
Description=OpenVPN Robust And Highly Flexible Tunneling Application On %I
After=network.target
[Service]
PrivateTmp=true
Type=forking
PIDFile=/var/run/openvpn/%i.pid
<table id="freq" border="0" cellspacing="0" cellpadding="0">
<tr nowrap bgcolor="#CCCCFF">
<th colspan="9" class="hdr">Table of Frequencies (percent)</th>
</tr>
<tr nowrap bgcolor="#CCCCFF">
<th class="freq">Direction</th>
<th class="freq">&lt; 0.5 m/s</th>
<th class="freq">0.5-2 m/s</th>
<th class="freq">2-4 m/s</th>
ssh-dss AAAAB3NzaC1kc3MAAACBAOUeDW4aXRBw0TxA2vDUsygaMFo/Ev1whZN1HWAfIJYex0Se5Q9L8AdkeVPylsYS+wn1QiGtq9ZuyICN5OLS0frsuD8ThdnaSk9KIxuDjMj64BD+Rl+/+ybAKhuGaYd2u/GZrVcjwTRBt+bydF48DzZ+zeLfZrub4aluY0/Jh82JAAAAFQC1T4ivsKR+jZAXp2fk7wbeoN1xAwAAAIEAsLWwH+5DRySyOWUYBOrWvrOuFFmuC+2CvBgMu6KT4gJYlE8QWT8rfJRQGDzIkgpekDC+7wk1pvOSv2vRnAcoM/kYg5F/xBY3eEkqNM2bYVjxQe2HEsJVzDO+xANznRs7FzqSyYR33wECRcTq+nxlhAum47K3vI3ywsbnBKt2gv8AAACAM/1ia7hF/Ods/ydjm23uAh7Tk7uY2AtTIDtLM6AC1l1IDEcbWv7KFGNtfVQJy3a+fY121HU5sVJ/S5H2fhtUCnapP7xBJxlutCl+syH+4VdLLh5AXv47TublO0W1mKEZWd2OO5DipoijenFXXGon9kTvKwoKMIZGWo3i8NO9SDo= robin@trillian
@rk295
rk295 / gist:cd4244346a8c858c8318
Created October 10, 2014 12:25
bash variable foo
$ export foo=bar
$ export "baz"$foo=wibble
$ echo $bazbar
wibble
@rk295
rk295 / Allowed & Blocked-1409435838391
Created August 30, 2014 21:59
Couple of useful firewall dashboards for Logstash
{
"title": "Allowed & Blocked",
"services": {
"query": {
"list": {
"0": {
"query": "subtype:allowed",
"alias": "",
"color": "#7EB26D",
"id": 0,