Skip to content

Instantly share code, notes, and snippets.

View billyriantono's full-sized avatar
:octocat:
git commit -m "Welcome"

Billy R billyriantono

:octocat:
git commit -m "Welcome"
  • Around the world
View GitHub Profile
ro.vendor.build.date=Sat Sep 16 15:10:03 UTC 2017
ro.vendor.build.date.utc=1505574603
ro.vendor.build.fingerprint=google/taimen/taimen:8.0.0/OPD3.170816.012/4343094:user/release-keys
# begin build properties
# autogenerated by vendor_buildinfo.sh
ro.product.board=taimen
ro.board.platform=msm8998
# end build properties
#
# begin build properties
# autogenerated by buildinfo.sh
ro.build.id=JLS36C
ro.build.display.id=Q505TV1.0.0B04
ro.build.version.incremental=eng.root.20140618.132303
ro.build.version.sdk=18
ro.build.version.codename=REL
ro.build.version.release=4.3
ro.build.date=2014年 06月 18日 星期三 13:25:16 CST
ro.build.date.utc=1403069116
@billyriantono
billyriantono / .deployment
Last active April 21, 2018 03:41
Laravel Web.config Azure Web Apps
[config]
command = bash deploy.sh
@billyriantono
billyriantono / install.sh
Last active December 14, 2017 01:32
Install Nginx + PHP 7.1 + MariaDB on Ubuntu 16.04
#!/bin/bash
sudo apt-get install -y python-software-properties
sudo add-apt-repository -y ppa:ondrej/php
sudo apt-get install software-properties-common
sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xF1656F24C74CD1D8
sudo add-apt-repository 'deb [arch=amd64,i386,ppc64el] http://mirror.jmu.edu/pub/mariadb/repo/10.1/ubuntu xenial main'
sudo apt-get update -y
sudo apt-get install -y nginx
sudo apt install -y mariadb-server
sudo apt-get install -y php7.1 php7.1-fpm php7.1-cli php7.1-common php7.1-mbstring php7.1-gd php7.1-intl php7.1-xml php7.1-mysql php7.1-mcrypt php7.1-zip php7.1-dom
@billyriantono
billyriantono / nginx-pagespeed.conf
Created October 5, 2017 15:35 — forked from rahul286/nginx-pagespeed.conf
nginx + pagespeed downstream caching example
#source: http://www.jefftk.com/2014-01-03--nginx.conf
# for debugging with valgrind
#daemon off;
#master_process off;
#user nobody;
worker_processes 1;
worker_rlimit_core 500M;
upstream backend {
server localhost:8080;
#server backup1.example.com:8080 backup;
#server backup2.example.com:8080 backup;
}
# Set cache dir
proxy_cache_path /var/cache/nginx levels=1:2 keys_zone=one:10m;
# Set cache key to include identifying components
# VERSION 1.0.4
# Author: @madhavajay
# This currently works for iOS and watchOS in the Simulator and Devices
# Changes
# Using ${TOOLCHAIN} in two places now
# Added double quotes " around paths
# Fixed watchOS Issues
# Instructions iOS
@billyriantono
billyriantono / helpers.php
Created August 10, 2017 00:12 — forked from mabasic/helpers.php
config_path function for Lumen framework
<?php
if ( ! function_exists('config_path'))
{
/**
* Get the configuration path.
*
* @param string $path
* @return string
*/
@billyriantono
billyriantono / default
Created August 6, 2017 07:49 — forked from psgganesh/default
Simple lumen nginx conf
server {
listen 80 default_server;
listen [::]:80 default_server ipv6only=on;
listen 443 ssl;
root /var/www/lumen/public;
index index.php index.html index.htm;
server_name server_domain_or_IP;
@billyriantono
billyriantono / UIDeviceHardware.h
Created July 20, 2017 03:33 — forked from Jaybles/UIDeviceHardware.h
UIDeviceHardware - Determine iOS device being used
//
// UIDeviceHardware.h
//
// Used to determine EXACT version of device software is running on.
#import <Foundation/Foundation.h>
@interface UIDeviceHardware : NSObject
- (NSString *) platform;