Categories
- FFMpeg (5)
- Libav (1)
- Google (3)
- iBeacon (1)
- LDAP (3)
- Me (2)
- Network (11)
- OS (149)
- RTMP (4)
- SIP (1)
- Kamailio (1)
- SNMP (1)
- VMware (20)
- VCP考試 (1)
- 伺服器 網站服務 (105)
- 名詞解釋 (4)
- 專案管理 (1)
- 工具軟體 (51)
- Adobe (1)
- FMS (1)
- Cloudera (1)
- Docker (1)
- Eclipse (4)
- Intellij (2)
- OBS (2)
- Office (10)
- Excel (4)
- PowerPoint (5)
- Postman (2)
- Splunk (13)
- Virtualbox (2)
- Visual Studio (2)
- 文字編輯器 (10)
- Sublime Text 2 (6)
- Sublime Text 3 (3)
- Vim (3)
- 連線工具 (1)
- Xshell (1)
- Adobe (1)
- 程式語言 (81)
- CSS (2)
- HTML (2)
- iOS (1)
- Java (31)
- JavaScript (5)
- jQuery (4)
- jsTree (2)
- JSP (3)
- PHP (16)
- Python (8)
- Ruby (1)
- sed (1)
- Shell Script (8)
- Windows Bash Script (1)
- XML (1)
- 資料庫 (38)
- FFMpeg (5)
Author Archives: cowman.chiang
Splunk 取得License使用量
假設是要取得目前使用量 index=internal source=*metrics.log group=per_index_thruput NOT (series=* OR series=*summary) starttime=02/07/2013:00:00:00 | timechart span=1d sum(eval(kb/1024)) AS “MB indexed” by series 基本上就是限制starttime的起始為當日的00:00:00 (starttime format為 %m/%d/%Y:%H:%M:%S) 如果是要取得最近幾天的License Usage index=_internal source=*license_usage.log type=RolloverSummary earliest=-7d | eval GB = b/1024/1024/1024 | eval _time = _time – 43200 … Continue reading
Posted in Splunk
Leave a comment
Ping 前面加上時間戳記
其實寫程式或是架Smokeping就好了,不過就是懶… 以下是網路上搜尋到的寫法 (來源) Dim args, flag, unsuccOut args=”” otherout=”” flag=0 If WScript.Arguments.count = 0 Then WScript.Echo “Usage: cscript tping.vbs [-t] [-a] [-n count] [-l size] [-f] [-i TTL] [-v TOS]” WScript.Echo ” [-s count] [[-j host-list] | [-k host-list]]” WScript.Echo … Continue reading
Posted in Windows
Leave a comment
PowerPoint巨集,將物件移到最前面
查詢物件名稱 Sub Who_AM_I() With ActiveWindow.Selection.ShapeRange(1) MsgBox .Name End With End Sub 將物件移到最前面 Sub Bringtofront() ActivePresentation.Slides(第幾張投影片).Shapes(“物件名稱”).ZOrder msoBringToFront End Sub
Posted in Office, PowerPoint
Leave a comment
MySQL Process
秀出 Process list show processlist 刪除 PID kill 秀出目前版本 SELECT VERSION()G
Posted in MySQL
Leave a comment
Splunk Mail2000 Log Source Type
vim /opt/splunk/etc/system/local/props.conf [mail2000_access] NO_BINARY_CHECK = 1 pulldown_type = 1 [mail2000_imap] NO_BINARY_CHECK = 1 pulldown_type = 1 [mail2000_imss] NO_BINARY_CHECK = 1 pulldown_type = 1 [mail2000_login] NO_BINARY_CHECK = 1 pulldown_type = 1 [mail2000_mailer] NO_BINARY_CHECK = 1 pulldown_type = 1 [mail2000_pop3] NO_BINARY_CHECK = … Continue reading
Linux 自動設定 +1 天的日期
Linux 自動設定 +1 天的日期 date $(date -d’1 day’ +”%m%d%H%M%Y”)
Posted in Linux
Leave a comment
split 切割檔案
使用方法: split [OPTION] [INPUT [PREFIX]] -a, –suffix-length=N use suffixes of length N (default 2) -b, –bytes=SIZE put SIZE bytes per output file -C, –line-bytes=SIZE put at most SIZE bytes of lines per output file -d, –numeric-suffixes use numeric suffixes instead … Continue reading
Posted in Linux
Leave a comment
[Splunk] 修改Google MAP模組圖示的Height值
vim /opt/splunk/etc/apps/maps/default/data/ui/views/maps.xml 搜尋 ( 在module name=”GoogleMaps” 階層內) 預設值為 500px 可以視需要修改
Posted in Linux, Splunk
Leave a comment
搜尋內文
為了要尋找Redmine的語系檔案…爬了一下網路 除了老妖怪說的locate尋找檔名(必須先updatedb)外 尚可以使用grep進行 grep -Rs ‘搜尋文字’ -R => 搜尋路經包含子目錄 -s => 遇到錯誤、檔案不存在時不秀出資訊
Posted in Linux
Leave a comment