Skip to content

Instantly share code, notes, and snippets.

Giving is a reward in itself

Will 保哥 doggy8088

Giving is a reward in itself
Block or report user

Report or block doggy8088

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Dockerfile
FROM ubuntu as buildenv
RUN sed -e 's/http:\/\/\/ubuntu\//http:\/\/\/ubuntu\//g' -i /etc/apt/sources.list
RUN apt-get update && apt-get install build-essential git -y
RUN git clone
WORKDIR /no-more-secrets
RUN make nms
doggy8088 / ResponseBuffering.cs
Created Jan 22, 2019 — forked from Dkowald/ResponseBuffering.cs
ResponseBuffering for Asp.Net core
View ResponseBuffering.cs
using System;
using System.IO;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
// ReSharper disable once CheckNamespace
namespace kwd.gist
/// <summary>
doggy8088 /
Last active Sep 20, 2019
編號 繁體字 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}
View 將 kubectl 改成 k 並同時擁有 bash completion 的設定方法.md

將 kubectl 改成 k 並同時擁有 bash completion 的設定方法


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
doggy8088 / settings.json
Last active Feb 14, 2020
Will 保哥的 VSCode 使用者設定檔
View settings.json
"explorer.openEditors.visible": 0,
"workbench.colorTheme": "Default Light+",
"workbench.iconTheme": "vscode-simpler-icons",
"workbench.sideBar.location": "right",
// 需下載安裝 Fira Code 字型 (安裝 OTF 格式)
// 需下載客製化過的 Microsoft YaHei Mono 字型
doggy8088 / Pipe in Inline Code within Table in the
Last active Aug 2, 2018
在 Markdown 文件中顯示一段包含 Pipe 字元程式碼的解決方案
View Pipe in Inline Code within Table in the

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 ( &#124; ). Within ` sign, all HTML Entities will output ASIS which is not what I want.

| Alias | Command | What to Type |

View 設定用 WinMerge 取代 TortoiseGitMerge.bat
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
doggy8088 / 01 體驗容器生命週期.bat
Last active May 14, 2019
迎接嶄新的Windows容器叢集架構:Kubernetes - 演講過程示範的命令 ( #Study4Love ) -
View 01 體驗容器生命週期.bat
REM 建立容器
docker run --name myc -it microsoft/windowsservercore cmd
REM 列出容器 (執行中的容器)
docker ps
REM 列出容器 (所有的的容器)
doggy8088 /
Created Sep 2, 2017
2017/9/2 FB 直播:Git 新手上路 AMA 實作練習腳本
You can’t perform that action at this time.