-
bbq
https://github.com/drugpl/bbq polishing docs, cleaning code, merging community features, release!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ata5: link is slow to respond, please be patient (ready=0) | |
ata5: COMRESET failed (errno=-16) | |
ata5: link is slow to respond, please be patient (ready=0) | |
ata5: COMRESET failed (errno=-16) | |
ata5: link is slow to respond, please be patient (ready=0) | |
ata5: COMRESET failed (errno=-16) | |
ata5: limiting SATA link speed to 1.5 Gbps | |
ata5: COMRESET failed (errno=-16) | |
ata5: reset failed, giving up |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# mongoid and duck typing | |
def logger=(logger) | |
case logger | |
when Logger then @logger = logger | |
when false, nil then @logger = nil | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import XMonad | |
import XMonad.Config.Gnome | |
import XMonad.Hooks.DynamicLog | |
import XMonad.Hooks.ManageDocks | |
import XMonad.Hooks.ManageHelpers | |
import XMonad.Actions.CycleWS | |
import XMonad.Actions.WindowGo | |
import XMonad.Util.WindowProperties | |
import XMonad.Util.EZConfig | |
import XMonad.Layout.Named |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
default-table-type=innodb | |
transaction-isolation=READ-COMMITTED | |
default-character-set=utf8 | |
skip-sync-frm=OFF | |
innodb_flush_log_at_trx_commit = 0 | |
innodb_flush_method = 0_DIRECT |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias tstamp='date +%Y%m%d%H%M%S' | |
backup(){ | |
cp -r $1 $1.`tstamp` | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Rake::TestTask.new('test') do |t| | |
t.libs << 'lib' | |
t.libs << 'test' | |
t.pattern = 'test/**/*_test.rb' | |
end | |
task :default => :test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"\e[A":history-search-backward | |
"\e[B":history-search-forward | |
set completion-ignore-case on | |
set show-all-if-ambiguous on |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# muzang.rb | |
require 'muzang' | |
require 'muzang-plugins' | |
class Bshellz | |
include Muzang::Plugins::Helpers | |
def initialize(bot) | |
@bot = bot | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rest_client' | |
require 'active_support/concern' | |
require 'active_support/core_ext/string' | |
module RspecApiDsl | |
# This module is almost exact copy from this dsl: | |
# https://raw.github.com/zipmark/rspec_api_documentation/master/lib/rspec_api_documentation/dsl.rb | |
# | |
# I didn't quike like Rails dependency and all that stuff | |
# so I made few tweaks and attached RestClient. |