Skip to content

Instantly share code, notes, and snippets.

View daluu's full-sized avatar

David Luu daluu

View GitHub Profile
@shs96c
shs96c / wpt-webdriver.md
Last active October 16, 2017 09:46
Running WPT WebDriver Tests with geckodriver

I'm assuming you're on a recent version of OS X with a blazing fast Net connection. These instructions are based on those given by @AutomatedTester

We begin by checking out and building geckodriver. Note: I've had conflicting suggestions from Mozillians about enabling artifact builds. For now, I've disabled them

hg clone https://hg.mozilla.org/mozilla-central/
cd mozilla-central
./mach bootstrap 
# Add this to enable (faster!) artifact builds
#echo "ac_add_options --enable-artifact-builds" >> .mozconfig
@rms1000watt
rms1000watt / exec-command-stdout-pipe.go
Last active October 22, 2022 12:33
Execute Command with stdout Pipe in Golang
package main
import (
"bufio"
"fmt"
"os/exec"
"errors"
"strings"
log "github.com/sirupsen/logrus"
package main
import (
"sync"
"time"
vegeta "github.com/chrismoos/vegeta/lib"
)
type PipelineStageTargeter func(tgt *vegeta.Target, previousResult *vegeta.Result) error
@ftclausen
ftclausen / Jenkinsfile
Created April 13, 2017 05:36
Jenkins pipeline - An approach to get all commits since the last successful build.
// -*- mode: groovy -*-
// vim: set filetype=groovy :
node( 'some_node' ) {
stage( "Phase 1" ) {
sshagent( credentials: [ 'some_creds' ] ) {
checkout scm
def lastSuccessfulCommit = getLastSuccessfulCommit()
def currentCommit = commitHashForBuild( currentBuild.rawBuild )
if (lastSuccessfulCommit) {
@ReanimationXP
ReanimationXP / iOS_device_types.txt
Last active August 18, 2021 11:04 — forked from adamawolf/Apple_mobile_device_types.txt
List of iOS device codes types a.k.a. machine ids (e.g. iPhone1,1) and their matching product names
i386 : iPhone Simulator 32-bit
x86_64 : iPhone Simulator 64-bit
iPhone1,1 : iPhone
iPhone1,2 : iPhone 3G
iPhone2,1 : iPhone 3GS
iPhone3,1 : iPhone 4
iPhone3,2 : iPhone 4 (GSM Rev A)
iPhone3,3 : iPhone 4 (CDMA)
iPhone4,1 : iPhone 4S
@phuang07
phuang07 / gist:a9f353a7a4a966cabc820138e12a7e33
Last active January 16, 2025 18:49
Upgrade openssl on Mac
Ref: http://stackoverflow.com/questions/15185661/update-openssl-on-os-x-with-homebrew
```
1. Make sure openssl is installed via homebrew
homebrew install openssl
2. if /usr/local/bin is not already the first item in the $PATH, modify the PATH variable
set -gx PATH /user/local/bin $PATH
3. Make symlink to the binary
@bbengfort
bbengfort / noplog.go
Created March 20, 2017 20:42
No-op logger to turn off logging in Go without too much of a performance hit.
package noplog
import "log"
var noplog = &NopLogger{
log.New(NullWriter(1), "", log.LstdFlags),
}
// NullWriter implements the io.Write interface but doesn't do anything.
type NullWriter int
@guipmourao
guipmourao / ubuntu16.04-command-line-install-android-sdk
Created March 15, 2017 12:17
Ubuntu 16.04 command line install android sdk
# create sdk folder
export ANDROID_HOME=/opt/android-sdk-linux
sudo mkdir -p $ANDROID_HOME
# install openjdk
sudo apt-get install openjdk-8-jdk
# download android sdk
cd $ANDROID_HOME
sudo wget https://dl.google.com/android/repository/tools_r25.2.3-linux.zip
@orenitamar
orenitamar / Dockerfile
Last active March 22, 2024 05:13
Installing numpy, scipy, pandas and matplotlib in Alpine (Docker)
# Below are the dependencies required for installing the common combination of numpy, scipy, pandas and matplotlib
# in an Alpine based Docker image.
FROM alpine:3.4
RUN echo "http://dl-8.alpinelinux.org/alpine/edge/community" >> /etc/apk/repositories
RUN apk --no-cache --update-cache add gcc gfortran python python-dev py-pip build-base wget freetype-dev libpng-dev openblas-dev
RUN ln -s /usr/include/locale.h /usr/include/xlocale.h
RUN pip install numpy scipy pandas matplotlib
@adonoho
adonoho / iOS_device_types.txt
Last active February 11, 2022 13:04 — forked from adamawolf/Apple_mobile_device_types.txt
List of iOS device codes types a.k.a. machine ids (e.g. iPhone1,1) and their matching product names
i386 : iPhone Simulator
x86_64 : iPhone Simulator
iPhone1,1 : iPhone
iPhone1,2 : iPhone 3G
iPhone2,1 : iPhone 3GS
iPhone3,1 : iPhone 4
iPhone3,2 : iPhone 4 GSM Rev A
iPhone3,3 : iPhone 4 CDMA
iPhone4,1 : iPhone 4S
iPhone5,1 : iPhone 5 (GSM)