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 | |
DIR_IMAGE="/var/www/html/contents/" | |
CMD_FIND="/usr/bin/find" | |
CMD_XARGS="/usr/bin/xargs" | |
echo "### Self Heal Start. [${DIR_IMAGE}][time=`date +'%Y/%m/%d %H:%M:%S'`] ###" | |
${CMD_FIND} ${DIR_IMAGE} -noleaf -print0 | ${CMD_XARGS} --null stat > /dev/null | |
ret=$? |
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 | |
# | |
# crontab -l | |
# 00 3 * * * /usr/local/tlab/script/tomcat_log_del.bash tomcat_front > /dev/null 2>&1 | |
# | |
#---------- | |
# define. | |
#---------- | |
TOMCAT_UNIQ="${1:-tomcat}" | |
DIR_TOMCAT="/usr/local/${TOMCAT_UNIQ}" |
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
[user1@canal-mac01 19:58:46 log][315][20]$ brew install nagios | |
Warning: Your Xcode (4.6.3) is outdated | |
Please update to Xcode 5.0.1. | |
Xcode can be updated from the App Store. | |
==> Installing dependencies for nagios: libpng, jpeg, gd, nagios-plugins | |
==> Installing nagios dependency: libpng | |
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/libpng-1.5.14.mountain_lion.bottle.tar.gz | |
######################################################################## 100.0% | |
==> Pouring libpng-1.5.14.mountain_lion.bottle.tar.gz | |
🍺 /usr/local/Cellar/libpng/1.5.14: 15 files, 1.0M |
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 | |
SH_KNIFE="/usr/local/chef/chef-repo/knife_parallel.bash" | |
LOG_FILE="/usr/local/chef/chef-repo/knife_base.log" | |
func_usage() { | |
echo "Usage: `basename $0` {bootstrap|prepare|cook}" | |
return 0 | |
} |
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 | |
func_usage() { | |
echo "Usage: `basename $0` {role} {command}" | |
return 0 | |
} | |
if [ $# -lt 2 ]; then | |
func_usage | |
exit 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
# This file describes the network interfaces available on your system | |
# and how to activate them. For more information, see interfaces(5). | |
# The loopback network interface | |
auto lo | |
iface lo inet loopback | |
# The primary network interface | |
auto wlan0 | |
iface wlan0 inet dhcp |
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 | |
DATE="`date +%Y%m%d`" | |
HOUR="`date +%H`" | |
DATETIME="${DATE}_${HOUR}`date +%M%S`" | |
OUT_DIR="/tmp/${DATE}/${HOUR}" | |
OUTPUT="${OUT_DIR}/`basename $0 .bash`_`hostname`_${DATETIME}" | |
CMD_TCPDUMP="/usr/sbin/tcpdump" | |
SLEEP=30 | |
CAP_IF="eth1" |
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 | |
# | |
# unicorn | |
# | |
# chkconfig: - 80 20 | |
# description: unicorn | |
# processname: unicorn | |
# config: /usr/local/redmine/config/unicorn.rb | |
# pidfile: /usr/local/redmine/tmp/pids/.pid |
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
upstream solr-backend { | |
server 127.0.0.1:3306 max_fails=2 fail_timeout=10s; | |
server 127.0.0.1:18080 max_fails=2 fail_timeout=10s; | |
keepalive 60; | |
} | |
server { | |
listen 80; | |
server_name localhost; |
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
javascript:var w=window.open('','_blank','width=800,height=500,scrollbars=yes');var s=document.createElement('script');s.charset='Shift_JIS';s.src='http://tkr.nsf.jp/tagcheck/tagcheck2.js?'+Math.random();document.body.appendChild(s);void(0); |