登陆phpMyAdmin时输入服务器ip地址、用户名、密码
缺点:登陆操作比较繁琐,而且切换服务器时须首先退出当前所登陆的服务器
/**
* allow login to any user entered server in cookie based authentication
*
* @global boolean $cfg[‘AllowArbitraryServer’]
*/
$cfg['AllowArbitraryServer'] = true;
# 把这个文件复制黏贴到系统的 .bashrc,或放在 C:\Users\%USERNAME% 目录下 | |
# gac 添加,并备注 | |
# gps 上传到代码仓库 | |
alias gfp='git fetch && git pull' # 下载更新 | |
alias gac='git add . && git commit -m' # 栗子: gac '举了一个栗子' | |
alias gps='git push' # 栗子: gp 栗子源 栗子分支 |
/** | |
# template-engine-in-projects | |
一般中国的公司都喜欢使用自己开发的模板引擎,而海外的则比较喜欢开源的模板引擎 | |
## Freamworks | |
Laveral - Blade | |
Express - Jade |
CREATE TABLE GeoLite2 ( | |
geoname_id INT(10) UNSIGNED AUTO_INCREMENT PRIMARY KEY, | |
locale_code VARCHAR(10) NOT NULL, | |
continent_code VARCHAR(10) NOT NULL, | |
continent_name VARCHAR(10) NOT NULL, | |
country_iso_code VARCHAR(10) NOT NULL, | |
country_name VARCHAR(50) NOT NULL, | |
subdivision_1_iso_code VARCHAR(10), | |
subdivision_1_name VARCHAR(50), | |
subdivision_2_iso_code VARCHAR(10), |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name='viewport' content='width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no' /> | |
<script src='http://api.tiles.mapbox.com/mapbox.js/v1.2.0/mapbox.js'></script> | |
<link href='http://api.tiles.mapbox.com/mapbox.js/v1.2.0/mapbox.css' rel='stylesheet' /> | |
<!--[if lte IE 8]> | |
<link href='//api.tiles.mapbox.com/mapbox.js/v1.2.0/mapbox.ie.css' rel='stylesheet' > | |
<![endif]--> | |
<style> |
登陆phpMyAdmin时输入服务器ip地址、用户名、密码
缺点:登陆操作比较繁琐,而且切换服务器时须首先退出当前所登陆的服务器
/**
* allow login to any user entered server in cookie based authentication
*
* @global boolean $cfg[‘AllowArbitraryServer’]
*/
$cfg['AllowArbitraryServer'] = true;
PATH=$PATH:"/C/Program Files/nodejs" | |
export PATH |
[En]
mongod --logpath "C:\data\dbConf\mongodb.log" --logappend --dbpath "C:\data\db" --port 27017 --serviceName mongodb_new --serviceDisplayName mongodb_new --install
[Zh]
YouTube URL: https://www.youtube.com/watch?v=IfaqkiHpIjo&index=4&list=PL1LIXLIF50uXWJ9alDSXClzNCMynac38g |
<?php | |
$arr1 = array( | |
'level1' => array( | |
'level2' => array( | |
'level3' => 'hello' | |
) | |
) | |
); | |
$arr2 = array('level3'=>'world'); | |
$needle1 = array('level3'=>'hello'); |
<?php | |
/** | |
* [!] Header must be set before all content in body display | |
*/ | |
header('Content-Type:application/json; charset=utf-8'); | |
header('Content-Type:text/xml; charset=utf-8'); |