Skip to content

Instantly share code, notes, and snippets.

require 'rest-client'
require 'csv'
require 'json'
# Have you ever accidentally changed a property for a large group of contacts via an import or workflow?
# This script allows you to take that list of contacts and revert the affected property to its most recent previous value.
# When finished, you'll have a CSV file with the previous values for each of the contacts in your list. Simply import that
# list into HubSpot and your property values will be reverted.
path = './contacts-to-revert.csv'
function getParameterByName(name)
{
name = name.replace(/[\[]/, "\\\[").replace(/[\]]/, "\\\]");
var regexS = "[\\?&]" + name + "=([^&#]*)";
var regex = new RegExp(regexS);
var results = regex.exec(window.location.search);
if(results == null)
return "";
else
return decodeURIComponent(results[1].replace(/\+/g, " "));

Client Management

  • ???

Proposals

  • Bidsketch
  • Proposable

Invoicing

Client Management

  • ???

Proposals

  • Bidsketch
  • Proposable

Invoicing

@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;
@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 / 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 / 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 / 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 / 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