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
Mac OS X upgrade cURL with SSL support
┌─Cowman@CLOUD-42:~/Downloads/20160511 └──$ sh curl.sh guList curl: (1) Protocol “‘https” not supported or disabled in libcurl ┌─Cowman@CLOUD-42:~/Downloads/20160511 └──$ brew install curl –with-nghttp2 ==> Installing dependencies for curl: openssl, pkg-config, libev, libevent, jansson, boost, libxml2, spdylay, nghttp2 ….
Posted in Mac
Leave a comment
Continuously print the file content
Use the command ‘tail’ to print the file contents, starting from the beginning of the file and print new contents continuously. tail +1f ‘file’
Posted in Linux
Comments Off on Continuously print the file content
[Linux] pkill command
I don’t know what’s going on. But we can use command “pkill” to delete those abnormal processes. sudo pkill -f pgrep Reference: stackoverflow: How to kill all processes with a given partial name?
Posted in Linux
Comments Off on [Linux] pkill command
Line breaks issue
When we use command “ssh” with auto-completion, we get this error result. This is because we used the editor “sublime text” to edit the config before, which used the line endings of Windows. Then we can edit the setting of … Continue reading
Posted in Mac, Sublime Text 2, Sublime Text 3
Comments Off on Line breaks issue
Mount remote folder over ssh on mac
Install sshfs Use brew (brew install sshfs) will get this error message, “Error: sshfs has been disabled because it requires FUSE!” Ref. https://github.com/telepresenceio/telepresence/issues/1654#issuecomment-1204676705 So download and install https://github.com/osxfuse/sshfs/releases/download/osxfuse-sshfs-2.5.0/sshfs-2.5.0.pkg Create local folder # mkdir mountFolder Mount remote folder # sshfs name@ssh_host:/path/to/folder … Continue reading
Posted in Mac
Comments Off on Mount remote folder over ssh on mac
[Apache] wordpress permalink 404 issue
edit site conf (vim /etc/apache2/sites-available/pr.site.org.conf) <VirtualHost pr.site.org:80> ServerName pr.site.org ServerAdmin webmaster@localhost DocumentRoot /var/www/pr.site.org # !– add this section <Directory /var/www/pr.site.org> Options Indexes FollowSymLinks MultiViews AllowOverride All Order allow,deny allow from all </Directory> # !– ErrorLog ${APACHE_LOG_DIR}/pr_error.log CustomLog ${APACHE_LOG_DIR}/pr_access.log combined </VirtualHost> … Continue reading
Posted in Apache, Ubuntu, WordPress
Leave a comment
[Docker] The crontab is not work in docker
Source: docker容器内cron不执行 vim /etc/pam.d/crond # The PAM configuration file for the cron daemon # # No PAM authentication called, auth modules not needed account required pam_access.so account sufficient pam_access.so account include password-auth session required pam_loginuid.so session sufficient pam_loginuid.so session include … Continue reading
Posted in Docker, Linux
Leave a comment
[Python] fix error while loading shared libraries: libpython2.7.so.1.0
error log: /opt/rh/python27/root/usr/bin/python: error while loading shared libraries: libpython2.7.so.1.0: cannot open shared object file: No such file or directory check libpython2.7.so.1.0 exist? find . -name ‘libpython2.7.so.1.0’ if the file was exist: edit the ldconfig config echo “/opt/rh/python27/root/usr/lib64” > /etc/ld.so.conf.d/python27.conf ldconfig … Continue reading
Posted in CentOS, Python
Leave a comment
[Shelll Script] check tomcat status
!/bin/bash tomcat7=$(ps -ef | grep tomcat | wc -l) echo ${#tomcat7} if [ ${#tomcat7} -gt 0 ]; then printf “tomcat is running\n” else printf “tomcat is not running\n” fi
Posted in Linux, Shell Script, Tomcat
Leave a comment
[Linux] more than one commands after the pipe
Source: How to merge and pipe results from two different commands to single command? bash test.sh || { curl -X POST ‘https://testurl’ -d ‘{ “data”: { “type”: “type”, “content”: “測試” } }’; exit 1; }
Posted in Linux
Leave a comment