Skip to content

Instantly share code, notes, and snippets.

View ignisf's full-sized avatar
😈

Petko Bordjukov ignisf

😈
View GitHub Profile
@ignisf
ignisf / ppp.conf
Created March 31, 2014 20:42
FreeBSD PPP Configuration for MTel HUAWEI E303 USB 3g Modem
mtel:
set device /dev/cuaU0.0
set speed 921600
set timeout 0
set authname mtel
set authkey mtel
set phone *99#
set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \
\"\" \
ignisf@c1-10-1-3-77:~/therubyracer$ bundle exec ruby test.rb
test.rb:2: [BUG] Segmentation fault
ruby 1.9.3p484 (2013-11-22 revision 43786) [arm-linux-eabihf]
-- Control frame information -----------------------------------------------
c:0004 p:---- s:0010 b:0010 l:000009 d:000009 CFUNC :New
c:0003 p:0031 s:0007 b:0007 l:002344 d:000830 EVAL test.rb:2
c:0002 p:---- s:0004 b:0004 l:000003 d:000003 FINISH
c:0001 p:0000 s:0002 b:0002 l:002344 d:002344 TOP
@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: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: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: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();
+