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 | |
keypath='/etc/opendkim/keys' | |
domain=$1 | |
separator=$2 | |
if [ ! -n "$domain" ] || [ ! -n "$separator" ]; then | |
echo "Please set domain and separator" | |
echo "ex) $0 [domain] [separator]" | |
exit; | |
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
IFS="\n";for i in `cat ./input.csv`; do echo $i|tr -d "\""|tr "," "\t" |
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; |
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
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/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
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/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
/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
<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')); | |
}); | |
}); |