Skip to content

Instantly share code, notes, and snippets.

View schlick's full-sized avatar

Michael MacDonald schlick

View GitHub Profile
@warnergodfrey
warnergodfrey / gist:7512051
Last active September 21, 2018 03:20
Access the ATO Business Portal using AusKey Mac OS X Mountain Lion
  • Install the latest JRE from Oracle
  • In the Java Control Panel, go to the Security tab and make sure 'Enable Java Content' is checked
  • Open Safari
  • Go to the ATO Business portal site https://bp.ato.gov.au/BpStatics/homepage.htm
  • Click Login
  • A dialog will apear asking you 'Do you want to trust the website “authentication.business.gov.au” to use the “Java” plug-in?'
  • Click 'Trust'
  • Now you will be asked 'Do you want to run this application?'
  • Click 'Run'
  • Another dialog will appear asking you to 'Allow access to the following application from this website?'
require './plugins/babushka_provisioner'
Vagrant::Config.run do |config|
config.vm.box = "precise64"
config.vm.box_url = 'http://files.vagrantup.com/precise64.box'
config.vm.provision BabushkaProvisioner do |babs|
babs.dep 'benhoskings:ruby.src', :version => '1.9.3', :patchlevel => 'p327'
end
@schlick
schlick / best_model.rb
Last active September 30, 2015 01:57 — forked from ltw/best_model.rb
Order of a standard Model
class Model < ParentModel
include Foo::Bar
extend Bar::Baz
acts_as_authentic
dsl_specific_flags
module InternalModule
...
end
@stigkj
stigkj / git-fix-author
Created December 9, 2011 11:13 — forked from leif81/git_fix_author
Written to change the unix name used for a cvs commit to a pretty git name for the user.Implementation borrowed from http://lists.freedesktop.org/archives/portland/2010-October.txtauthor-conv-file format (same format as git-cvsimport requires):
#!/bin/bash
#
# Changes author and committer name and email throughout the whole repository.
# Uses a file with the following format:
#
# john.doe@hotmail.com=John Doe <john.doe@hotmail.com>
# jill.doe@hotmail.com=Jill Doe <jill.doe@hotmail.com>
#
if [ ! -e "$1" ]
@lucasfais
lucasfais / gist:1207002
Created September 9, 2011 18:46
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt
module Resque
class Task
attr_accessor :parent, :args
attr_accessor :queue, :failed_at, :payload, :exception, :error, :backtrace, :worker
def initialize(options={})
options['parent'] = options.delete('class')
options.each do |opt, val|
self.send("#{opt}=", val)
end
@jlindley
jlindley / config.ru
Created April 18, 2011 17:03
Rails 2.3.x config.ru (to allow using http://pow.cx/ )
require "./config/environment"
use Rails::Rack::LogTailer
use Rails::Rack::Static
run ActionController::Dispatcher.new
<ul>
<% User.all.with_item_counts do |user| %>
<li><%= user.username %> - Items: <%= user.calculated_item_count %>
<% end %>
</ul>
@ltw
ltw / best_model.rb
Created February 21, 2011 01:29
Order of a standard Model
class Model < ParentModel
include Foo::Bar
extend Bar::Baz
acts_as_authentic
dsl_specific_flags
module InternalModule
...
end
@pat
pat / And here's how.textile
Created October 19, 2010 03:12
Access Level Highlighting

Access Level Highlighting

You’ll want to put these files in ~/Library/Application Support/TextMate/Themes – they will override the built-in versions of each. There’s almost no difference – just the access level matcher. From there, restart TextMate, and you should have a new element listing in the Fonts & Colors tab in your TextMate preferences.

Next, you want to add the actual syntax definition – open up the Bundle Editor in TextMate, and then the Ruby Language definition within that. Search for “variable.language.ruby” – and then add the following below that:

{
  name = 'access-level.ruby';
  comment = ' public, private, protected';
  match = '^[ ]*\b(private|protected|public)\b(?![?!])\n';