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 | |
# by stanwu http://stanwu.org | |
for i in `cat stan/passwd | grep -v \# | awk -F: '{print $1}'` | |
do | |
echo $i | |
mkdir -p $i | |
chown $i $i | |
done |
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 | |
if [ -z "$1" ]; then | |
echo "Usage: $0 [backup/restore]" | |
exit | |
fi | |
mydir=`dirname $1` | |
mybase=`basename $1` | |
mypath="$mydir/$mybase" |
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 | |
mydate=`date +%m%d%y` | |
mkdir -p $mydate | |
tar cvzf - \ | |
/etc \ | |
/usr/local/bin \ | |
/var/mail \ | |
/home | split -b 2048M - $mydate/xxxxxxxx.tgz- |
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
<head> | |
<style type='text/css'> | |
#loading { | |
background: #ffffff; | |
position:absolute; width:100%; height:100%; | |
top:0; bottom:0; left:0; right:0; margin:auto; | |
filter:alpha(opacity=20); | |
-moz-opacity: 0.8; | |
opacity: 0.8; | |
z-index: 999999999; |
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 | |
for i in `ls` | |
do | |
#echo "[$i]" | |
if [ -d $i ]; then | |
mysize=`du -d 0 $i | awk '{print $1}'` | |
mydate=`date +%m%d%y` | |
if [ $mysize -lt 8388608 ]; then | |
echo "Pack $i -> $mysize" |
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
<a href="javascript:go2url('contact.php');" ondblclick="alrt('You double clicked on the link')">HERE</a> | |
<script> | |
function go2url(myURL) | |
{ | |
//alert (clickBusy); | |
if (clickBusy == 0 ) { | |
document.location.href=(myURL); | |
clickBusy = 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/bash | |
mkdir -p log | |
for i in `ls *.tgz *.tar.gz` | |
do | |
echo "Check $i..." | |
tar tvzf $i > log/$i.log | |
if [ $? != 0 ]; then | |
mv $i $i.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
#!/bin/sh | |
for i in `ls | grep -v md5$ | grep -v txt$` | |
do | |
if [ -s "$i.md5" ]; then | |
echo "$i had md5sum" | |
else | |
echo "Create $i" | |
md5sum "$i" > "$i.md5" | |
fi |
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 | |
# | |
# This shell script is design for Synology DS-411 | |
# auto move all of the archived files to /volume1/archives folder | |
# | |
b=`basename "$1"` | |
d=`pwd` | |
echo "[RUN] Check [$b] $d/$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
Dim objFSO | |
Dim objStream | |
Set objFSO = createobject("scripting.filesystemobject") | |
Set objStream = objFSO.CreateTextFile("test.csv", True) | |
for i=1 to 100000 | |
buf="" | |
for j=1 to 10 | |
buf = buf & i & "000" & j & "," |
OlderNewer