Skip to content

Instantly share code, notes, and snippets.

View squidsoup's full-sized avatar
🐾

Kit Randel squidsoup

🐾
View GitHub Profile
# Rakefile for .Net projects using MSBuild and nUnit
require 'rake/clean'
DOT_NET_PATH = "#{ENV["SystemRoot"]}/Microsoft.NET/Framework/v3.5/"
SOLUTION = "src/SOLUTION_NAME.sln"
CONFIG = "Debug"
NUNIT_EXE = "vendor/tools/nunit-console-x86.exe"
OUTPUT_PATH = "build/"
colModel: [
{ name: 'Buyer', index: 'Buyer', width: 100, align: 'left', editable: 'true', edittype: 'text', editoptions: { size: 20, maxlength: 30} },
]
C:/Ruby/lib/ruby/gems/1.8/gems/shotgun-0.8/bin/shotgun:142:in `trap': unsupported signal SIGQUIT (ArgumentError)
from C:/Ruby/lib/ruby/gems/1.8/gems/shotgun-0.8/bin/shotgun:142
from C:/Ruby/lib/ruby/gems/1.8/gems/shotgun-0.8/bin/shotgun:141:in `each'
from C:/Ruby/lib/ruby/gems/1.8/gems/shotgun-0.8/bin/shotgun:141
from C:/Ruby/bin/shotgun:19:in `load'
from C:/Ruby/bin/shotgun:19
@squidsoup
squidsoup / gist:468694
Created July 8, 2010 21:46
flot and excanvas issue
//jquery.flot:
canvas = $('<canvas width="' + canvasWidth + '" height="' + canvasHeight + '"></canvas>').appendTo(target).get(0);
if ($.browser.msie) {
// excanvas hack
canvas = window.G_vmlCanvasManager.initElement(canvas);
}
ctx = canvas.getContext("2d");
//IE6 needs the canvas element initialised like this instead
from django.test import TestCase
from django.test.simple import build_test, reorder_suite, build_suite
from django.test.utils import setup_test_environment, teardown_test_environment
from django.db.models import get_app, get_apps
from django.conf import settings
import unittest
def run_tests(test_labels, verbosity=1, interactive=True, extra_tests=[]):
"""
works exactly as per normal test, but without db creation or destruction
@squidsoup
squidsoup / creating-edgerails-app.sh
Created November 26, 2012 09:19 — forked from peter/creating-edgerails-app.sh
Creating and Deploying an EdgeRails (Rails 4) Application to Heroku
# 0. Make sure you have Ruby 1.9.3 installed, and optionally RVM and PostgreSQL
# 0.2 If you are on the Mac, make sure you have a c compiler by installing XCode Command Line Tools or gcc4.2 with homebrew
# https://github.com/mxcl/homebrew/wiki/Custom-GCC-and-cross-compilers
# 0.5 Make sure you have bundler version ~> 1.2 as Rails depends on it
gem install bundler
# 1. Get edge Rails source (master branch)
git clone https://github.com/rails/rails.git
(ns syme.db
(:require [clojure.java.jdbc :as sql]
[environ.core :as env]
[tentacles.repos :as repos])
(:import (java.util UUID))
(:refer-clojure :exclude [find]))
(def db (env/env :database-url "postgres://localhost:5432/syme"))
;; snip
@squidsoup
squidsoup / gist:8449333
Created January 16, 2014 03:30
OS X setup script
#!/bin/sh
# Disable Gatekeeper
/usr/sbin/spctl --master-disable
# Grant full Remote Management privs to itadmin
/System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -activate -configure -access -on -users itadmin -privs -all -restart -agent -menu
# Grant ssh access to itadmin
/usr/sbin/systemsetup -setremotelogin On
(defun esk-pretty-lambdas () │
(font-lock-add-keywords │
nil `(("(?\\(lambda\\>\\)" │
(0 (progn (compose-region (match-beginning 1) (match-end 1) │
,(make-char 'greek-iso8859-7 107)) │
nil))))))
(add-hook 'prog-mode-hook 'esk-pretty-lambdas)

Keybase proof

I hereby claim:

  • I am squidsoup on github.
  • I am blr (https://keybase.io/blr) on keybase.
  • I have a public key ASChOggjuTs1ZfEMGUHxZnl0oWNjLMAFauKDJiGtVj9ZWQo

To claim this, I am signing this object: