Skip to content

Instantly share code, notes, and snippets.

View ethan605's full-sized avatar

Thanh Nguyen ethan605

View GitHub Profile
@ethan605
ethan605 / print256colours.sh
Created September 11, 2020 14:43 — forked from HaleTom/print256colours.sh
Print a 256-colour test pattern in the terminal
#!/bin/bash
# Tom Hale, 2016. MIT Licence.
# Print out 256 colours, with each number printed in its corresponding colour
# See http://askubuntu.com/questions/821157/print-a-256-color-test-pattern-in-the-terminal/821163#821163
set -eu # Fail on errors or undeclared variables
printable_colours=256
@ethan605
ethan605 / GenyMotion with Google Play.md
Last active October 9, 2017 01:23 — forked from wbroek/genymotionwithplay.txt
Genymotion with Google Play Services for ARM

Note: Easier way is the X86 way, described here

  1. Download the following ZIPs:

Note: Genymotion must be set to use it's own ADB (Settings -> ADB -> Use Genymotion Android tools)

  1. Open your Genymotion VM and go to the Homescreen
# Nginx config
passenger_root /home/deployer/.rvm/gems/ruby-2.1.3/gems/passenger-4.0.53;
#passenger_ruby /usr/bin/ruby;
passenger_max_pool_size 70;
passenger_min_instances 1;
passenger_max_requests 20; # A workaround if apps are mem-leaking
passenger_pool_idle_time 300;
passenger_max_instances_per_app 30;
passenger_pre_start http://service.memo.edu.vn/;