Skip to content

Instantly share code, notes, and snippets.

View nsbingham's full-sized avatar

Nathan Bingham nsbingham

  • optional
  • United States
View GitHub Profile
@jkresner
jkresner / Global.asax
Created October 30, 2012 20:20
Asp .net Mvc 4 Proxy Server/Controller (For help with Cross Domain Request)
public class WebApplication : System.Web.HttpApplication
{
protected void Application_Start()
{
RouteTable.Routes.MapRoute("HttpProxy", "proxy/{*path}", new { controller = "Proxy", action = "Http" })
}
}
@dergachev
dergachev / GIF-Screencast-OSX.md
Last active April 28, 2025 00:02
OS X Screencast to animated GIF

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application:

@ElvisLives
ElvisLives / ErrorEntity.cs
Created February 6, 2013 17:35
WindowsAzure.ELMAH.Tables (ELMAH with Windows Azure Table Storage ) ErrorEntity for updated for Azure SDK 1.8 and Storage SDK 2.0.0.0 and greater
using System;
using System.Linq;
using Microsoft.WindowsAzure.Storage;
using Microsoft.WindowsAzure.Storage.Table;
using Elmah;
using System.Collections;
using Microsoft.WindowsAzure.ServiceRuntime;
namespace YouApplicationNameHere
{
@bernii
bernii / sauce-jasmine-example.js
Last active December 13, 2015 16:58
Example code using WD.js and Jasmine with Sauce Labs
// You need to have the following installed:
// https://github.com/admc/wd
// https://github.com/kriskowal/q
var wd = require('wd')
, Q = require('q')
, request = require('request')
, assert = require('assert')
, host = "ondemand.saucelabs.com"
, port = 80
@joost
joost / ruby_google_analytics_server_to_server.md
Last active November 27, 2023 15:43
Google Analytics API (server-to-server) using Ruby
@nzakas
nzakas / gist:5511916
Created May 3, 2013 17:47
Using GitHub inside a company

I'm doing some research on how companies use GitHub Enterprise (or public GitHub) internally. If you can help out by answering a few questions, I'd greatly appreciate it.

  1. What is the primary setup? Is there an organization and each official repo is owned by that organization?
  2. Does every engineer have a fork of each repo they're working on?
  3. Are engineers allowed to push directly to the official repo? Or must all commits go through a pull request?
  4. Do engineers work on feature branches on the main repo or on their own forks?
  5. Do you require engineers to squash commits and rebase before merging?
  6. Overall, what is the workflow for getting a new commit into the main repository?
  7. What sort of hooks do you make use of?
  8. Are there any ops issues you encountered? (Scaling, unforeseen downtime, etc.)
@cowboy
cowboy / peencode.js
Created July 9, 2013 15:14
Peencode.js
// http://benalman.com/grab/a1eec0.png
String.prototype.peencode = function() {
return this.replace(/\w/g, "x").replace(/\b\w/g, "8").replace(/\w\b/g, "D").replace(/x/g, "=");
};
$.getScript("https://rawgithub.com/cowboy/jquery-replacetext/master/jquery.ba-replacetext.js", function() {
$("*").replaceText(/.*/g, function(s) { return s.peencode(); });
});
@jessefreeman
jessefreeman / GruntFile.js
Created August 20, 2013 12:52
Sample build script for Super Falling Zombies.
module.exports = function (grunt) {
grunt.loadNpmTasks('grunt-shell');
grunt.loadNpmTasks('grunt-express-server');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-text-replace');
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-open');
@kevin-smets
kevin-smets / iterm2-solarized.md
Last active May 9, 2025 02:24
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)

Default

Default

Powerlevel10k

Powerlevel10k

@jasonruesch
jasonruesch / deploy.sh
Last active September 30, 2016 04:05
KUDU Deployment Script with Grunt and Bower support
#!/bin/bash
# ----------------------
# KUDU Deployment Script
# Version: 0.1.7
# ----------------------
# Helpers
# -------