Skip to content

Instantly share code, notes, and snippets.

View stephendonner's full-sized avatar

Stephen Donner stephendonner

View GitHub Profile
@davehunt
davehunt / build.log
Created November 17, 2011 14:12
Logs from Selenium session issue in 2.12.0
Started by timer
Building on master
Checkout:workspace / /Users/Shared/Jenkins/Home/jobs/mdn.staging/workspace - hudson.remoting.LocalChannel@5ea47962
Using strategy: Default
Last Built Revision: Revision 14384a8d45f03d4f76934cec602b3514cfcd9502 (origin/HEAD, origin/master)
Checkout:workspace / /Users/Shared/Jenkins/Home/jobs/mdn.staging/workspace - hudson.remoting.LocalChannel@5ea47962
Wiping out workspace first.
Cloning the remote Git repository
Cloning repository origin
Fetching upstream changes from git://github.com/mozilla/mdn-tests.git
@rnapier
rnapier / fix-xcode
Last active March 18, 2022 01:17
Links Xcode SDKs from the /SDKs directory (which you maintain yourself)
#!/usr/bin/python
# fix-xcode
# Rob Napier <robnapier@gmail.com>
# Script to link in all your old SDKs every time you upgrade Xcode
# Create a directory called /SDKs (or modify source_path).
# Under it, put all the platform directories:
# MacOSX.platform iPhoneOS.platform iPhoneSimulator.platform
# Under those, store the SDKs:
@dhylands
dhylands / remove-app.py
Created September 25, 2013 17:16
Removes an app from a directory tree, and also updates webapps.json to remove the app from there as well. Usage: remove-app.py <webapps-directory> webapp ... For example: remove-app.py gaia/profile/webapps uitest.gaiamobile.org cubevid.gaiamobile.org
#!/usr/bin/python
import json
import sys, string, os
import shutil
webapps_dir = sys.argv[1]
webapps_filename = os.path.join(webapps_dir, "webapps.json")
webapps = json.load(open(webapps_filename))
@stephendonner
stephendonner / new-flash.sh
Created December 6, 2013 17:26
1) grab an engineering mozilla-central build from pvtbuilds, for Hamachi 2) rename it to be "hamachi.zip" 3) put it in the same folder as this flash script 4) chmod +x new-flash.sh (or whatever you want to call the file) 5) ./new-flash.sh
#!/bin/bash -xe
wait_for_device() {
SERIAL=MSM7627A
DEVICE=05c6
# to break out if failed after so many tries.
# RETRYTIME*MAXWAITTIME is how long the max wait time will be
RETRYTIME=1
MAXWAITTIME=60
@mgedmin
mgedmin / gist:9547214
Created March 14, 2014 12:59
Setting up a Jenkins slave on Linux
# This is how you add a Jenkins slave
# On master:
sudo -u jenkins -H ssh-keygen
# On slave
adduser --system --group --home=/var/lib/jenkins-slave --no-create-home --disabled-password --quiet --shell /bin/bash jenkins-slave
install -d -o jenkins-slave -g jenkins-slave /var/lib/jenkins-slave
@cortesben
cortesben / hg-commands.md
Last active January 9, 2024 14:53
Mercurial command cheat sheet

Mercurial Commands

Commands Description
hg pull get latest changes like git pull use flags like -u IDK why yet
hg add only for new files
hg commit add changes to commit with -m for message just like git
hg addremove adds new files and removes file not in your file system
hg incoming see changes commited by others
hg outgoing see local commits

adb and fastboot must know

Install android SDK (bottom of the page) or full android studio if you need to develop on android.

fastboot looks like adb but it is used when device is in bootloader (or fastboot).

Check connected devices

adb:

@Pulimet
Pulimet / AdbCommands
Last active May 6, 2024 23:57
Adb useful commands list
adb help // List all comands
== Adb Server
adb kill-server
adb start-server
== Adb Reboot
adb reboot
adb reboot recovery
adb reboot-bootloader

Upload images to GitHub

  1. Create a new issue on GitHub.

  2. Drag an image into the comment field.

  3. Wait for the upload process to finish.

  4. Copy the URL and use it in your Markdown files on GitHub.

@jrbenny35
jrbenny35 / gist:3380b3d70e751c015fda4bf4946ed9b8
Created January 9, 2018 23:45
Selenium firefox nightly dockerfile
FROM selenium/standalone-firefox
USER root
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get -y install mysql-server
RUN apt-get install -y libmysqlclient-dev
RUN apt-get install -y git
RUN apt-get install -y nodejs