Git 新手上路 AMA 實作練習腳本
- Windows
- Mac
REM 建立容器 | |
docker run --name myc -it microsoft/windowsservercore cmd | |
REM 列出容器 (執行中的容器) | |
docker ps | |
REM 列出容器 (所有的的容器) |
@ECHO OFF | |
SET DIFFTOOL="C:\Program Files (x86)\WinMerge\WinMergeU.exe -s -e -x -ul -ur -wl -dl %%bname -dr %%yname %%base %%mine" | |
SET MERGETOOL="C:\Program Files (x86)\WinMerge\WinMergeU.exe %%theirs %%mine %%merged" | |
REG ADD HKEY_CURRENT_USER\Software\TortoiseGit /v Diff /t REG_SZ /d %DIFFTOOL% /f | |
REG ADD HKEY_CURRENT_USER\Software\TortoiseGit /v DiffViewer /t REG_SZ /d %DIFFTOOL% /f | |
REG ADD HKEY_CURRENT_USER\Software\TortoiseGit /v Merge /t REG_SZ /d %MERGETOOL% /f |
Table 1: There is a pipe ( |
) character inside Table Cell. It can't display properly.
Alias | Command | What to Type |
---|---|---|
git cleanup |
`git branch --merged | grep -v '*' |
Table 2: There is a pipe ( |
) character that escape with a HTML Entity ( |
). Within ` sign, all HTML Entities will output ASIS which is not what I want.
| Alias | Command | What to Type |
{ | |
"explorer.openEditors.visible": 0, | |
"workbench.colorTheme": "Default Light+", | |
"workbench.iconTheme": "vscode-simpler-icons", | |
"workbench.sideBar.location": "right", | |
// 需下載安裝 Fira Code 字型 (安裝 OTF 格式) | |
// https://github.com/tonsky/FiraCode/releases | |
// 需下載客製化過的 Microsoft YaHei Mono 字型 |
kubectl completion bash | sudo tee /etc/bash_completion.d/k > /dev/null
sudo sed -e 's/local commands=("kubectl")/local commands=("k")/g' /etc/bash_completion.d/k -i
sudo sed -e 's/__start_kubectl kubectl/__start_kubectl k/g' /etc/bash_completion.d/k -i
echo 'alias k=kubectl' | tee -a ~/.profile > /dev/null
. ~/.profile
編號 | 繁體字 | Unicode | JavaScript | 簡體字 | Unicode | JavaScript |
---|---|---|---|---|---|---|
1 | 內 | U+5167 |
\u{5167} |
内 | U+5185 |
\u{5185} |
2 | 勻 | U+52FB |
\u{52FB} |
匀 | U+5300 |
\u{5300} |
3 | 弔 | U+5F14 |
\u{5F14} |
吊 | U+540A |
\u{540A} |
4 | 戶 | U+6236 |
\u{6236} |
户 | U+6237 |
\u{6237} |
5 | 冊 | U+518A |
\u{518A} |
册 | U+518C |
\u{518C} |
6 | 朮 | U+672E |
\u{672E} |
术 | U+672F |
\u{672F} |
7 | 氾 | U+6C3E |
\u{6C3E} |
泛 | U+6CDB |
\u{6CDB} |
8 | 丟 | U+4E1F |
\u{4E1F} |
丢 | U+4E22 |
\u{4E22} |
using System; | |
using System.IO; | |
using System.Threading.Tasks; | |
using Microsoft.AspNetCore.Http; | |
// ReSharper disable once CheckNamespace | |
namespace kwd.gist | |
{ | |
/// <summary> |
FROM ubuntu as buildenv | |
WORKDIR / | |
RUN sed -e 's/http:\/\/archive.ubuntu.com\/ubuntu\//http:\/\/ftp.cse.yzu.edu.tw\/ubuntu\//g' -i /etc/apt/sources.list | |
RUN apt-get update && apt-get install build-essential git -y | |
RUN git clone https://github.com/bartobri/no-more-secrets.git | |
WORKDIR /no-more-secrets | |
RUN make nms |