Skip to content

Instantly share code, notes, and snippets.

<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
@tissak
tissak / gist:841687
Created February 24, 2011 03:10
Sutto's global rails 2 & 3 starter scripts
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
@tissak
tissak / TeuxDeuxMods.js
Created November 29, 2010 06:38
Darken done items and shuffle them down on complete
// ==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>");
// 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
(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({});
(function(){
var window,top,self,parent,global;
return document.defaultView
}).call({});