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
#!/usr/bin/env ruby | |
# A script to show number of workdays and work hours in a month, named in honor of the Warcraft Peon unit | |
require 'date' | |
require "optparse" | |
options = { hours: 8 } | |
OptionParser.new do |opts| | |
opts.banner = "Usage: #{$0} [options]" |
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
class Bounty | |
include Mongoid::Document | |
embeds_many :kills | |
validates_uniqueness_of :ts, :scope => [ :char_id ] | |
validates_presence_of :ts, :char_id, :bounty | |
field :ts, type: Time | |
field :char_id, type: Integer | |
field :corp_id, type: Integer | |
field :tax, type: Integer | |
field :bounty, type: Integer |
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
VBoxManage setextradata "VM_NAME" CustomVideoMode1 854x480x32 |
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
VBoxManage controlvm "VM_NAME" setvideomodehint 854 480 32 |
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
xvidcap --gui no --quality 100 \ | |
--cap_geometry 800x600 --format mov --audio no |
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
au! BufWrite * let &backupext = strftime(".%y%m%d.%H%M%S") |
NewerOlder