Skip to content

Instantly share code, notes, and snippets.

View brettmcginnis's full-sized avatar

Brett McGinnis brettmcginnis

View GitHub Profile
DECKS =
{
"Ancient Artillery": { name: "Ancient Artillery", class: "Ancient Artillery" }
, "Bandit Archer": { name: "Bandit Archer", class: "Archer" }
, "Bandit Guard": { name: "Bandit Guard", class: "Guard" }
, "Black Imp": { name: "Black Imp", class: "Imp" }
, "Boss": { name: "Boss", class: "Boss" }
, "Cave Bear": { name: "Cave Bear", class: "Cave Bear" }
, "City Archer": { name: "City Archer", class: "Archer" }
, "City Guard": { name: "City Guard", class: "Guard" }
# Android Screenshot
function ass() {
file_name="android-$(date "+%Y.%m.%d-%H.%M.%S")"
if [ ! -z "$1" ]; then
file_name="$1"
fi
adb exec-out screencap -p > $file_name.png
}
{
"extends": [
"airbnb",
"plugin:ava/recommended",
"plugin:jsdoc/recommended",
"plugin:node/recommended",
"plugin:optimize-regex/all",
"plugin:ramda/recommended",
"plugin:security/recommended",
"plugin:unicorn/recommended"
docker exec ${NGINX_ID} /certbot/letsencrypt-auto
renew
-m EMAIL
-a webroot --webroot-path=/usr/share/nginx/html
--agree-tos
@brettmcginnis
brettmcginnis / Dockerfile
Created May 17, 2017 18:43
OpenStf using Docker Compose
FROM openstf/stf
# Running as root to get access to devices with out messing with plugdev group permissions
USER root
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC -//Apple Computer//DTD PLIST 1.0//EN
http://www.apple.com/DTDs/PropertyList-1.0.dtd >
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.l4.jenkinsnode</string>
<key>ProgramArguments</key>
<array>
<string>/usr/bin/java</string>
task bvtTest(dependsOn: 'connectedAvodDebugAndroidTest') {
group = 'Verification'
description = 'Runs the tests for debug on connected devices'
android.defaultConfig.testInstrumentationRunnerArguments.package = 'com.package.bvt'
}
// Requried for Continous Integration
// The gradle process will always pass even with test failures
// inspect test results app/build/outputs/androidTest-results/connected/
project.gradle.taskGraph.whenReady {
function determineBiggestDimension(height, width, length)
{
if (width > length)
{
biggest = width
if (height > width)
{
biggest = height
}
}