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 | |
sleep 7 | |
/usr/bin/wget --http-user="5550156" --http-passwd="5555258" --proxy-user="5550156" --proxy-password="555258" --output-document=/dev/null --append-output=/var/log/leonet http://google.com | |
exit 0 | |
#This script is located at /usr/local/bin/leonet | |
# |
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
set sw=4 | |
set sts=4 | |
set et | |
set autoindent | |
set smartindent | |
set incsearch | |
set ignorecase | |
set smartcase | |
set backspace=indent,eol,start | |
set vb |
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
<html> | |
<head> | |
<script type="text/javascript"> | |
function getLocalIP(){ | |
var yip2=java.net.InetAddress.getLocalHost(); | |
var yip=yip2.getHostAddress(); | |
document.getElementById("ip_addr").innerHTML=yip; | |
} | |
var ipx ="ERROR" |
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
bad_names=["threadList","handleSuspend","handleDisturb","handleDisturbAction","handleFollowParent","handleFollowChild","handleDisturbSession","handleResume","handleStatus","setBreakPoint","deleteBreakPoint","handleBreak","handleBreak","handleClear","setCommonBreakPoint","handleCommonBreak","handleContinue","handlePrint","handleExec","handleUp","handleDown","handleUp","handleStep","handleNext","handleReturn","handleWhere"] | |
bad_names.each{|name| | |
good = String.new(name) | |
name.split("").each{|charr| | |
if(charr =~ /[A-Z]/) | |
good.gsub!(charr,"_"+charr.downcase) | |
end | |
} |
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
#!/usr/bin/env bash | |
# author: Duane Johnson | |
# email: duane.johnson@gmail.com | |
# date: 2008 Jun 12 | |
# license: MIT | |
# | |
# Based on discussion at http://kerneltrap.org/mailarchive/git/2007/11/12/406496 | |
pushd . >/dev/null |
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 | |
# Configurarion | |
DBHOST="127.0.0.1" | |
DBPORT="5432" | |
DBNAME="as_3_7_5" | |
PGUSER="postgres" | |
PGPASSWORD="a" | |
PGSQL_CMD="/usr/bin/psql" | |
AS_SERVER="127.0.0.1" |
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
#!/usr/bin/env bash | |
set -o nounset | |
set -o errexit | |
# | |
#----Settings | |
# | |
readonly DEFAULT_APP_DIR="/tmp/logs_dir" | |
# DEFAULT_MAX_SIZE in MB. Files bigger than MAX_SIZE are not compressed | |
readonly DEFAULT_MAX_SIZE="1" |
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 | |
policy=${HOME}/.jstatd.all.policy | |
[ -r ${policy} ] || cat >${policy} <<'POLICY' | |
grant codebase "file:${java.home}/../lib/tools.jar" { | |
permission java.security.AllPermission; | |
}; | |
POLICY | |
jstatd -J-Djava.security.policy=${policy} & |
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 | |
#-- Creates a SSH-fal chain | |
/sbin/iptables -N SSH-fal | |
#-- Only 3 login attempts can be done from the same IP whithin a minute | |
/sbin/iptables -A SSH-fal -p tcp --dport 22 -m state --state NEW -m recent --set --name SSH | |
/sbin/iptables -A SSH-fal -p tcp --dport 22 -m state --state NEW -m recent --update --seconds 60 --hitcount 2 --rttl --name SSH -j LOG --log-prefix "IPTABLES: failed login attempt" | |
/sbin/iptables -A SSH-fal -p tcp --dport 22 -m state --state NEW -m recent --update --seconds 60 --hitcount 3 --rttl --name SSH -j DROP |
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 | |
# description: Tomcat Start Stop Restart | |
# chkconfig: 345 82 25 | |
export JAVA_HOME="/usr/lib/jvm/java" | |
export PATH="${JAVA_HOME}/bin:${PATH}" | |
CATALINA_HOME="/opt/tomcat/tomcat-7.0.47" | |
case $1 in | |
start) | |
/bin/su tomcat -c "${CATALINA_HOME}/bin/startup.sh" |
OlderNewer