Skip to content

Instantly share code, notes, and snippets.

View lightsofapollo's full-sized avatar

James Lal lightsofapollo

View GitHub Profile
var readable = getReadableStreamSomehow();
readable.on('readable', function() {
var chunk;
while (null !== (chunk = readable.read())) {
console.log('got %d bytes of data', chunk.length);
}
});
deb http://puppetagain.pub.build.mozilla.org/data/repos/apt/ubuntu/ precise main restricted universe
deb http://puppetagain.pub.build.mozilla.org/data/repos/apt/ubuntu/ precise-security main restricted universe
deb http://puppetagain.pub.build.mozilla.org/data/repos/apt/releng/ precise main
deb http://puppetagain.pub.build.mozilla.org/data/repos/apt/puppetlabs precise dependencies main
deb http://archive.ubuntu.com/ubuntu/ precise main restricted
deb-src http://archive.ubuntu.com/ubuntu/ precise main restricted
## Major bug fix updates produced after the final release of the
## distribution.
diff --git a/main.go b/main.go
index 6ff480d..7c9b704 100644
--- a/main.go
+++ b/main.go
@@ -8,7 +8,7 @@ import (
"os"
"sync"
- stream "github.com/lightsofapollo/continuous-log-serve/writer"
+ stream "github.com/taskcluster/livelog/writer"
metadata:
name: 'Error Message Task'
description: |
There was an error creating the decision task.
owner: "{{owner}}"
source: "{{source}}"
tasks:
- taskId: '{{#as_slugid}}decision-task{{/as_slugid}}'
task:
function Parent() {}
function Child() {}
Child.prototype = Object.create(Parent.prototype);
Child.prototype.method = function() {
// ...
}
#! /bin/bash -e
times=$1
args=${@:2}
iter=0
while [ $iter -lt $times ];
do
eval $args
iter=$[$iter+1]
[
{
"exchange": "exchange/treeherder-stage/v1/job-actions",
"routingKey": "buildbot.try.retrigger",
"payload": {
"build_system_type": "buildbot",
"job_id": 11912,
"project": "try",
"version": 1,
"requester": "jlal@mozilla.com",
#! /bin/bash -ex
# This script copies the contents of the "scripts" folder into a docker
# container using tar/untar the container id must be passed.
DIRNAME=$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )
docker exec $1 mkdir -p $2
cd $DIRNAME
tar -cv * | docker exec -i $1 tar -x -C $2
only kk - 14g
{
"name": "taskcluster-npm-cache",
"version": "1.0.0",
"description": "Utilities to cache package.json + npm payloads via taskcluster.",
"main": "index.js",
"scripts": {
"test": "mocha --recursive",
"prepublish": "6to5 -s -e src --out-dir build"
},
"bin": {