I hereby claim:
- I am rbsilva on github.
- I am rbsilva (https://keybase.io/rbsilva) on keybase.
- I have a public key ASCG5c9XM64KL9UdCPUa14qRTKE5Ar5MNG5dV9L9tLAg3go
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
#!/bin/bash | |
export DEPLOYMENT=$1 | |
kubectl get deployment $DEPLOYMENT -o json | kubectl patch -f - -p "{\"spec\":{\"template\":{\"metadata\":{\"annotations\":{\"date\":\"`date +'%s'`\"}}}}}" | |
kubectl rollout status deployment $DEPLOYMENT |
#!/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 \;' |
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 |
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" |
#!/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` |
#!/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" |
#!/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 |
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 && \ |
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; |