This file contains hidden or 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 ruby | |
| require 'win32ole' | |
| abort("Usage: #{$0} WordFilesDirectory") if ARGV.length < 1 | |
| fso = WIN32OLE.new('Scripting.FileSystemObject') | |
| wordFiles = [] | |
| Dir.foreach(ARGV[0]) do |f| | |
| path = File.join(ARGV[0], f) |
This file contains hidden or 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 | |
| # swap clear | |
| /sbin/swapoff -a && /sbin/swapon -a | |
| # disk sync | |
| /bin/sync | |
| /bin/sync | |
| /bin/sync |
This file contains hidden or 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 | |
| MAILTO="root" | |
| PATH=/usr/bin:/bin | |
| # excludeopt setup | |
| excludelist=/etc/clamscan.exclude | |
| if [ -s $excludelist ]; then | |
| for i in `cat $excludelist` | |
| do |
This file contains hidden or 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 | |
| if [ $# -eq 2 ]; then | |
| URL=$1 | |
| MAILTO=$2 | |
| else | |
| echo "usage : $0 check_url alert_mail_address" | |
| exit 1 | |
| fi |
This file contains hidden or 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 | |
| LANG=ja_JP.utf8 | |
| pid=$$ | |
| date=`date '+%Y-%m-%d-%H_%M'` | |
| outdir="." | |
| if [ $# -le 1 ]; then |
NewerOlder