Skip to content

Instantly share code, notes, and snippets.

View liubo2055's full-sized avatar

BO LIU liubo2055

  • Vancouver
View GitHub Profile
@liubo2055
liubo2055 / Install PHP Postgre PDO driver
Created December 5, 2017 20:04 — forked from azizultex/Install PHP Postgre PDO driver
Install PHP Postgre PDO driver
// Method 1
brew install php56-pdo-pgsql
// Method 2
#!/bin/bash
# Check PHP version `php --version`
PHP_VER=$(php -v | head -1 | awk '{ print $2 }')
@liubo2055
liubo2055 / install_psql_php.sh
Created December 5, 2017 19:47 — forked from doole/install_psql_php.sh
Install PostgreSQL PHP extensions on Mac OS X
#!/bin/bash
# Install Xcode Command Line Tools first (required)
xcode-select --install
# Check PHP version `php --version`
PHP_VER=$(php -v | head -1 | awk '{ print $2 }')
# Extensions directory (default: empty string)
EXT_DIR=""
<a href="http://169.254.169.254/latest/meta-data/">Instance Metadata</a>
<a href="http://169.254.169.254/latest/meta-data/hostname">Instance Hostname</a> <a href="http://169.254.169.254/latest/meta-data/placement/availability-zone">Instance Availability Zone</a>
<a href="http://169.254.169.254/latest/user-data">Instance Userdata</a>