Skip to content

Instantly share code, notes, and snippets.

View yishenggudou's full-sized avatar
🍺
Looking for a partner

Abigail Smithson yishenggudou

🍺
Looking for a partner
View GitHub Profile
@yishenggudou
yishenggudou / bash-invocation.md
Created June 12, 2012 07:14 — forked from yegle/bash-invocation.md
Bash Shell启动方式与RC脚本

Bash Shell启动方式与rc脚本

Shell的不同分类

根据启动Bash Shell的方式不同,对Shell有两种分类方式

登录Shell与非登录Shell

根据Shell的启动方式不同,可以将Shell分为

@yishenggudou
yishenggudou / graphite
Created June 11, 2012 08:22 — forked from drawks/graphite
Graphite on uwsgi/nginx
#This is the "site config" for nginx
upstream django {
# Distribute requests to servers based on client IP. This keeps load
# balancing fair but consistent per-client. In this instance we're
# only using one uWGSI worker anyway.
ip_hash;
server unix:/tmp/uwsgi.sock;
}
server {
@yishenggudou
yishenggudou / gist:2667465
Created May 12, 2012 16:28 — forked from ruyrocha/gist:772319
nginx start/stop script (move to /etc/init.d/nginx)
#!/bin/sh
#
# nginx - this script starts and stops the nginx daemon
#
# chkconfig: - 85 15
# description: Nginx is an HTTP(S) server, HTTP(S) reverse \
# proxy and IMAP/POP3 proxy server
# processname: nginx
# config: /etc/nginx/nginx.conf
# config: /etc/sysconfig/nginx
@yishenggudou
yishenggudou / RSS.py
Created October 15, 2010 11:15 — forked from mnot/RSS.py
#!/usr/bin/env python
"""
RSS.py
Classes for working with RSS channels as arbitrary data structures.
Requires Python 2.2 or newer and PyXML 0.7.1 or newer.
ChannelBase - Base class for RSS Channels.
CollectionChannel - RSS Channel modeled as a URI-per-entry