Skip to content

Instantly share code, notes, and snippets.

View callumj's full-sized avatar
🙌
writing code

Callum Jones callumj

🙌
writing code
View GitHub Profile
@callumj
callumj / gist:2986422
Created June 25, 2012 04:00
Citrix conf
{WFClient: {ProxyFavorIEConnectionSetting: true, RemoveICAFile: true, VirtualCOMPortEmulation: false}, {Application: {AutologonAllowed: true}}
<connectionStrings>
<add connectionString="Server=localhost\MSSQL;Database=UserSync;Integrated Security=true" name="DefaultConnection" providerName="System.Data.SqlClient" />
</connectionStrings>
@callumj
callumj / org.memcached.plist
Created June 1, 2012 01:30
Memcached OS X startup plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>org.memcached</string>
<key>RunAtLoad</key>
<true/>
<key>ProgramArguments</key>
<array>
@callumj
callumj / org.mongodb.plist
Created June 1, 2012 01:27
MongoDB OS X startup plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>org.mongodb</string>
<key>RunAtLoad</key>
<true/>
<key>ProgramArguments</key>
<array>
Host clientconfig-github
HostName github.com
PreferredAuthentications publickey
IdentityFile ~/.ssh/clientconfig_id_rsa
@callumj
callumj / gist:2337480
Created April 8, 2012 14:05
Tumblr theme
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!--
. .o8 oooo
.o8 "888 `888
.o888oo oooo oooo ooo. .oo. .oo. 888oooo. 888 oooo d8b
888 `888 `888 `888P"Y88bP"Y88b d88' `88b 888 `888""8P
888 888 888 888 888 888 888 888 888 888
888 . 888 888 888 888 888 888 888 888 888 .o.
"888" `V88V"V8P' o888o o888o o888o `Y8bod8P' o888o d888b Y8P
@callumj
callumj / _view.haml
Created February 24, 2012 03:06
Benchmark HAML templates
-RubyProf.start
### SO MUCH HAML CODE ###
-result = RubyProf.stop
-printer = RubyProf::GraphHtmlPrinter.new(result)
-File.open "#{Rails.root}/tmp/view-#{Random.rand(11)}-#{Time.now.to_i}.html", 'w' do |file|
-printer.print(file)
@callumj
callumj / 2010.markdown
Created November 11, 2011 10:12
Software Req Proj mgmt answers

[2010 q1] Give three reasons why it is difficult to build software systems that meet client requirements and are delivered on-time and on-budget?

  • People don't know what they want: The client requirement goalposts could shift as the client changes their mind upon seeing particular functionality.

  • Resource can be unreliable: Whether it be people, tools or hardware you can't predict the future. If you loose a team member you need to spend not only the time recruiting a new person but also them familiarising themselves with the product.

  • Bad estimators. Unless we have some historical data to estimate the amount of work required for functionality X, we need to use a model to estimate our required work. The model may be unable to predict issues during integration.

[2010 q4] Briefly explain a way in which a project cost estimate may be biased (that is, consistently underestimating the amount of effort involved).

@callumj
callumj / gist:1357657
Created November 11, 2011 10:04
Test

Test

@callumj
callumj / uwa_pc.rb
Created November 5, 2011 16:36
UWA PC availability
require 'net/http'
require 'json'
require 'sqlite3'
DB_LOC = "#{File.dirname(__FILE__)}/data.db"
URL_PARSE = "http://www.is.uwa.edu.au/site_elements/labstats-remote.json/_nocache"
SUCCESS_SLEEP = 30 # 30 min
FAIL_SLEEP = 1 # 1 min