Skip to content

Instantly share code, notes, and snippets.

@AvianFlu
AvianFlu / awesomebot.conf
Created February 8, 2014 20:14
Example upstart script
#!upstart
description "awesome bot"
start on startup
stop on shutdown
script
echo $$ >> /var/run/awesomebot.pid
exec node /var/bots/awesome.js >> /var/log/awesomebot.log 2>&1
*** glibc detected *** /home/steam/Steam/SteamApps/common/Starbound/linux64/starbound_server: free(): corrupted unsorted chunks: 0x0000000008c0c720 ***
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x7eb96)[0x7ff266a8bb96]
/home/steam/Steam/SteamApps/common/Starbound/linux64/starbound_server(_ZNSt15basic_stringbufIcSt11char_traitsIcESaIcEED1Ev+0x5f)[0x7ebe0f]
/home/steam/Steam/SteamApps/common/Starbound/linux64/starbound_server(_ZN4Star4strfIIdEEESsPKcDpRKT_+0x7b)[0x8579eb]
/home/steam/Steam/SteamApps/common/Starbound/linux64/starbound_server(_ZN4Star14UniverseServer3runEv+0x2fb)[0x84daeb]
/home/steam/Steam/SteamApps/common/Starbound/linux64/starbound_server(main+0x582)[0x7e4dd2]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xed)[0x7ff266a2e76d]
/home/steam/Steam/SteamApps/common/Starbound/linux64/starbound_server[0x7eab1d]
======= Memory map: ========
@AvianFlu
AvianFlu / gist:9518963
Created March 12, 2014 23:35
limechat segfault upon re-opening laptop lid
Process: LimeChat [34465]
Path: /Applications/LimeChat.app/Contents/MacOS/LimeChat
Identifier: net.limechat.LimeChat
Version: 2.39 (2.39)
Code Type: X86-64 (Native)
Parent Process: launchd [248]
Responsible: LimeChat [34465]
User ID: 501
Date/Time: 2014-03-12 19:33:29.453 -0400
var spawn = require('child_process').spawn;
var child = spawn('ssh', ['root@198.199.85.48'], {
stdio: [0, 1, 2]
});
child.unref();
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDLxOIAwpC0GmSuryhh0Ey4lKnR4NcneFe8hsnDQHsqp9MN6eF9top9vwXf/2pFLkq2PPSaoJvjC9N650MEfthP8LIR5xWBlrBYUAK/0slZN/nSfo8aLmleCXy11Y6PMXsKOkpY8Dmb36g+hIbNW+PEEz68iQYijuKhZn+tMlMyKsw6xvwxABd07q04AazybVz6oZfztWOhfb8UAXA9+iZwBMBMuBLGCLmv+zmPq3I/V21kkquMFEyVX1gOMKKHFH+XnsqtHavZpvOThvOpFQ87p8wolJ+teIGh/tZ++Qwxhg8O4n5iMnw5usdPFuhaPZmupLvIucQRyye+xc82i30F avianflu@Charlies-MacBook-Pro.local
@AvianFlu
AvianFlu / c720-i3-backlight.patch
Created August 25, 2014 20:33
Fix backlight on Acer C720 i3 models
From 41576ce101a70e44f5cf28dce5664c3449d5cc8d Mon Sep 17 00:00:00 2001
From: Charlie McConnell <charlie@charlieistheman.com>
Date: Mon, 25 Aug 2014 16:23:22 -0400
Subject: [PATCH] [drm/i915] Acer C720 i3 models have backlights
---
drivers/gpu/drm/i915/intel_display.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
@AvianFlu
AvianFlu / gist:f727bb2b11dcc950c779
Created September 23, 2014 15:20
The #archlinux IRC channel in a nutshell
<niel> havent done a system update in a year whats the chance it wrecks everything
<berceanu> niel: 67%
<Pessimist> niel, pi/5
<gnubien> niel: ask in #systemd
<sd1001> niel: Backup, then try
<oldwzd> niel: running ZFS?
<niel> oh god
<niel> no zfs
@AvianFlu
AvianFlu / wakeup.service
Created September 28, 2014 15:05
How to ACTUALLY fix suspend on a C720
[Unit]
Description=Proper ACPI Wakeup Settings
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/bin/bash -c "echo LID0 > /proc/acpi/wakeup"
ExecStart=/bin/bash -c "echo TPAD > /proc/acpi/wakeup"
ExecStart=/bin/bash -c "echo TSCR > /proc/acpi/wakeup"
[Unit]
Description=Docker Daemon
Requires=multi-user.target
[Service]
ExecStart=/usr/bin/docker -d -H unix:///var/run/docker.sock -e lxc
PIDFile=/var/run/docker.pid
Restart=on-failure
[Install]
@AvianFlu
AvianFlu / iptables.rules
Created October 5, 2014 23:06
iptables rules for coreOS on DigitalOcea
*filter
:INPUT DROP [0:0]
:FORWARD DROP [0:0]
:OUTPUT ACCEPT [0:0]
:Leet-Firewall-1 - [0:0]
# Allow access to Ghost instances over private network
-A INPUT -i eth1 -p tcp -s 10.132.0.0/16,172.17.0.0/16,127.0.0.1 --dport 2368 -j ACCEPT
# Allow private etcd ports