This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# nginx - this script starts and stops the nginx daemin | |
# | |
# chkconfig: - 85 15 | |
# description: Nginx is an HTTP(S) server, HTTP(S) reverse \ | |
# proxy and IMAP/POP3 proxy server | |
# processname: nginx | |
# config: /etc/nginx/conf/nginx.conf | |
# pidfile: /usr/local/nginx/logs/nginx.pid |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# http://f2e.us/wiki/git-config.html#!/ | |
[user] | |
name = yyfrankyy | |
email = [email protected] | |
[core] | |
excludesfile = /home/wenhe/.gitignore | |
quotepath = false | |
editor = vim | |
[alias] | |
co = checkout |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# my copy redis.conf | |
# changes | |
# 1. dir | |
# 2. daemonize yes | |
# 3. maxmenory 100MB | |
# 4. logfile /var/log/redis.log | |
# | |
# | |
# Redis configuration file example | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# http://vm-192-168-11-21.shengyun.grandcloud.cn/topics/2437 | |
# redis - this script starts and stops the redis-server daemon | |
# | |
# chkconfig: 2345 90 10 | |
# description: Redis is a persistent key-value database | |
# processname: redis-server | |
# config: /etc/redis.conf | |
# config: /etc/sysconfig/redis | |
# pidfile: /var/run/redis.pid |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1.安装(CentOS 6.2) | |
$wget http://redis.googlecode.com/files/redis-2.x.xx.tar.gz | |
$tar zxf redis-2.x.xx.tar.gz | |
$cd redis-2.x.xx | |
$make | |
$make install | |
////// | |
mkdir -p /usr/local/bin | |
cp -pf redis-server /usr/local/bin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Config | |
stream = file('config/main.yaml', 'r') | |
app.config.update(yaml.load(stream)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Copyright 2011 Dvir Volk <dvirsk at gmail dot com>. All rights reserved. | |
# | |
# Redistribution and use in source and binary forms, with or without | |
# modification, are permitted provided that the following conditions are met: | |
# | |
# 1. Redistributions of source code must retain the above copyright notice, | |
# this list of conditions and the following disclaimer. | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @var $_ index_ACTION | |
*/ | |
//var_dump( $_->_r ); | |
//var_dump( $_->_ss ); | |
echo '_userme:'; | |
var_dump( $this->_userme ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http://adcdownload.apple.com/Developer_Tools/xcode_4.6.1/xcode4610419628a.dmg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
server { | |
listen 80; | |
server_name xyj front.xyj admin.xyj userfront.xyj shopback.xyj shopfront.xyj develop.xyj group.xyj; | |
root /Users/eric/web/xyj/web; | |
index index.php index.htm index.html; | |
# begin of rewrite | |
#location / { | |
# try_files $uri @rewriteapp; |
OlderNewer