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 | |
if [ ! $1 ]; then | |
/bin/echo "logtail.sh FILE" | |
exit 1 | |
fi | |
CMD_SIZE=`/usr/bin/wc -c < $1` | |
NOWSIZE=$CMD_SIZE | |
if [ -f $1.offset ]; then | |
OFFSETSIZE=`/bin/cat $1.offset` | |
if [ $NOWSIZE -lt $OFFSETSIZE ]; then |
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
/* Google */ | |
@-moz-document url-prefix("http://www.google.co.jp/"), url-prefix("https://www.google.co.jp/") { | |
body { | |
counter-reset: result !important; | |
} | |
h3.r:before { | |
content: counter(result) ". " !important; | |
counter-increment: result !important; | |
} | |
} |
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
<script src="http://code.jquery.com/jquery.js"></script> | |
<script text="text/javascript">jQuery.noConflict();</script> | |
<!--[if lt IE 10]> | |
<script type="text/javascript"> | |
//place holder | |
jQuery(document).ready(function(){ | |
jQuery('input[placeholder]').each(function(){ | |
jQuery(this).watermark(jQuery(this).attr('placeholder')); | |
}); | |
}); |
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/echo -n `/bin/date +"%Y/%m/%d %H:%M:%S "` >> $1 | |
/usr/bin/vmstat 1 5|/usr/bin/tail -n 1 >> $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/echo -n `/bin/date +"%Y/%m/%d %H:%M:%S "` >> $1 | |
/usr/bin/iostat 1 5|/usr/bin/tail -n 1 >> $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
IFS=$'\n';for name in `find . ! -name "*.mp4" -name "B*" -print`; do mv $name $name.mp4; 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/date "+%Y%m%d%H%M%S" |
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
s/^Jan /2016\/01\// | |
s/^Feb /2016\/02\// | |
s/^Mar /2016\/03\// | |
s/^Apr /2016\/04\// | |
s/^May /2016\/05\// | |
s/^Jun /2016\/06\// | |
s/^Jul /2016\/07\// | |
s/^Aug /2016\/08\// | |
s/^Sep /2016\/09\// | |
s/^Oct /2016\/10\// |
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/echo -n `/bin/date +"%Y/%m/%d %H:%M:%S"`" " | |
/usr/sbin/postqueue -p|/usr/bin/wc -l |
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
for i in *.mp4; do mv "$i" "${i%.mp4}.m4a" ; done; |
OlderNewer