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
sudo apt-get install xvfb git build-essential gtk2-engines-pixbuf xfonts-100dpi x11-xkb-utils xfonts-100dpi xfonts-75dpi xfonts-scalable xfonts-cyrillic | |
sudo apt-get install libqt4-dev libqtwebkit-dev qt4-qmake python-qt4 |
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
global | |
log 127.0.0.1 local0 debug | |
chroot /var/lib/haproxy | |
user haproxy | |
group haproxy | |
daemon | |
tune.ssl.default-dh-param 2048 | |
defaults | |
log global |
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
Installation for VirtualBox: | |
docker-machine ssh <machine-name> < install-docker-compose.sh | |
Run docker-compose from the host: | |
docker-machine ssh <machine> -- docker-compose --version | |
Check that docker-compose is available after a reboot: | |
docker-machine reboot <machine> | |
docker-machine ssh <machine> -- docker-compose --version |
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 os | |
from StringIO import StringIO | |
import json | |
import sys | |
import subprocess | |
import shutil | |
def getParent(rootid, id): | |
print "--> ", id |
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 sh | |
# @see http://stackoverflow.com/questions/30040708/how-to-mount-local-volumes-in-docker-machine | |
# @see https://github.com/boot2docker/boot2docker/blob/master/doc/FAQ.md | |
################################################################################ | |
# Dependency Section # | |
# # | |
################################################################################ | |
check_deps() { | |
## Make sure commands are available |
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 | |
# only works atm if only one jdk package in downloads | |
DOWNLOADS=$HOME/Downloads | |
CURRENT_VERSION=$(java -version 2>&1) | |
JDK=` ls $DOWNLOADS | grep "jdk"` | |
STUDIO_URL=http://dl.google.com/android/studio/install/0.3.2/android-studio-bundle-132.893413-linux.tgz | |
if [ "uname -m" == "i386" -o "uname -m" == "i686" ]; then | |
ARCH=32 | |
else |
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 rx.internal.util.unsafe; | |
import java.lang.reflect.Field; | |
public class Unsafe { | |
public int getIntVolatile(Object obj, long offset) { | |
return 0; | |
} | |
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
def releasePath = file("${rootDir}/archive/${project.name}") | |
def releaseTask = tasks.create(name: 'release') { | |
group 'Build' | |
description "Assembles and archives all Release builds" | |
} | |
android.applicationVariants.all { variant -> | |
if (variant.buildType.name == 'release') { | |
def build = variant.name.capitalize() |
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
/* | |
* Copyright © 52inc 2015. | |
* All rights reserved. | |
*/ | |
apply plugin: 'org.ajoberstar.grgit' | |
import groovy.json.* | |
def versionFile = file("../version.json") |
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
public class ClickTextView extends android.support.v7.widget.AppCompatTextView { | |
Rect rect; | |
public ClickTextView(Context context) { | |
super(context); | |
init(); | |
} | |
public ClickTextView(Context context, AttributeSet attrs) { |