Skip to content

Instantly share code, notes, and snippets.

require 'rest-client'
require 'json'
apikey = 'YOUR-API-KEY'
token = 'YOUR-TOKEN'
board = 'YOUR-BOARD-ID' # e.g., My Tasks
list = 'YOUR-LIST-ID' # e.g., Done
output = File.open( "./output.txt", "a")
# Ensure www on all URLs.
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !^www\. [NC]
RewriteCond %{HTTP_HOST} ^([^.]+\.[a-z]{2,6})$ [NC]
RewriteRule ^(.*)$ http://www.%1/$1 [R=301,L]
@rsobers
rsobers / index.html
Created April 23, 2014 01:04
A Pen by rsobers.
<!DOCTYPE html>
<html>
<head>
<title>cliFogot - A command line builder for Windows sysadmins</title>
</head>
<body class="page-overview">
<!-- Navbar -->
<div class="navbar navbar-inverse">
@rsobers
rsobers / growth-hacker.md
Last active August 29, 2015 14:09
Growth Hacker Job @ Varonis

Growth Hacker

We're looking for a self-directed growth hacker (marketer/developer hybrid) that can come up with new ideas to scale online lead generation and execute on them single-handedly.

Requirements

  • You are an active member of the technology community. You understand what makes geeks like us tick. You blog, you attend conferences, you thrive on consuming and creating high quality content.
  • You are a terrific writer and a great storyteller. You can spot a typo or grammar mistake from a mile away; nothing gets past you before you hit publish.
  • You are a finisher. You're not easily distracted--once you set your ideas in motion you're able to consistently hit your goals without much supervision.
  • You are data-driven. Brand and buzz are important, but you always have an eye on customer lifetime value, churn, cost of customer acquisition, and other key metrics.
  • You can communicate comfortably an MBA or a UNIX hacker. You always know who you're speaking to, what they care about, and how to address
@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 / 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 / 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();