Blog

Code-Playground

發覺返到香港越來越難集中去做自己既 project 連 blog 都少寫了 今日終於逼自己係 GitHub 度開個 repository 去寫下 code 希望每星期都會 commit 到 D code 同有 blog post share 個 project 叫做 Code-Playground 主要是用來 share 自己想寫既 project 但係因為 …

WPScan Docker Sample - WPScan Docker 示範

如果不想在電腦上安裝 WPScan 的話可以考慮使用 Docker 使用方法十分簡單 首先要 pull wpscan 既 docker image https://hub.docker.com/r/wpscanteam/wpscan/ docker pull wpscanteam/wpscan 之後便可以使用這個Docker image 來執行 wpscan …

Screen Recording via PowerPoint (Free Feature) - 使用 PowerPoint進行 屏幕錄製

很多朋友問..如何在 Windows 上進行屏幕錄製, 之前以為一定要用其他軟件.. 例如: Camtasia.. 誰不知..原來可以使用 PowerPoint 錄製 的 詳情可以參考這個 教學 Screen Recording via PowerPoint (Free Feature) - 使用 PowerPoint 進行 屏幕錄製 hope you …

Free Software for Student - 免費軟體 (學生篇)

今日公司的同事和大家分享了一系列十分實用/好用既軟體 如果你是學生 或是還有學生 Email account 或學生証 的話都可以免費申請的 有興趣既朋友可以參考以下網頁: https://www.gitkraken.com/github-student-developer-pack https://www.jetbrains.com/student/ …

Useful SQL command to reduce the size of the database

今日想和大家分享一個 幾有用的TSQL Command, 去 Release 返一些SQL Server 佔用的空間 Transaction log 和Database file -- select database USE Production; -- Change the recovery mode to SIMPLE, to clear the …

Different Git User credential Con on same machine - 在同一個電腦上使用不同的Git 使用者

解決方去 我們可以在 local 的 Git Repos 上設定這個 Repos 的Git Credential 我們只需要在 Git Bash上輸入以下指令便可以了 git config user.name "YOUR_USERNAME" git config user.email "YOUR_EMAIL" 如果大家不想每次都要輸入password 的話可 …

Git refusing to merge unrelated histories

今日剛在Bitbucket 建立左一個新既 repos 當我嘗試 push local 的一個 git repos上去既時候出現了以下的錯誤信息 (當我嘗試 Pull 這個 repos 去 local 的 repos 時) “fatal: refusing to merge unrelated histories”

VS Code disable minimap - 如何在Visual Studio Code 上 Disable Minimap 這個 extension

解決方法十分簡單: 我們可以去 “File” -> “Preferences” -> “Settings” 的 “User Settings” 上把 “editor.minimap.enabled” 設定為 false 便可以了 editor.minimap.enabled": false, Hope you find it useful

Csharp - Remove last comma - C# 如何移除最後一個符號 (分號)?

解決方法十分簡單 我們可以使用 這個功能來解決這個問題 E.G. string y = "1,2,3,4,5,6,"; Console.WriteLine(y.TrimEnd(',')); Hope you find it useful

How to use && (bash) in powershell to run multiple command

在這間公司工作.. 我學會了很多 command (多數是在 bash [git bash] 上使用的) 回家後可能是因為 screen 比較細的關係 所以很小會開git bash 來執行指令 會使用Visual Studio code instead VS code 是使用Powershell的 所以當我嘗試執行 git fetch && git …