If uninstall needed first:
$ brew uninstall macfuse
$ brew uninstall ifuse-mac
$ brew uninstall libplist
一個傳統 Java Spring 的應用程式會分為三層 @Controller @Service @Repository,然後依據組織需求,再往下細分。
比方說 Service 層複雜的話,會增加 Gateway、Facade 層,或是我們組織獨有的 CoreService 層
另一個層級大部份 Java 組織會忽略的是 Domain Model 層,絕大多數 Java 開發者會開個 entity 或 model package,然後 將所有的 Entity 往裡面丟。然而該 Entity 只是一堆欄位和 getter/setter 的堆疊,也就是單純的 Table 的對應物件而已, 不具備任何 business logic
| #/bin/bash | |
| # Clone, compile & install | |
| git clone --single-branch --branch Super-with-Scrolling https://github.com/rbreaves/x11vnc.git | |
| # Enable all sources | |
| sudo sed -i '/^#\sdeb-src /s/^#//' "/etc/apt/sources.list" | |
| cd ./x11vnc | |
| sudo apt update |
| package main | |
| import ( | |
| "bytes" | |
| "encoding/binary" | |
| "flag" | |
| "io" | |
| "io/ioutil" | |
| "log" | |
| "os" |
| #!/bin/bash -l | |
| # find latest backup | |
| thinbackup_path="$JENKINS_HOME/thinBackup" | |
| latest_backup_folder=$(ls -t $thinbackup_path | head -n1) | |
| full_path="$thinbackup_path/$latest_backup_folder" | |
| echo "Latest backup is located at ${full_path}" | |
| # pack it up | |
| backup_name="$latest_backup_folder.tar.gz" |
| #!/bin/bash | |
| # install CUDA Toolkit v8.0 | |
| # instructions from https://developer.nvidia.com/cuda-downloads (linux -> x86_64 -> Ubuntu -> 16.04 -> deb (network)) | |
| CUDA_REPO_PKG="cuda-repo-ubuntu1604_8.0.61-1_amd64.deb" | |
| wget http://developer.download.nvidia.com/compute/cuda/repos/ubuntu1604/x86_64/${CUDA_REPO_PKG} | |
| sudo dpkg -i ${CUDA_REPO_PKG} | |
| sudo apt-get update | |
| sudo apt-get -y install cuda |
| docker logs nginx 2>&1 | grep "127." | |
| # ref: http://stackoverflow.com/questions/34724980/finding-a-string-in-docker-logs-of-container |
| // Convert from normal to web-safe, strip trailing "="s | |
| function webSafe64(base64) { | |
| return base64.replace(/\+/g, '-').replace(/\//g, '_').replace(/=+$/, ''); | |
| } | |
| // Convert from web-safe to normal, add trailing "="s | |
| function normal64(base64) { | |
| return base64.replace(/\-/g, '+').replace(/_/g, '/') + '=='.substring(0, (3*base64.length)%4); | |
| } |