This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<VirtualHost *:80> | |
ServerAdmin [email protected] | |
ServerName ssl.diggersndealers.com.au | |
RewriteEngine on | |
RewriteCond %{SERVER_PORT} ^80$ | |
RewriteRule ^(.*)$ https://%{SERVER_NAME}$1 [L,R] | |
DocumentRoot /var/vhosts/ssl.diggersndealers.com.au/current/public | |
ErrorLog /var/log/apache2/ssl.diggersndealers.com.au-error.log | |
CustomLog /var/log/apache2/ssl.diggersndealers.com.au-access.log combined |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rails_version() { | |
which -s rails && rails -v 2>/dev/null | sed 's/Rails //' | |
} | |
r() { | |
local name="$1" | |
shift | |
if [[ -z "$name" ]]; then | |
echo "Usage: $0 command *args" >&2 | |
return 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name darken done | |
// @namespace http://fluidapp.com | |
// @description improve teuxdeux appearance | |
// @include * | |
// @author Tony Issakov | |
// ==/UserScript== | |
(function () { | |
css = $("<style>li.done{color:#555;}</style>"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// fire a callback after enough keys have been passed to a generated function | |
var dependencySet = function(conditionKeys, callback){ | |
// convert a list of keys to trackable hash | |
var conditionSet = {} | |
for(var x=0;x<conditionKeys.length;x++){ | |
conditionSet[conditionKeys[x]] = false; | |
} | |
// return a function that will wait till it's | |
// been called with all keys and then fire the callback |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function(){ | |
var window,top,self,parent,global; | |
// grab the window object when evalled in the context of | |
// a top level object. | |
return eval("window",Array) | |
}).call({}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function(){ | |
var window,top,self,parent,global; | |
return document.defaultView | |
}).call({}); |
NewerOlder