Skip to content

Instantly share code, notes, and snippets.

View steel1990's full-sized avatar
🐺
I may be slow to respond.

Steel.Liao steel1990

🐺
I may be slow to respond.
View GitHub Profile
@steel1990
steel1990 / install-apache-php.md
Last active August 29, 2015 14:00
Install apache and php

Install apache and php

Install apache

wget httpd-2_x_nn.tar.gz
tar -zxvf httpd-2_x_nn.tar.gz
cd httpd-2_x_nn
./configure --enable-so --prefix=/path/to/apache/want/to/install
make

make install

<style>
.tips {
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAwAAAAMCAYAAABWdVznAAAACXBIWXMAAAsTAAALEwEAmpwYAAAKTWlDQ1BQaG90b3Nob3AgSUNDIHByb2ZpbGUAAHjanVN3WJP3Fj7f92UPVkLY8LGXbIEAIiOsCMgQWaIQkgBhhBASQMWFiApWFBURnEhVxILVCkidiOKgKLhnQYqIWotVXDjuH9yntX167+3t+9f7vOec5/zOec8PgBESJpHmomoAOVKFPDrYH49PSMTJvYACFUjgBCAQ5svCZwXFAADwA3l4fnSwP/wBr28AAgBw1S4kEsfh/4O6UCZXACCRAOAiEucLAZBSAMguVMgUAMgYALBTs2QKAJQAAGx5fEIiAKoNAOz0ST4FANipk9wXANiiHKkIAI0BAJkoRyQCQLsAYFWBUiwCwMIAoKxAIi4EwK4BgFm2MkcCgL0FAHaOWJAPQGAAgJlCLMwAIDgCAEMeE80DIEwDoDDSv+CpX3CFuEgBAMDLlc2XS9IzFLiV0Bp38vDg4iHiwmyxQmEXKRBmCeQinJebIxNI5wNMzgwAABr50cH+OD+Q5+bk4eZm52zv9MWi/mvwbyI+IfHf/ryMAgQAEE7P79pf5eXWA3DHAbB1v2upWwDaVgBo3/ldM9sJoFoK0Hr5i3k4/EAenqFQyDwdHAoLC+0lYqG9MOOLPv8z4W/gi372/EAe/tt68ABxmkCZrcCjg/1xYW52rlKO58sEQjFu9+cj/seFf/2OKdHiNLFcLBWK8ViJuFAiTcd5uVKRRCHJleIS6X8y8R+W/QmTdw0ArIZPwE62B7XLbMB+7gECiw5Y0nYAQH7zLYwaC5EAEGc0Mnn3AACTv/mPQCsBAM2XpOMAALzoGFyolBdMxggAAESggSqwQQcMwRSswA6cwR28wBcCYQZEQAwkwDwQQgbkgBwKoRiWQRlUwDrYBLWwAxqgEZrhEL
/**
* 获取url参数值
* @param {string} url 需要获取参数的url
* @param {string} name 需要获取的参数名
* @return {string} 返回获取的参数名
*/
var getUrlParam = function(name, url){
if(!name){
return '';
}
{
"curly": true,
"eqeqeq": true,
"es3": true,
"immed": true,
"indent": 4,
"latedef": true,
"noarg": true,
"noempty": true,
"quotmark": "single",
/**
* 通过字符串访问对象属性
*
* @param {Object} context 需要查找的对象
* @param {string} path 如 'a.b.c'
* @param {*} value 路径上需要设置的值
* @param {boolean} dontRewrite 不允许重写最后设置的值
* @return {*} 返回查找到的值
*/
var visit = function () {
var isSupportFixed = function () {
var $div = $('<div>').css({
position: 'fixed',
top: '10px'
}).appendTo('body');
var isSupportFixed = $div.offset().top === 10 + $(window).scrollTop();
$div.remove();
return isSupportFixed;
}();
="{""title"":"""&A4&""",""link"":"""&C4&""",""image"":"""&D4&""",""category"":"""&E4&""",""price"":"&F4&",""oriPrice"":"&G4&",""discount"":"&H4&"}"
var http = require("http"),
urlHandler = require("url");
http.createServer(function (request, response) {
console.log(request.url);
var options = {};
//请求前处理
var url = urlHandler.parse(handlerUrl(request.url));
{
"color_scheme": "Packages/Color Scheme - Default/Monokai Bright.tmTheme",
"default_encoding": "UTF-8",
"draw_indent_guides": true,
"draw_white_space": "all",
"fade_fold_buttons": false,
"file_exclude_patterns": [],
"folder_exclude_patterns": [],
"font_size": 14,
"highlight_line": true,
[
{ "keys": ["ctrl+alt+h"], "command": "clipboard_display" },
{ "keys": ["ctrl+up"], "command": "scroll_lines", "args": {"amount": 1.0 } },
{ "keys": ["ctrl+down"], "command": "scroll_lines", "args": {"amount": -1.0 } },
{
"keys": [
"alt+down"
],
"args": {
"action": "decrement_number_by_1"