Skip to content

Instantly share code, notes, and snippets.

View ponych's full-sized avatar

Eric.Chen ponych

View GitHub Profile
@ponych
ponych / nginx
Created May 30, 2012 15:38
centos nginx files
#!/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
@ponych
ponych / ~gitconfig
Created June 5, 2012 14:52
cat ~/.gitconfig
# http://f2e.us/wiki/git-config.html#!/
[user]
name = yyfrankyy
email = yyfrankyy@gmail.com
[core]
excludesfile = /home/wenhe/.gitignore
quotepath = false
editor = vim
[alias]
co = checkout
@ponych
ponych / redis.conf
Created June 6, 2012 16:05
redis.conf
# my copy redis.conf
# changes
# 1. dir
# 2. daemonize yes
# 3. maxmenory 100MB
# 4. logfile /var/log/redis.log
#
#
# Redis configuration file example
#
@ponych
ponych / redisctl
Created June 6, 2012 16:08
redisctl
#!/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
@ponych
ponych / redis install
Created June 6, 2012 17:02
redis install on CentOS
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
# Config
stream = file('config/main.yaml', 'r')
app.config.update(yaml.load(stream))
@ponych
ponych / install_server.sh
Created October 31, 2012 15:14
install redis server script for redis 2.6.2
#!/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.
#
@ponych
ponych / loops
Created April 9, 2013 00:16
loops
<?php
/**
* @var $_ index_ACTION
*/
//var_dump( $_->_r );
//var_dump( $_->_ss );
echo '_userme:';
var_dump( $this->_userme );
http://adcdownload.apple.com/Developer_Tools/xcode_4.6.1/xcode4610419628a.dmg
@ponych
ponych / sites.conf
Created May 17, 2013 13:46
for j7 rewrite settings
#
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;