Skip to content

Instantly share code, notes, and snippets.

View ignisf's full-sized avatar
😈

ignisf

😈
View GitHub Profile
@ignisf
ignisf / gist:4166373
Created November 29, 2012 02:22
.emacs
(require 'package)
(add-to-list
'package-archives '("melpa". "http://melpa.milkbox.net/packages/"))
(package-initialize)
(require 'autopair)
(autopair-global-mode)
(require 'auto-complete-config)
(ac-config-default)
@ignisf
ignisf / gist:4483718
Created January 8, 2013 13:14
RbConfig::CONFIG on a 64-bit FreeBSD 9
irb(main):006:0> RbConfig::CONFIG.each {|key, value| p "#{key} => #{value}"}
"DESTDIR => "
"MAJOR => 1"
"MINOR => 9"
"TEENY => 1"
"PATCHLEVEL => 327"
"INSTALL => /usr/bin/install -c -o root -g wheel"
"EXEEXT => "
"prefix => /usr/local"
"ruby_install_name => ruby19"
@ignisf
ignisf / gist:4483735
Created January 8, 2013 13:16
RbConfig::CONFIG on a 64-bit Arch Linux
1.9.3-p327 :002 > RbConfig::CONFIG.each {|key, value| p "#{key} => #{value}"}
"DESTDIR => "
"MAJOR => 1"
"MINOR => 9"
"TEENY => 1"
"PATCHLEVEL => 327"
"INSTALL => /usr/bin/install -c"
"EXEEXT => "
"prefix => /home/ignisf/.rvm/rubies/ruby-1.9.3-p327"
"ruby_install_name => ruby"
@ignisf
ignisf / gist:4483747
Created January 8, 2013 13:17
RbConfig::CONFIG on a 32-bit FreeBSD 9
irb(main):001:0> RbConfig::CONFIG.each {|key, value| p "#{key} => #{value}"}
"DESTDIR => "
"MAJOR => 1"
"MINOR => 9"
"TEENY => 1"
"PATCHLEVEL => 194"
"INSTALL => /usr/bin/install -c -o root -g wheel"
"EXEEXT => "
"prefix => /usr/local"
"ruby_install_name => ruby19"
@ignisf
ignisf / gist:4483780
Created January 8, 2013 13:21
RbConfig::CONFIG on an armel Debian Wheezy
"DESTDIR => "
"MAJOR => 1"
"MINOR => 9"
"TEENY => 1"
"PATCHLEVEL => 194"
"INSTALL => /usr/bin/install -c"
"EXEEXT => "
"prefix => /usr"
"ruby_install_name => ruby1.9.1"
"RUBY_INSTALL_NAME => ruby1.9.1"
@ignisf
ignisf / gist:4502282
Created January 10, 2013 14:14
RbConfig::CONFIG on the Raspberry Pi
irb(main):001:0> RbConfig::CONFIG.each {|key, value| p "#{key} => #{value}"}
"DESTDIR => "
"MAJOR => 1"
"MINOR => 9"
"TEENY => 1"
"PATCHLEVEL => 194"
"INSTALL => /usr/bin/install -c"
"EXEEXT => "
"prefix => /usr"
"ruby_install_name => ruby1.9.1"
#! /bin/sh
# Refactored from Ubuntu's hdparm script
# It isn't safe to set an APM policy by default on Firewire or USB devices.
# See https://bugs.launchpad.net/bugs/515023.
has_apm()
{
hdparm -i $dev 2> /dev/null | grep -q 'AdvancedPM=yes'
}
@ignisf
ignisf / away.patch
Last active December 17, 2015 09:09
add a marker line on away
--- a/trackbar.pl 2008-05-17 18:39:11.000000000 +0300
+++ b/trackbar.pl 2013-02-14 18:45:35.000000000 +0200
@@ -128,6 +128,20 @@
}
);
+Irssi::signal_add(
+ 'away mode changed' => sub {
+ my $oldwindow = Irssi::active_win();
+
@ignisf
ignisf / gist:5652399
Created May 26, 2013 10:42
archlinux-hf on the Raspberry Pi
{"DESTDIR"=>"",
"MAJOR"=>"2",
"MINOR"=>"0",
"TEENY"=>"0",
"PATCHLEVEL"=>"0",
"INSTALL"=>"/usr/bin/install -c",
"EXEEXT"=>"",
"prefix"=>"/usr",
"ruby_install_name"=>"ruby",
"RUBY_INSTALL_NAME"=>"ruby",
@ignisf
ignisf / gist:5652402
Last active December 17, 2015 18:19
linaro on the Cubie Board
{"DESTDIR"=>"",
"MAJOR"=>"1",
"MINOR"=>"9",
"TEENY"=>"1",
"PATCHLEVEL"=>"194",
"INSTALL"=>"/usr/bin/install -c",
"EXEEXT"=>"",
"prefix"=>"/usr",
"ruby_install_name"=>"ruby1.9.1",
"RUBY_INSTALL_NAME"=>"ruby1.9.1",