Skip to content

Instantly share code, notes, and snippets.

View robcee's full-sized avatar
🌶️
one million scovilles

Rob Campbell robcee

🌶️
one million scovilles
View GitHub Profile
@robcee
robcee / .mozconfig-osx-10.6
Created March 25, 2011 18:53
Mac .mozconfig file
# This file specifies the build flags for Firefox. You can use it by adding:
# . $topsrcdir/browser/config/mozconfig
# to the top of your mozconfig file.
# export MOZ_DEBUG_SYMBOLS=1
export CFLAGS="-gdwarf-2"
export CXXFLAGS="-gdwarf-2"
ac_add_options --enable-application=browser
ac_add_options --enable-optimize
#!/bin/bash
# $Author: Mihai Sucan <[email protected]>$
# $Date: 2011-05-02 21:10:35 $
# usage:
# moztests -hud
# runs the HUDService tests
# moztests -ws
# runs the Workspace tests
@robcee
robcee / webconsole-position-probe.patch
Created July 12, 2011 17:18
webconsole-position-probe
diff --git a/toolkit/components/telemetry/TelemetryPing.js b/toolkit/components/telemetry/TelemetryPing.js
--- a/toolkit/components/telemetry/TelemetryPing.js
+++ b/toolkit/components/telemetry/TelemetryPing.js
@@ -138,16 +138,17 @@ function getMetadata(reason) {
let ret = {
reason: reason,
OS: ai.OS,
appID: ai.ID,
appVersion: ai.version,
appName: ai.name,
@robcee
robcee / tilt.prettified.js
Created September 9, 2011 15:59
Tilt reprettified
'use strict';
var f = void 0,
k = null;
function aa() {
return function() {}
}
function ca(a) {
return function(b) {
this[a] = b
}
@robcee
robcee / gist:2437511
Created April 21, 2012 14:51
Sample BrowserID + Nginx + Proxy setup (can work for node, django, flask, etc)
upstream gunicorn_frontends {
# We define the binding of the gunicorn web server
server 127.0.0.1:8000;
}
# we need to redirect www since browserid thinks www and non-www are different
server {
listen 80;
server_name www.yourdomain.com;
rewrite ^ http://yourdomain.com$uri permanent;
@robcee
robcee / VMSetupExample.md
Last active December 17, 2015 23:19
Setting up SSH, Firewall, etc on a VM

VM Setup Instructions

Log in to your machine

ssh 111.111.111.111 -l root

Add wheel group

sudo /usr/sbin/groupadd wheel

@robcee
robcee / .hgrc
Created April 27, 2012 16:04
.hgrc
[defaults]
diff = -p -U 8
qdiff = -p -U 8
qnew = -U
qseries = -s
[paths]
fx-team = ssh://hg.mozilla.org/integration/fx-team/
mozilla-central = ssh://hg.mozilla.org/mozilla-central/
m-c = ssh://hg.mozilla.org/mozilla-central/
@robcee
robcee / .mozconfig
Created April 27, 2012 16:19
.mozconfig
# This file specifies the build flags for Firefox. You can use it by adding:
# . $topsrcdir/browser/config/mozconfig
# to the top of your mozconfig file.
mk_add_options AUTOCONF=/usr/local/Cellar/autoconf213/2.13/bin/autoconf213
mk_add_options MOZ_MAKE_FLAGS="-s -j4"
ac_add_options --enable-application=browser
ac_add_options --enable-optimize
#ac_add_options --enable-debug
@robcee
robcee / quotes
Created May 28, 2012 13:36 — forked from paulrouget/quotes
What robcee says
<robcee> where's my hat?,
-------
<robcee> u r teh smartest,
-------
<robcee> I WILL TAKE THIS BULLET FOR YOU,
-------
* robcee swears violently
* robcee continues swearing,
-------
<robcee> hey everybody, forget email. Let's all go skiing. (toboggans also acceptable),
@robcee
robcee / getChannelList.js
Created May 29, 2012 16:07
getChannelList
exports.getChannelList = function(client, io, callback) {
client.keys('channels:*', function(err, channels) {
try {
var channelList = [];
var counter = 0;
function getFunc(errChannel, channel) {
var channelHash = {
name: channel,
userCount: io.sockets.clients(channel).length