Skip to content

Instantly share code, notes, and snippets.

View aladac's full-sized avatar

Adam Ladachowski aladac

View GitHub Profile
#!/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]"
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
@aladac
aladac / vid_mode_switch.sh
Created March 27, 2012 13:06
Video mode switch for VirtualBox w/o guest additions
VBoxManage setextradata "VM_NAME" CustomVideoMode1 854x480x32
@aladac
aladac / hint_vid_mode.sh
Created March 27, 2012 13:04
Hint Video Mode for VirtualBox
VBoxManage controlvm "VM_NAME" setvideomodehint 854 480 32
@aladac
aladac / vidcap.sh
Created March 27, 2012 09:22
Video Capture using Xvidcap
xvidcap --gui no --quality 100 \
--cap_geometry 800x600 --format mov --audio no
@aladac
aladac / .vimrc
Created March 26, 2012 09:41
Time Indexed Autobackup
au! BufWrite * let &backupext = strftime(".%y%m%d.%H%M%S")