This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
apt-get update | |
echo mysql-server-5.5 mysql-server/root_password password PASSWORD | debconf-set-selections | |
echo mysql-server-5.5 mysql-server/root_password_again password PASSWORD | debconf-set-selections | |
apt-get install -y mysql-common mysql-server mysql-client | |
apt-get install -y apache2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=Navigating= | |
visit('/projects') | |
visit(post_comments_path(post)) | |
=Clicking links and buttons= | |
click_link('id-of-link') | |
click_link('Link Text') | |
click_button('Save') | |
click('Link Text') # Click either a link or a button | |
click('Button Value') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.paddypower.financials.market.management.rest.logging; | |
import java.io.BufferedReader; | |
import java.io.ByteArrayInputStream; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import java.io.InputStreamReader; | |
import javax.servlet.Filter; | |
import javax.servlet.FilterChain; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:14.04 | |
MAINTAINER Rodrigo Silva "rbsilva.ti@gmail.com" | |
# Install java7 | |
RUN apt-get install -y software-properties-common && \ | |
add-apt-repository -y ppa:webupd8team/java && \ | |
dpkg --add-architecture i386 && \ | |
apt-get update && \ | |
echo oracle-java7-installer shared/accepted-oracle-license-v1-1 select true | /usr/bin/debconf-set-selections && \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Start the emulator with no-window | |
emulator64-arm -avd instagram -no-window -wipe-data -no-audio -gpu off -no-skin & | |
# Don't exit until emulator is loaded | |
output='' | |
while [[ ${output:0:7} != 'stopped' ]]; do | |
output=`adb shell getprop init.svc.bootanim` | |
sleep 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/expect -f | |
set timeout 1800 | |
set cmd [lindex $argv 0] | |
set licenses [lindex $argv 1] | |
spawn {*}$cmd | |
expect { | |
"Do you accept the license '*'*" { | |
exp_send "y\r" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Originally written by Ralf Kistner <ralf@embarkmobile.com>, but placed in the public domain | |
set +e | |
bootanim="" | |
failcounter=0 | |
until [[ "$bootanim" =~ "stopped" ]]; do | |
bootanim=`adb -e shell getprop init.svc.bootanim 2>&1` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '2' | |
services: | |
android: | |
image: your-docker-android | |
environment: | |
DISPLAY: $DISPLAY | |
volumes: | |
- /tmp/.X11-unix:/tmp/.X11-unix | |
- $HOME/.Xauthority:/home/container-user/.Xauthority | |
network_mode: "host" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import datetime | |
import uuid | |
from azure.storage.blob import PageBlobService as BlobService | |
def generate_vhd_footer(size): | |
# Fixed VHD Footer Format Specification | |
# spec: https://technet.microsoft.com/en-us/virtualization/bb676673.aspx#E3B | |
# Field Size (bytes) | |
# Cookie 8 | |
# Features 4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
git config --global alias.ls '!find . -maxdepth 2 -name .git -type d -printf "\n\033[32m>>> %P:\033[0m\n\n" -execdir git status \;' |
OlderNewer