跳到主要內容

[command] 刪除n天前的檔案

REM Remove files older than 60 days
forfiles /p "D:\Export" /s /m *.* /c "cmd /c Del @path" /d -60

留言

這個網誌中的熱門文章

[python] python 時區轉換 ( timezone )

python 時區轉換 import datetime as dt import pytz d = dt.datetime(2019,1,1,14,0,0) #create Taipei timezone tw = pytz.timezone('Asia/Taipei') #set d timezone is 'Asia/Taipei' twdt = tw.localize(d) #change to utc time utc_dt = twdt.astimezone(pytz.utc) *注意 網路上很多使用 d.replace(tzinfo=tw)   但是可能會出現時差問題, 如下: datetime.time(23, 18, 5, tzinfo=<DstTzInfo 'Asia/Shanghai' LMT+8:06:00 STD>) 參考文件 python时区设置——pytz模块

[HTML] 文字浮水印效果 text watermark css

[.css] .info-mask {     height: 0;       position: absolute;       margin-top:120px;   } .info-opacity {     opacity: 0.8;     color: black; } .info-text {     color: gray;     font-size: 40px;     -webkit-transform: rotate(-5deg);       line-height: 60px;     max-width:1200px;     letter-spacing:3px;     padding-left:0.8em; } [.html]     <div class="info-mask">         <p class="info-text">             WaterMarkText         </p>     </div>    <table class="table table-bordered table-striped table-responsive table-hover" style="position:                 relative;" >        <tbody class="info-opacity" >     ...

[Firebase] 新增GCP專案 Real-time databse & 取得 GCP Auth

Firebase 新增專案 新增專案  -> 加入現有專案 -> 選擇GCP專案 [將 Firebase 加入 Google 專案中] 建立Real-time Firebase 點選 [Database] -> 點選 [開始使用] 取得 Firebase GCP 授權 點選設定圖示 -> [使用者和權限] 點選側邊 [服務帳戶] -> [建立服務帳戶]