- Enviroment
- Ubuntu 20.04
- Intellij IDEA 2020
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"bytes" | |
"encoding/binary" | |
"flag" | |
"io" | |
"io/ioutil" | |
"log" | |
"os" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/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 |
一個傳統 Java Spring 的應用程式會分為三層 @Controller
@Service
@Repository
,然後依據組織需求,再往下細分。
比方說 Service 層複雜的話,會增加 Gateway、Facade 層,或是我們組織獨有的 CoreService 層
另一個層級大部份 Java 組織會忽略的是 Domain Model 層,絕大多數 Java 開發者會開個 entity 或 model package,然後 將所有的 Entity 往裡面丟。然而該 Entity 只是一堆欄位和 getter/setter 的堆疊,也就是單純的 Table 的對應物件而已, 不具備任何 business logic
brew uninstall osxfuse
brew install --cask macfuse
brew install gromgit/fuse/ifuse-mac
# version 1.1.4 (see https://github.com/gromgit/homebrew-fuse)- restart needed for ifuse to be on path
- If needed, follow instructions at https://github.com/macfuse/macfuse/wiki/Getting-Started to enable kernel extension
If this error is encountered:
OlderNewer