Skip to content

Instantly share code, notes, and snippets.

@rsobers
rsobers / elapsed.js
Created August 16, 2011 17:34
BugMonkey script to warn user to update elapsed time when saving a case
var sWarning = "The elapsed time has not been updated for "
+ "this case!\n\n"
+ "Do you want to save anyway?";
var fHasEstimate = ((goBug.hrsOrigEst + goBug.hrsCurrEst) > 0);
if (!fHasEstimate) return;
if (!window.clickBugSubmit) return;
window.clickBugSubmit = (function(fnOrig) {
@rsobers
rsobers / jordan.js
Created August 23, 2011 15:21
Estimate and Elapsed Warning
name: Estimate and Elapsed Warning
description: Warn user to enter estimated and elapsed time
author: Rob Sobers
version: 1.0.0.0
js:
if (!window.clickBugSubmit) return;
window.clickBugSubmit = (function(fnOrig) {
return function(e, elForm, fXMLSubmit, sValue, bOK) {
if(bOK) {
@rsobers
rsobers / destroymono.sh
Created September 6, 2011 18:36
Bash script to forcefully kill stray Mod_Mono processes on FogBugz server
#!/bin/sh
# if there is more than one mod-mono-server2, we need to get aggressive
if [ `ps -fu fogbugz | grep mod-mono-server2 | wc -l` -gt 1 ]; then
# try to stop things gracefully
/etc/init.d/fogbugzctl stop
sleep 1
echo "Killing all stray processes owned by fogbugz"
until [ `ps -fu fogbugz | grep fogbugz | wc -l` = 0 ]; do
pkill -u fogbugz
@rsobers
rsobers / css-sticky.html
Created January 8, 2012 17:03
css sticky notes markup
<link href='http://fonts.googleapis.com/css?family=Reenie+Beanie&amp;subset=latin' rel='stylesheet' type='text/css'>
<ul id="notes">
<li>
<p>Push new feature to Kiln for code review</p>
</li>
<li class="kiln">
<p>Browse hacker news for a bit</p>
</li>
<li>
<p>Read JavaScript: The Good Parts by Douglas Crockford</p>
@rsobers
rsobers / tumblr-gists.js
Created January 8, 2012 17:20
tumblr gists
var gistPrefix = 'https://gist.github.com/',
// Cache document.write so that it can be restored once all Gists have been
// embedded.
cachedWrite = document.write,
body = $('body'),
// Map each p.gist to an object that contains the paragraph to be replaced
// and the Gist's identifier.
gists = $('p.gist').map(function(n, p) {
p = $(p);
@rsobers
rsobers / tumblr-gists-min.js
Created January 8, 2012 17:21
tumblr gists minified
var z="https://gist.github.com/",y=document.write,x=$("body"),w=$("p.gist").map(function(b,a){a=$(a);var c=$("a",a),u=c.attr("href");if(c.length&&u.indexOf(z)==0)return{p:a,id:u.substring(z.length)}}).get(),v=function(){if(w.length==0)document.write=y;else{var b=w.shift();document.write=function(){document.write=function(a){b.p.replaceWith(a);v()}};x.append('<scr'+'ipt src="'+z+b.id+'.js"></scr'+'ipt>')}};v();
@rsobers
rsobers / gist-embed.css
Created January 8, 2012 17:58
tumbr gists stylesheet
.gist {
color: #000;
}
.gist div {
padding: 0;
margin: 0;
}
.gist .gist-file {
@rsobers
rsobers / css-sticky.css
Created January 8, 2012 18:06
css sticky notes styles
body {
background: #B2CCCC;
}
#notes li {
position: relative;
width: 300px;
min-height: 100px;
margin: 25px auto;
padding: 60px 15px 15px 15px;

Client Management

  • ???

Proposals

  • Bidsketch
  • Proposable

Invoicing

Client Management

  • ???

Proposals

  • Bidsketch
  • Proposable

Invoicing