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 | |
# | |
# aria2 ariac server | |
# | |
# chkconfig: 345 70 30 | |
# description: ariac server | |
# processname: aria2c | |
Prgmname="/usr/bin/aria2c" | |
shortname="aria2c" |
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
<service> | |
<id>shadowsocks</id> | |
<name>shadowsocks</name> | |
<description>shadowsocks</description> | |
<executable>node</executable> | |
<startargument>sslocal</startargument> | |
<log mode="none"/> | |
</service> |
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
if WScript.Arguments.Count = 0 then | |
WScript.Echo "Missing parameters" | |
else | |
strTargetPath = WScript.Arguments.item(0) | |
Set objFSO = CreateObject("Scripting.FileSystemObject") | |
Set objFile = objFSO.GetFile(strTargetPath) | |
strBaseName = objFSO.GetBaseName(objFile) | |
strTargetFolder = objFSO.GetParentFolderName(objFile) | |
set WshShell = WScript.CreateObject("WScript.Shell") |
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
@echo off | |
color 1F | |
%windir%\system32\reg.exe query "HKU\S-1-5-19" >nul 2>&1 || ( | |
echo ------- | |
echo *** WARNING *** | |
echo ------- | |
echo. | |
echo ADMINISTRATOR PRIVILEGES NOT DETECTED | |
echo ____________________________________________________________________________ |
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
<service> | |
<id>redis</id> | |
<name>redis</name> | |
<description>redis server</description> | |
<workingdirectory>d:\redis</workingdirectory> | |
<logpath>d:\redis\logs</logpath> | |
<logmode>rotate</logmode> | |
<executable>redis-server.exe</executable> | |
<startargument>redis.windows.conf</startargument> | |
<stopexecutable>taskkill.exe</stopexecutable> |
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
// ==UserScript== | |
// @name Frame Killer | |
// @namespace http://www.arantius.com/ | |
// @description 联通http劫持 | |
// @include * | |
// @grant none | |
// ==/UserScript== | |
var frames=document.evaluate("//frame", document, null, | |
XPathResult.ANY_TYPE, null); | |
var f; |
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/bash | |
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin | |
export PATH | |
#=============================================================================================== | |
# System Required: CentOS6.x (32bit/64bit) | |
# Description: Install Shadowsocks(libev) for CentOS | |
# Author: Teddysun <[email protected]> | |
# Intro: http://teddysun.com/357.html | |
#=============================================================================================== |
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/bash | |
log_dir=/usr/local/nginx/logs/ | |
backup_log_dir=/data/nginx_logs/$(date +"%Y%m")/ | |
log_date=$(date +"%Y%m%d") | |
nginx_pid=/var/run/nginx.pid | |
keep_days=30 | |
echo "processing ${log_dir}" | |
#create backup dir |
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
C:\backup\exe\WinSCP.com /privatekey=C:\backup\a.ppk [email protected] /command "synchronize local C:\backup\data\ /data/sqldump/BACKUPS/" exit |
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 | |
# | |
# chkconfig: 35 99 99 | |
# description: Node.js /home/nodejs/sample/app.js | |
# | |
. /etc/rc.d/init.d/functions | |
USER="nodejs" |
OlderNewer