Skip to content

Instantly share code, notes, and snippets.

View mattman's full-sized avatar

Matt Didcoe mattman

View GitHub Profile
defaults write com.iconfactory.Twitterrific tweetTextFilter -string "[Oo][l][y][m][p][i][c]|[0][8][0][8][0][8]|[#][0][8][0][8][0][8]"
require 'rubygems'
require 'rbosa'
finder = OSA.app("Finder")
finder.desktop_background = "path to file"
#header h2#logo a {
display: block;
width: 159px;
height: 38px;
background-image: url('/images/logo.png');
background-image: url('http://images.foobar.com/images/logo.png');
background-repeat: no-repeat; }
email: your_address@yourgoogleappsdomain.com
server: m.google.com
domain: leave blank
username: email again
password: your password
description: whatever
Use SSL: on
Processing PagesController#index (for 127.0.0.1 at 2009-03-17 14:30:57) [GET]
Session ID: BAh7CDoMdXNlcl9pZGkLOg5yZXR1cm5fdG8iBi8iCmZsYXNoSUM6J0FjdGlv
bkNvbnRyb2xsZXI6OkZsYXNoOjpGbGFzaEhhc2h7AAY6CkB1c2VkewA=--ac44a6c055a4024a4ab5195bd8ba385c58132a9d
Parameters: {"action"=>"index", "controller"=>"pages"}
User Columns (0.004919) SHOW FIELDS FROM `users`
Trainer Columns (0.004346) SHOW FIELDS FROM `users`
Trainer Load (0.000519) SELECT * FROM `users` WHERE (subdomain = 'mattsfattybusters') AND ( (`users`.`type` = 'Trainer' ) ) LIMIT 1
User Load (0.000340) SELECT * FROM `users` WHERE (`users`.`id` = 6) LIMIT 1
Client Columns (0.004517) SHOW FIELDS FROM `users`
Trainer Load (0.000436) SELECT * FROM `users` WHERE (`users`.`id` = 2) AND ( (`users`.`type` = 'Trainer' ) )
@mattman
mattman / gist:87080
Created March 28, 2009 10:33
daylight saving crossover fail
>> Chronic.parse("noon")..Chronic.parse("noon tomorrow")
=> Sat Mar 28 12:00:00 0900 2009..Sun Mar 29 11:00:00 0800 2009
>> Chronic.parse("noon")..Chronic.parse("one oclock tomorrow")
=> Sat Mar 28 12:00:00 0900 2009..Sun Mar 29 12:00:00 0800 2009
@mattman
mattman / gist:87359
Created March 29, 2009 11:21
.bashrc
# -----------
# General
# -----------
alias ..='cd ..'
alias ll='ls -lh'
alias la='ls -la'
alias ps='ps -ax'
alias du='du -hc'
alias cd..='cd ..'
alias today='date +"%A, %B %d, %Y"'
#!/bin/sh
# cd into matching gem directory ("cd -" friendly)
cdgem() {
local gempath=$(gem env gemdir)/gems
if [[ $1 == "" ]]; then
cd $gempath
return
fi
/**
* Write a description of class TextAnalyser here.
*
* @author Matt Didcoe
* @version 0.1
*/
import java.lang.*;
import java.util.*;
public class TextAnalyser {
class LegacyBase < ActiveRecord::Base
establish_connection(
:adapter => "mysql",
:host => "localhost",
:username => "",
:password => "",
:database => "ws_prosecutions"
)
end