Skip to content

Instantly share code, notes, and snippets.

@iMarlboro
iMarlboro / default
Created October 27, 2017 14:37 — forked from dtomasi/default
Brew Nginx PHP7
server {
listen 80;
server_name localhost;
root /Users/YOUR_USERNAME/Sites;
access_log /Library/Logs/default.access.log main;
location / {
include /usr/local/etc/nginx/conf.d/php-fpm;
}
@iMarlboro
iMarlboro / wordpress-dev.md
Created March 15, 2016 12:47 — forked from vmlinz/wordpress-dev.md
Resources to learn wordpress themes development
@iMarlboro
iMarlboro / README.md
Last active August 29, 2015 14:06 — forked from oodavid/README.md

Deploy your site with git

This gist assumes:

  • you have a local git repo
  • with an online remote repository (github / bitbucket etc)
  • and a cloud server (Rackspace cloud / Amazon EC2 etc)
    • your (PHP) scripts are served from /var/www/html/
    • your webpages are executed by apache
  • apache's home directory is /var/www/
@iMarlboro
iMarlboro / README.md
Last active August 29, 2015 14:06 — forked from oodavid/README.md

Deploy your site with git

This gist assumes:

  • you have a local git repo
  • with an online remote repository (github / bitbucket etc)
  • and a cloud server (Rackspace cloud / Amazon EC2 etc)
    • your (PHP) scripts are served from /var/www/html/
    • your webpages are executed by apache
  • apache's home directory is /var/www/
@iMarlboro
iMarlboro / \application\libraries\discuzx.php
Created July 26, 2012 16:46
在 CodeIgniter 中整合 Discuz X2.5, 引用超級變數 $_G 來獲取用戶名, uid等資訊.
<?php if ( ! defined( 'BASEPATH' ) ) exit( 'No direct script access allowed' );
/**
* Discuz! 的用戶數據全部存儲在 UCenter 中,
* 並可以使用 UCenter 的接口體系與第三方產品進行掛接。
* 因此,瞭解 UCenter 也是瞭解 Discuz! 產品體系的重要一步。
*
* @link http://dev.discuz.org/wiki/index.php
* @link http://dev.discuz.org/wiki/index.php?title=UCenter接口
*/
class Discuzx {