Skip to content

Instantly share code, notes, and snippets.

Working from home

Berislav Babic berislavbabic

Working from home
View GitHub Profile
View Contract Killer

Contract Killer 3

Revised date: 07/11/2012

Between us [company name] and you [customer name]


We’ll always do our best to fulfil your needs and meet your expectations, but it’s important to have things written down so that we both know what’s what, who should do what and when, and what will happen if something goes wrong. In this contract you won’t find any complicated legal terms or long passages of unreadable text. We’ve no desire to trick you into signing something that you might later regret. What we do want is what’s best for both parties, now and in the future.

berislavbabic /
Created May 25, 2011
Devise Croatian translation
expired: "je istekao, molimo zatražite novi"
not_found: "nije pronađeno"
already_confirmed: "je već potvrđen, molimo pokušajte se prijaviti"
not_locked: "nije zaključan"
one: "1 greška sprečava snimanje %{resource}:"
few: "%{count} greške sprečavaju snimanje %{resource}:"
berislavbabic / SmartStupidVersioning.rb
Created Mar 31, 2011
A backup script that backups the folder you wish into a 7z file, sort of versioning done stupid
View SmartStupidVersioning.rb
# Author: babinho
# Name: SmartBackup
# Purpose: A friend needed a fast schedulable solution for directory backup
# and i made it worse :) The script is x-platform, haven't tryed on a mac because
# i am one short. Only prerequisite is 7zip archiver that is in system path
# Executing: ruby smart_backup.rb path(/home/username/dir_to_backup)
# it creates a dir_to_backup.7z file with current date in the name
@in_dir = ARGV[0]
separator = RUBY_PLATFORM.downcase.include?("mingw") ? "\\" : "/"
berislavbabic / StackletScraper.rb
Created Jan 26, 2011
Script to download all VM images from, only if you are a paying customer of course.
View StackletScraper.rb
require 'rubygems'
require 'mechanize'
require 'nokogiri'
username = USERNAME
password = PASSWORD
scrape_urls = {'solus' => '',
'qemu' => '',
'qemu_2' => '',