Skip to content

Instantly share code, notes, and snippets.

View shepherdlazy's full-sized avatar

shepherd.lazy shepherdlazy

View GitHub Profile
@shepherdlazy
shepherdlazy / cfcgi
Last active December 26, 2015 12:59
this script starts and stops the fcgiwrap instance
#!/bin/bash
# cfcgi – this script starts and stops the fcgiwrap instance
#
# chkconfig: - 85 15
# description: cfcgi
# processname: cfcgi
RETVAL=0
case "$1" in
#!/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: /opt/nginx/conf/nginx.conf
# pidfile: /opt/nginx/logs/nginx.pid
#!/usr/bin/perl
use FCGI;
#perl -MCPAN -e 'install FCGI'
use Socket;
use POSIX qw(setsid);
#use Fcntl;
require 'syscall.ph';
#!/usr/bin/perl
use FCGI;
#perl -MCPAN -e 'install FCGI'
use Socket;
use POSIX qw(setsid);
#use Fcntl;
require 'syscall.ph';
# Default github user(first@mail.com)
Host github.com
HostName github.com
User git
IdentityFile ~/.ssh/id_rsa
machine [Domain Name]
login [your UserName]
password [your Password]
if(has("win32") || has("win95") || has("win64") || has("win16")) "判定当前操作系统类型
let g:iswindows=1
else
let g:iswindows=0
endif
set nocompatible "不要vim模仿vi模式,建议设置,否则会有很多不兼容的问题
syntax on"打开高亮
if has("autocmd")
/* ----------------------------------------------------------------------- *
* Copyright (C) 2013 Tri-Tech Inc. - All Rights Reserved
* File Name : ILogSubscriber.cs
* Author : ChengLong Du <chenglong_du@tri-tech.cn>
* Create Date : 2013-7-26 10:37:29
* Description :
* ----------------------------------------------------------------------- */
using System;
namespace MyrSoft.Framework
/* ----------------------------------------------------------------------- *
* Copyright (C) 2013 Tri-Tech Inc. - All Rights Reserved
* File Name : TextLogUpdater.cs
* Author : ChengLong Du <chenglong_du@tri-tech.cn>
* Create Date : 2013-7-26 10:54:41
* Description :
* ----------------------------------------------------------------------- */
using System;
using System.Text;
using System.IO;
/* ----------------------------------------------------------------------- *
* Copyright (C) 2013 Tri-Tech Inc. - All Rights Reserved
* File Name : MultiLogUpdater.cs
* Author : ChengLong Du <chenglong_du@tri-tech.cn>
* Create Date : 2013-7-26 10:55:34
* Description :
* ----------------------------------------------------------------------- */
using System;
namespace Myrsoft.Framework