Instantly share code, notes, and snippets.

View humble.txt
{"options.show_top":"0","options.show_closed":"0","column.0.0":"1","column.1.0":"apps","options.auto_close":"1","open.closed":"true","options.hide_options":"1","options.show_recent":"0","options.shadow_color":"transparent","options.highlight_font_color":"#000","options.show_root":"0","options.show_devices":"0","apps.order":"[\"webstore\",\"pjkljhegncpnkpknbcohdijeoejaedia\",\"apdfllckaahabafndbhieahigkjlhalf\",\"pnhechapfaindjhompbnflcldabbghjo\",\"blpcfgokakmgnkcojhhkbfbldkacnbeo\",\"aohghmighlieiainnegkcijnfilokake\",\"aapocclcgogkmnckokdopfmhonfmgoek\",\"felcaaldnbdncclmgdcncolpebgiejap\"]","options.show_weather":"0","options.highlight_color":"#f1f1f1","options.width":"0.656","options.background_color":"#fafafa","options.font_color":"#333","options.lock":"1","options.css":"#main a{border-radius:1em;}","options.font_size":"20","options.show_apps":"1","options.show_2":"0"}
View linux_commend.md

常用Linux操作

ssh免密碼登入控制

ssh-keygen
ssh <user>@<host> "mkdir ~/.ssh/"
cat ~/.ssh/id_rsa.pub | ssh <user>@<host> "cat >> ~/.ssh/authorized_keys"
View dnsovertls.md
View git_commit_msg_rules.md

結構

< type >(<scope>): <subject>

type

  • 用於說明commit的類別,只允許使用下面7個標識。
feat:新功能(feature)
fix:修補bug
View cert.sh
openssl req -x509 -out localhost.crt -keyout localhost.key \
-newkey rsa:2048 -nodes -sha256 \
-subj '/CN=localhost' -extensions EXT -config <( \
printf "[dn]\nCN=localhost\n[req]\ndistinguished_name = dn\n[EXT]\nsubjectAltName=DNS:localhost\nkeyUsage=digitalSignature\nextendedKeyUsage=serverAuth")
View gpg.md

Use GPG in Github

  • Only need to install GPG Suite.
  • Click "New"
  • New GPG Keys
  • Click "No Thanks!" if you would not upload public key
  • Open your Terminal
~> gpg --list-secret-keys --keyid-format LONG bearflorencea@gmail.com
View macOS development build.txt
[SSD開啟trimforce]
sudo trimforce enable
[開發環境自動安裝腳本(注意xcode工具一定必須先安裝)]
xcode-select --install
curl https://gist.githubusercontent.com/Florencea/2ef5c31294ae099c9ebb27ba50f5b80f/raw/d89d2970e5529c60c629f7185fa1bf33e1095d7b/installer.sh | sh
[防止AdobeCreativeCloud開機啟動]
sudo rm -f /Library/LaunchAgents/com.adobe.AdobeCreativeCloud.plist
View installer.sh
# homebrew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
# fish shell
brew install fish
echo '/usr/local/bin/fish' | sudo tee -a /etc/shells
chsh -s /usr/local/bin/fish
mkdir -p ~/.config/fish
echo 'set -g -x PATH /usr/local/bin $PATH\nset -g -x fish_greeting Welcome, Princess Florencea.' >> ~/.config/fish/config.fish
# brew cli tools
brew install git nano wget node python python@2 mongodb redis clang-format