Skip to content

Instantly share code, notes, and snippets.

View bingluen's full-sized avatar
🇹🇼

Erickson bingluen

🇹🇼
  • LINE Taiwan Limited
  • Taipei
View GitHub Profile
@bingluen
bingluen / cloudflaredns.sh
Created July 11, 2017 22:57 — forked from m-wild/cloudflaredns.sh
CloudFlare dynamic dns updater module for Synology
#!/bin/sh
# cloudflareddns.sh - dynamic dns updater module for Synology
#
# Author:
# Michael Wildman (http://mwild.me)
#
# Version:
# 0.2
#
@bingluen
bingluen / AppBaseActivity.java
Created September 11, 2016 04:03
Android: Easiest way to reuse a common Navigation drawer among a group of activities.
/*
* This is a simple and easy approach to reuse the same
* navigation drawer on your other activities. Just create
* a base layout that conains a DrawerLayout, the
* navigation drawer and a FrameLayout to hold your
* content view. All you have to do is to extend your
* activities from this class to set that navigation
* drawer. Happy hacking :)
* P.S: You don't need to declare this Activity in the
* AndroidManifest.xml. This is just a base class.
@bingluen
bingluen / Install-nginx-with-http2-support.md
Created September 4, 2016 18:59 — forked from hollodotme/Install-nginx-with-http2-support.md
Install nginx with http2 support on ubuntu 14.04 LTS (Trusty)

How to install nginx (>= 1.9.5) with http2 support on Ubuntu 14.04 LTS (Trusty)

IMPORTANT: Backup your nginx site configs (usually under /etc/nginx/sites-available)!

Remove old nginx

Remove old nginx incl. nginx-common:

apt-get autoremove --purge nginx nginx-common