Skip to content

Instantly share code, notes, and snippets.

@chinlung
chinlung / .profile
Created March 20, 2020 14:26 — forked from bmhatfield/.profile
Automatic Git commit signing with GPG on OSX
# In order for gpg to find gpg-agent, gpg-agent must be running, and there must be an env
# variable pointing GPG to the gpg-agent socket. This little script, which must be sourced
# in your shell's init script (ie, .bash_profile, .zshrc, whatever), will either start
# gpg-agent or set up the GPG_AGENT_INFO variable if it's already running.
# Add the following to your shell init to set up gpg-agent automatically for every shell
if [ -f ~/.gnupg/.gpg-agent-info ] && [ -n "$(pgrep gpg-agent)" ]; then
source ~/.gnupg/.gpg-agent-info
export GPG_AGENT_INFO
else
@chinlung
chinlung / github_gpg_key.md
Created March 20, 2020 14:25 — forked from ankurk91/github_gpg_key.md
Github : Signing commits using GPG (Ubuntu/Mac)

Github : Signing commits using GPG (Ubuntu/Mac) 🔐

  • Do you have an Github account ? If not create one.
  • Install required tools
  • Latest Git Client
  • gpg tools
# Ubuntu
sudo apt-get install gpa seahorse
# MacOS with https://brew.sh/
@chinlung
chinlung / hex2b64
Last active March 2, 2020 09:51
Used to encode a field for Auth #hex2b64 #php
function hex2b64($str)
{
$raw = '';
for ($i = 0; $i < strlen($str); $i += 2) {
$raw .= chr(hexdec(substr($str, $i, 2)));
}
return base64_encode($raw);
}
/*
@chinlung
chinlung / delete_mac_time_machine_local_snapshot.txt
Created April 29, 2019 08:48
刪除 MAC 時光機本機 SnapShots
tmutil listlocalsnapshotdates / |grep 20|while read f; do tmutil deletelocalsnapshots $f; done
@chinlung
chinlung / Developer_Tools.txt
Last active April 17, 2019 06:25
工作生產力的工具
★ GitKraken:GitHub GUI Client 工具
★ Insomnia:類似 Postman 但還允許查詢 GraphQL
★ Visual Studio Code:程式碼編輯工具
★ Dash:離線查詢超過 200 種的 API 文件
★ SourceTree:Git GUI Client 工具 (跟第一個屬性重複)
★ Postico:Postgres Client
★ Hyper:Electron-Based 的 Terminal 工具
★ Notion:文件協作平台
★ Dropbox Paper:文件撰寫
★ Bear App:文件撰寫

Web Development with Laravel 5

目標

如何在開發的過程中加入測試。

  1. Model
  2. Repository
  3. Controller
  4. Auth

Angular 2 開發實戰:新手入門篇 實作環境說明

實作環境說明

為了能讓大家能在課堂上順利地進行實作,請先將需要的軟體全部安裝好,以下是安裝的相關軟體與安裝步驟與說明。

[ 作業系統 ]