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)
- 程式語言 (80)
- CSS (2)
- HTML (2)
- iOS (1)
- Java (30)
- 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)
- 資料庫 (37)
- FFMpeg (5)
Category Archives: OS
定時間看結果 — Watch
WATCH(1) Linux User’s Manual WATCH(1) NAME watch – execute a program periodically, showing output fullscreen SYNOPSIS watch [-dhvt] [-n ] [–differences[=cumulative]] [–help] [–interval=] [–no-title] [–version] DESCRIPTION watch runs command repeatedly, displaying its output (the first screenfull). This allows you to … Continue reading
強制把 80 轉到 443
編輯 httpd.conf 在 # End of proxy directives. 後加入下面幾句 (應該是加在哪裡都ok) RewriteEngine on RewriteCond %{SERVER_PORT} !^443$ RewriteRule ^/?(.*)$ https://%{SERVER_NAME}%{REQUEST_URI} [L,R] 不過需先確認是否有載入下面這個module LoadModule rewrite_module modules/mod_rewrite.so
Posted in Linux
Leave a comment
重設root密碼
之前忘記root密碼時都是修改GRUB進單人模式修改 開機 -> e -> 選擇kernel -> e -> 最後加入”single”或是”-s” 不過這次遇到一個囧境 因為修改系統時間導致fsck error…需要修正 這時候就需要root密碼….但是我一開始並沒有設定root密碼= =+ 進單人模式一樣先跳出fsck error….Orz 這時候就只能用外接的方式處理了…. 如果是用Live CD開機 命令字元 -> “su -” -> “mkdir /mnt/system” -> “mount /dev/sda2 /mnt/system” -> “chroot /mnt/system” -> passwd 重設密碼 如果是用安裝光碟開機 輸入 “linux … Continue reading
Posted in Linux
Leave a comment
SED
刪除第一行 sed ‘1d’ 文件 刪除第一個字元 sed ‘s/^.//’ 文件 刪除最後一個字元 sed ‘s/.$//’ 文件 假設要寫在一起,用”;”連結 sed ‘1d;s/^.//;s/.$//’ 文件
Posted in Linux
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
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