Skip to content

Instantly share code, notes, and snippets.

View mfilej's full-sized avatar

Miha Filej mfilej

View GitHub Profile
@mfilej
mfilej / reset.sass
Created July 31, 2008 11:20
Eric Meyer's reset reloaded, converted to SASS
html, body, div, span, applet, object, iframe,h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, font, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, input
margin: 0
padding: 0
border: 0
outline: 0
font:
weight: inherit
style: inherit
size: 100%
family: inherit
@mfilej
mfilej / slo-tech.css
Created August 2, 2008 19:07
slo-tech.com userstyles
html * {
font-family: "Helvetica Neue" !important;
}
body {
font-size: 85% !important;
background: #fcfcfc !important;
}
#head,
@mfilej
mfilej / deploy.rb
Created August 25, 2008 12:33
deploying a merb app with vlad (http://is.gd/1ToW)
require 'vlad'
set :application, "applicationname"
set :domain, "yourserver.com"
set :deploy_to, "/path/to/deploy"
set :repository, 'git://github.com/kneath/greed.git'
namespace :vlad do
##
# Merb app server
# dot.rake
# Creates a DOT format file showing the model objects and their associations
# Authors:
# Matt Biddulph - http://www.hackdiary.com/archives/000093.html
# Alex Chaffee - http://www.pivotalblabs.com/articles/2007/09/29/dot-rake
# David Vrensk - david@vrensk.com
# Usage:
# rake dot
# To open in OmniGraffle, run
# open -a 'OmniGraffle' model.dot
@mfilej
mfilej / folder pattern regex
Created September 12, 2008 12:04
textmate folder ignore pattern
!(.*/(\.[^/]*|CVS|_darcs|_MTN|\{arch\}|blib|.*~\.nib|.*\.(framework|app|pbproj|pbxproj|xcode(proj)?|bundle))$|/Projects/[^/]+/(doc|log|tmp|vendor/(rails|plugins/[^/]+/test)))
#!/usr/bin/env ruby
#
# Update JIRA with git commit messages
#
# == Usage ==
#
# To update a JIRA issue, prepend the first line of your git commit message
# with the issue key and a colon:
#
# $ git commit -m "GIT-1: Updates something"
@mfilej
mfilej / simobil.rb
Created October 24, 2008 23:48
simobil billing specification parser
require 'rubygems'
require 'hpricot'
require 'pp'
source = open('spec.xml')
doc = Hpricot(source)
ppl = Hash.new { |h,k| h[k] = { :call => 0.0, :sms => 0.0, :other => 0.0, :sum => 0.0 } }
doc.search(:zapis).each do |entry|
/*
* letmegooglethatforyou.com bookmaklet
* Use it on a google results page.
*/
javascript:document.location='http://letmegooglethatforyou.com/?q='+escape(document.getElementById('tsf')['q'].value);
@mfilej
mfilej / gmail-user-styles.css
Created January 29, 2009 11:26
GMail userstyles
/* hide the google bar */
body {
margin-top: -25px !important;
margin-bottom: 20px;
height: 100%;
}
/* but leave the settings link */
a[href="https://mail.google.com/mail/#settings"] {
position: absolute !important;

Upgrading the iPhone software from 3.0 beta

Today I wanted to upgrade to the final version of the 3.0 software since the phone stopped working, stating that the software "has expired and must be upgraded to a newer version". Great, I'll do that! Too bad iTunes on the other hand kept saying that the phone was already up to date…

So I went out on the internets, looking for IPSW files that I could manually feed to iTunes and I found a thread on apple's forums with download links for appropriate firmwares for all three iPhone versions: