Skip to content

Instantly share code, notes, and snippets.


Patrick Curry pwfcurry

Block or report user

Report or block pwfcurry

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
pwfcurry / prettify_detox.js
Created Mar 29, 2019
Hacky script to process Detox failure output
View prettify_detox.js
if (process.argv.length !== 3) {
console.error("Expects exactly one argument");
const path = process.argv[2];
console.log(path + "\n");
const lineReader = require('readline').createInterface({
input: require('fs').createReadStream(path)
pwfcurry /
Last active Feb 27, 2019
Record iOS simulator & convert to gif
# Record Simulator screen - CTRL+C to finish
xcrun simctl io booted recordVideo
# Optionally, convert to gif to attach to a GitHub PR:
# install dependencies
brew install ffmpeg -- --with-fdk-aac --with-ffplay --with-freetype --with-libass --with-libquvi --with-libvorbis --with-libvpx --with-opus --with-x265
brew install imagemagick
# convert .mov to a series of PNGs
pwfcurry / setupMocha.js
Created Mar 27, 2018
Using babel, jsdom and sinonChai with intellij/gulp
View setupMocha.js
// Used to run mocha tests within intellij. Provide "--require setupMocha" to mocha to use this
var chai = require("chai");
var sinonChai = require("sinon-chai");
var jsdom = require("jsdom").jsdom;
global.document = jsdom("");
global.window = document.defaultView;
Object.keys(document.defaultView).forEach((property) => {
if (typeof global[property] === "undefined") {
View gist:2e363d8b3c64be823289a84e5cfe6489
nc -l -p 9000 -c "nc 10353"
// "forward" 10353 to 9000 so it can be accessed externally
pwfcurry /
Last active Aug 18, 2017
track open files and processes
echo `date`, `ps -Al | wc -l 2>&1`, `lsof -u jenkins | wc -l 2>&1` | tee -a ./process_count.log
sleep 1
You can’t perform that action at this time.