Skip to content

Instantly share code, notes, and snippets.

View berislavbabic's full-sized avatar
🏠
Working from home

Berislav Babic berislavbabic

🏠
Working from home
View GitHub Profile

Contract Killer 3

Revised date: 07/11/2012

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

Summary:

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
berislavbabic / devise.hr.yml
Created May 25, 2011 18:18
Devise Croatian translation
hr:
errors:
messages:
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"
not_saved:
one: "1 greška sprečava snimanje %{resource}:"
few: "%{count} greške sprečavaju snimanje %{resource}:"
@berislavbabic
berislavbabic / SmartStupidVersioning.rb
Created March 31, 2011 22:48
A backup script that backups the folder you wish into a 7z file, sort of versioning done stupid
# 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
berislavbabic / StackletScraper.rb
Created January 26, 2011 00:22
Script to download all VM images from stacklet.com, only if you are a paying customer of course.
require 'rubygems'
require 'mechanize'
require 'nokogiri'
username = USERNAME
password = PASSWORD
scrape_urls = {'solus' => 'http://stacklet.com/downloads/templates/solus',
'qemu' => 'http://stacklet.com/downloads/templates/qemu',
'qemu_2' => 'http://stacklet.com/downloads/templates/qemu?page=1',