Skip to content

Instantly share code, notes, and snippets.

View maxmilian's full-sized avatar
😀

Max Hsu maxmilian

😀
View GitHub Profile
@maxmilian
maxmilian / 鼠鬚管.md
Last active July 17, 2021 03:52
鼠鬚管安裝

此文件是安裝 鼠鬚管 在 Mac 上的教學

現在已經支援 homebrew 直接安裝

brew cask install squirrel

安裝完鼠鬚管後,已經內建了許多輸入法,但是沒有習慣的注音,所以接下來是要找注音的輸入法。 可參考 東風破

@maxmilian
maxmilian / Ethereum.md
Last active December 5, 2018 04:13
geth 記錄

這是使用 geth 的記錄,作業系統為 MAC OSX

事前準備

安裝 Geth

brew tap ethereum/ethereum
@maxmilian
maxmilian / 樹莓派.md
Last active July 6, 2018 16:34
樹莓派

安裝 NOOBS

下載最新 NOOBS,目前最新為 v2.8.2 版。 解壓縮後,放置全部檔案於一個格式化 FAT32 的 SD 卡上。

環境

在 tomcat 的 bin 目錄加入 setenv.sh,指定執行的 active profile

CATALINA_OPTS="-Dspring.profiles.active=production $CATALINA_OPTS"
@maxmilian
maxmilian / EFS-filesystem.md
Last active March 26, 2024 01:46
unknown filesystem type 'efs'
sudo apt-get update
sudo apt-get install -y git binutils make
git clone https://github.com/aws/efs-utils
cd efs-utils
make deb
sudo apt-get install -y ./build/amazon-efs-utils*deb

Linux

時區

TZ=Asia/Taipei
ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
echo TZ=Asia/Taipei >> /etc/default/cron

根據此文章,此流程有做過簡化 這邊使用 Webroot 來抓取憑證

這邊假設要加入 abc.statementdog.com 的憑證, Nginx 設定檔放置於 /etc/nginx/site-available/abc.statementdog.com 根目錄為 /your/abc.statementdog.com/root/path

安裝 Let's Encryption Client (certbot)

Apache Solr

Concept

Apache Solr 大致可分為四個功能區塊

  • Mode (managed-schema 或舊版 schema.xml)
  • Configuration (solrconfig.xml)
  • Index
  • Search

Solr Archecture