This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.
To capture the video (filesize: 19MB), using the free "QuickTime Player" application:
#!/bin/bash | |
INSTALL_PATH="$HOME/scripts" | |
SCRIPT_PATH="$INSTALL_PATH/customsshd" | |
LAUNCHCTL_PATH="$HOME/Library/LaunchAgents/com.my.customsshd.plist" | |
SSH_KEYS_INSTALL_PATH=$HOME/customkeys | |
SSH_HOST_KEY=$SSH_KEYS_INSTALL_PATH/ssh_host_key | |
SSH_HOST_RSA_KEY=$SSH_KEYS_INSTALL_PATH/ssh_host_rsa_key | |
SSH_HOST_DSA_KEY=$SSH_KEYS_INSTALL_PATH/ssh_host_dsa_key | |
SSHD_PORT=50111 |
package com.google.android.apps.common.testing.testrunner; | |
import android.app.Instrumentation; | |
import android.content.Context; | |
import android.os.Build; | |
import android.os.Bundle; | |
import android.test.AndroidTestRunner; | |
import android.test.InstrumentationTestRunner; | |
import android.test.TestSuiteProvider; | |
import android.util.Log; |
# This script adds a "Webclip" shortcut to your homescreen. | |
# The shortcut can be used to open a web page in full-screen mode, | |
# or to launch a custom URL (e.g. a third-party app). | |
# You'll be asked for a title, a URL, and an icon (from your camera roll) | |
import plistlib | |
import BaseHTTPServer | |
import webbrowser | |
import uuid | |
from io import BytesIO |
import jenkins.model.Jenkins | |
build = Jenkins.instance.items[0].builds[0] | |
println build | |
println("Available actions on the build: " + build.actions) | |
def analysisCoreActions = [] | |
// All static analysis actions based on static analysis core can be handled uniformly | |
analysisCoreActions.addAll(build.actions.findAll{it.class.name =~ "hudson.plugins.checkstyle.CheckStyle.*ResultAction"}) |
var http = require('http'), | |
jsdom = require('jsdom'), | |
nodemailer = require('nodemailer'); | |
smtpTransport = nodemailer.createTransport('SMTP', { | |
service: 'Gmail', | |
auth: { | |
user: '[email protected]', | |
pass: 'password' | |
} |
#!/bin/bash | |
HUB_HOST="hostname" | |
HUB_PORT="4444" | |
LOCAL_IP="ip" | |
SOCAT_PORT="8081" | |
JSON="{'configuration': {'registerCycle': 5000, 'hub': 'http://<HUB_HOST>:<HUB_PORT>/grid/register', 'host': '<LOCAL_IP>', 'proxy': 'org.openqa.grid.selenium.proxy.DefaultRemoteProxy', 'maxSession': 1, 'port': <SOCAT_PORT>, 'hubPort': <HUB_PORT>, 'hubHost': '<HUB_HOST>', 'url': 'http://<LOCAL_IP>:<SOCAT_PORT>', 'remoteHost': 'http://<LOCAL_IP>:<SOCAT_PORT>', 'register': true, 'role': 'node'}, 'class': 'org.openqa.grid.common.RegistrationRequest', 'capabilities': [{'seleniumProtocol': 'WebDriver', 'platform': 'ANDROID', 'browserName': 'android', 'version': null, 'maxInstances': 1}]}" | |
JSON=${JSON//<HUB_HOST>/$HUB_HOST} | |
JSON=${JSON//<HUB_PORT>/$HUB_PORT} |
<!doctype html> | |
<!-- http://taylor.fausak.me/2015/01/27/ios-8-web-apps/ --> | |
<html> | |
<head> | |
<title>iOS 8 web app</title> | |
<!-- CONFIGURATION --> |