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: Mac
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
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
open external program from java for mac os x
String[] cmds = {“open”, tempFile.getAbsolutePath(), “-a”, “/Applications/Microsoft Office 2011/Microsoft Excel.app”}; Runtime.getRuntime().exec(cmds);
Posted in Java, Mac, Office
Leave a comment
Add git branch name to bash prompt
edit ~/.bash_profile if [ -f $(xcode-select -p)/usr/share/git-core/git-completion.bash ]; then . $(xcode-select -p)/usr/share/git-core/git-completion.bash . $(xcode-select -p)/usr/share/git-core/git-prompt.sh fi #enables color in the terminal bash shell export CLICOLOR=1 #sets up the color scheme for list export LSCOLORS=ExFxCxDxBxegedabagacad #sets up the prompt color (currently … Continue reading
Install Hbase 5.9 in Mac OS X
Download hbase package tar.gz file from https://www.cloudera.com/documentation/enterprise/release-notes/topics/cdh_vd_cdh_package_tarball_59.html Untar tar.gz file edit conf/hbase-env.sh export JAVA_HOME={{JAVA_HOME Directory path}} edit conf/hbase-site.xml <property> <name>hbase.rootdir</name> <value>file:///{{location}}/data</value> </property> <property> <name>hbase.zookeeper.property.dataDir</name> <value>{{location}}/zookeeper</value> </property> <property> <name>hbase.zookeeper.quorum</name> <value>{{hostname}}</value> </property> start hbase service bin/start-hbase.sh run hbase shell bin/hbase shell stop … Continue reading
Posted in HBase, Mac
Leave a comment
Get timestamp in milliseconds
echo $(($(date +%s%N)/1000000)) in Mac OS X, the command date does not support the %N flag, we can install coreutils using homebrew. brew install coreutils Then use gdate to get which we want. echo $(($(gdate +%s%N)/1000000))
Posted in Linux, Mac
Leave a comment
[Mac] Port in use..
lsof -n -i4TCP:$PORT | grep LISTEN Ref: stackoverflow: Who is listening on a given TCP port on Mac OS X?
Posted in Mac
Leave a comment
[Intellij] Can’t start git
After Mac OS X upgrading, something happen in the Intellij. screenshot Then we should enable the Xcode license again. sudo xcodebuild -license Ref. OSX Mavericks and Git Error
Install Wireshark in Mac OSX 10.10
Ref: [Mac] Wireshark 找不到 X11? brew cask install wireshark brew cask install xquartz
Posted in Mac
Leave a comment