Skip to content

Instantly share code, notes, and snippets.

View edwindotcom's full-sized avatar
:octocat:
hubba hubba

Edwin Wong edwindotcom

:octocat:
hubba hubba
  • Alameda, CA
View GitHub Profile
@ciiqr
ciiqr / dispatch.sh
Last active October 9, 2024 14:38
github actions, repository_dispatch with client_payload
# TODO: replace :token, :user, and :repo
curl -H "Authorization: token :token" \
-H 'Accept: application/vnd.github.everest-preview+json' \
"https://api.github.com/repos/:user/:repo/dispatches" \
-d '{"event_type": "awesomeness", "client_payload": {"foo": "bar"}}'
@jrgm
jrgm / start-ff.sh
Created February 11, 2013 21:50
start Firefox with disposable profiles on osx
#!/bin/sh
# start Firefox with disposable profiles on osx
# usage: start-ff.sh profilename Firefox.app
# start-ff.sh profilename Aurora.app
# start-ff.sh profilename Nightly.app
PROFILE_NAME=abcabdab-sync1
if [ ! -z "$1" ]; then
PROFILE_NAME=$1
@jrgm
jrgm / gist:4490664
Last active December 10, 2015 20:48
Stupid hack to track response times with b2g requests when NSPR_LOG_MODULES is enabled in this way.
use strict;
$| = 1;
# Stupid hack to track response times with b2g requests.
# You need to set 'export NSPR_LOG_MODULES=timestamp,cookie:5,nsSocketTransport:5,nsHttp:5'
# in /system/bin/b2g.sh. See https://gist.github.com/4490638 (but probably will
# want to remove the busybox section, installed from /home/jrgm ;-) ).
#
# usage: `adb logcat | tee /tmp/raw.txt | perl thisfile.pl`