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 / 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 / _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 / 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
Host clientconfig-github
HostName github.com
PreferredAuthentications publickey
IdentityFile ~/.ssh/clientconfig_id_rsa
@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>
@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>
<connectionStrings>
<add connectionString="Server=localhost\MSSQL;Database=UserSync;Integrated Security=true" name="DefaultConnection" providerName="System.Data.SqlClient" />
</connectionStrings>
@callumj
callumj / gist:2986422
Created June 25, 2012 04:00
Citrix conf
{WFClient: {ProxyFavorIEConnectionSetting: true, RemoveICAFile: true, VirtualCOMPortEmulation: false}, {Application: {AutologonAllowed: true}}
@callumj
callumj / ec2_hostname.rb
Created July 12, 2012 01:33
Set hostname from EC2 Tags (Name, Domain)
#!/usr/bin/env ruby
require 'net/http'
require 'open-uri'
require 'uri'
require 'base64'
require 'openssl'
require 'cgi'
def query_aws(host, path, action, params = {}, method = "GET")
@callumj
callumj / .my53.yml
Created July 24, 2012 14:39
Set Route 53 record from local IP
options:
only_if: "192[.]168[.]4[.].*"
base:
host: callum
domain: office.example.net
aws:
resource_id: SSS2222222
access_key_id: SSSSSS44444444
secret_access_key: "DSFKJNDS+++SSSSS2222222SDDS"