Skip to content

Instantly share code, notes, and snippets.

View jrburke's full-sized avatar

James Burke jrburke

View GitHub Profile
@jrburke
jrburke / dmseg.txt
Created August 22, 2013 19:25
hamachi wifi issue
<6>[ 0.000000] Booting Linux on physical CPU 0
<6>[ 0.000000] Initializing cgroup subsys cpu
<5>[ 0.000000] Linux version 3.0.21-perf-ga969f85-00004-gda485a1 (android-bld@aclgcl-ubnt72) (gcc version 4.4.3 (GCC) ) #1 SMP PREEMPT Thu Jun 27 22:09:07 CST 2013
<4>[ 0.000000] CPU: ARMv7 Processor [410fc051] revision 1 (ARMv7), cr=10c5387d
<4>[ 0.000000] CPU: VIPT nonaliasing data cache, VIPT aliasing instruction cache
<4>[ 0.000000] Machine: QCT MSM7x27a FFA
<6>[ 0.000000] Partition (from atag) boot -- Offset:28f Size:30
<6>[ 0.000000] Partition (from atag) system -- Offset:2bf Size:640
<6>[ 0.000000] Partition (from atag) cache -- Offset:8ff Size:140
<6>[ 0.000000] Partition (from atag) misc -- Offset:a3f Size:20
@jrburke
jrburke / gaia-clean-pull
Last active February 11, 2024 23:19
Gaia shortcuts for UX people working with developers
#!/bin/bash
# Example gaia-clean-pull 10962
PULLID=$1
if [ -z "$1" ]
then
echo "Usage: gaia-clean-pull PULL-REQUEST-ID"
exit 1
@jrburke
jrburke / gist:5550075
Created May 9, 2013 19:51
quick json loader plugin
define({
load: function (id, require, onload, config) {
if (config.isBuild) {
return onload();
}
var xhr = new XMLHttpRequest();
xhr.open('GET', id + '?bust=' + Date.now(), true);
xhr.send(null);
xhr.onreadystatechange = function (evt) {
@jrburke
jrburke / gist:5303319
Last active February 11, 2024 23:19
config calls to run tests.
//in test1.js
define({
paths: {},
deps: ['test/_', 'test/$', 'dep1', 'dep2'],
callback: function (_, $, dep1, dep2) {
//test dep1 and dep2 in here
}
});
//in test2.js
diff --git a/apps/email/js/ext/mailapi/activesync/configurator.js b/apps/email/js/ext/mailapi/activesync/configurator.js
index 38d7a5a..69fe6cb 100644
--- a/apps/email/js/ext/mailapi/activesync/configurator.js
+++ b/apps/email/js/ext/mailapi/activesync/configurator.js
@@ -2931,8 +2931,12 @@ ActiveSyncAccount.prototype = {
});
}
else { // ActiveSync 12.x and lower
+ var encoder = new TextEncoder('UTF-8');
+
@jrburke
jrburke / gist:5215284
Created March 21, 2013 18:11
gelam test run
[~/git/gaia-email-libs-and-more-jrburke(onlinedelay)]$ make clean
rm -rf data/deps
rm -rf node-transformed-deps
[~/git/gaia-email-libs-and-more-jrburke(onlinedelay)]$ make all-tests
mkdir -p node-transformed-deps
rsync -avL node-deps/addressparser node-transformed-deps
building file list ... done
addressparser/
addressparser/.git
addressparser/.gitignore
@jrburke
jrburke / gist:4949790
Last active December 13, 2015 17:39
Gaia email layer split
/*
Generated with a build that does:
main:
include: ["almond", "event-queue", "mailapi/same-frame-setup"]
account:
exclude: ['event-queue', 'mailapi/same-frame-setup']
include: ['mailapi/activesync/account']
// Filename: src/js/collections/store/ArticlesCollection.js
define([
'require',
'underscore',
'backbone',
'models/store/ArticleModel'
], function (require, _, Backbone, ArticleModel) {
var ArticlesCollection = Backbone.Collection.extend({
model: function () {
@jrburke
jrburke / DefaultRouter.js
Created November 21, 2012 19:40
wiring backbone views
//Store this file at CarePassMe/Controllers/DefaultRouter.js
define(['backbone', '../Collections/Course', '../Views/CourseList', '../Collections/Page', '../Views/Pages'],
function (Backbone, Course, CourseList, Page, Pages) {
//The default router for the application.
//If you wanted to keep the globals for use outside of requirejs modules,
//note the assignment as part of the return. Otherwise, if the globals
are not needed just return Backbone.Router.extend()...
@jrburke
jrburke / volofile
Created November 15, 2012 18:56
volofile doing git submodule work on volo create
module.exports = {
onCreate: {
run: [
'git submodule init',
'git submodule update'
]
}
};