Skip to content

Instantly share code, notes, and snippets.

View crazcdll's full-sized avatar

crazcdll crazcdll

  • 美团
  • Beijing
View GitHub Profile
@crazcdll
crazcdll / list.array
Created January 31, 2018 04:27 — forked from easychen/list.array
php函数使用频次列表(GitHub统计)
Array
(
[define] => 1B
[file] => 1B
[list] => 1B
[copy] => 1B
[end] => 1B
[array] => 827M
[time] => 810M
[max] => 751M
@crazcdll
crazcdll / multiple-php-versions-on-ubuntu-16.04.md
Created November 27, 2017 06:27 — forked from aaronbloomfield/multiple-php-versions-on-ubuntu-16.04.md
Running multiple PHP versions on Apache2 and Ubuntu 16.04

Setting up multiple apache2 instances on Ubuntu 16.04

PHP handling on apache is done via modules of one sort or another, and running multiple version is problematic on a single instance. The solution is to run two instances of apache on the same machine. This allows one instance to run PHP 7 (the default on 16.04), and another can run PHP 5. Since normal http/https is on ports 80 and 443, the second instance will run on ports 81 and 444. Since it is running on the same machine, all file system and database access is the exact same.

All the commands herein have to be run as root, or with sudo prefixed to the command.

  1. Read /usr/share/doc/apache2/README.multiple-instances

  2. Run sh ./setup-instance php5 from /usr/share/doc/apache2/examples, where php5 is the suffix for the second site; all commands for the second site will have that suffix. This will keep all of the same configuration for all sites on the new instance, including SSL certif

@crazcdll
crazcdll / Connect to Google Home
Created July 1, 2017 11:17 — forked from willwhui/Connect to Google Home
Connect to Google Home
Connect to Google Home
@crazcdll
crazcdll / v2ex_api.md
Created December 24, 2016 07:06 — forked from fanzeyi/v2ex_api.md
V2EX API
@crazcdll
crazcdll / iOS 技能图谱.md
Created April 21, 2016 05:49 — forked from tangqiaoboy/iOS 技能图谱.md
iOS 技能图谱

编程语言

  • Swift
  • Objective-C
  • C++/C
  • JavaScript

操作系统

  • Mac OSX
  • iOS