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 | |
# daily backup | |
# last update 2017-12-25 | |
# | |
function usage { | |
echo "$1 not set" | |
echo "usage: " | |
echo "7zback <BackToPath> <Bac |
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
:: @echo off | |
:: daily download pchome by bitsadmin | |
set /a dt=%date:~0,4%%date:~5,2%%date:~8,2% | |
set pchome=http://24h.pchome.com.tw/onsale/v3/%dt%/#!3c.htm | |
bitsadmin.exe /transfer "download" %pchome% d:\local\downloads\pchome.html |
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
function withBig5($arg_strContent) | |
{ | |
$blnEnglishOnly= true; | |
$intLoopCount = 0; | |
$intContentLength = strlen($arg_strContent); | |
while ($intLoopCount < $intContentLength) | |
{ | |
$chrSingle = substr($arg_strContent,$intLoopCount,1); | |
if(ord($chrSingle) > 0x80) | |
{ |
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
@echo off | |
::boot notice | |
:: change these setting | |
set uid=yourname@gmail.com | |
set upw=yourpass | |
set from=yourname@gmail.com | |
set to=yourname@gmail.com | |
set title="Boot Notice" | |
set emailclient="D:\tasks\sendEmail.exe" |
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 /f %i in ('@docker ps -a -q') do docker rm %i |
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 /f %i in ('@docker ps -a -q') do docker rm %i |
NewerOlder