最近想用新買的 RaspberryPi4 來學習 Ethical Hacking 用來檢查一下屋企上的東西會不會得容易被 hack 到 如果在學習過程中 發現有 保安問題 可以早點解決 第一個嘗試既 hacking tool 就昰 Wifite 是用來 crack wifi 的 如果是用 Kali linux 的話應該已經安裝好 我用的是 Raspbian 所以所有 Hacking Tools 都是自行安裝
2021-03-05
今日需要在 git 上去 gitignore 一個之前已經 commit 了既 file 解決放法 我們可以使用以下 git command 去 untrack 之前 commit 左既 file git rm --cached [filename] e.g. git rm --cached appsetting.Development.json 之後在 .gitignore 上加入你想 ignore 的檔案名便可
2020-07-28
今日需要在 git 上去 gitignore 一個之前已經 commit 了既 file 解決放法 我們可以使用以下 git command 去 untrack 之前 commit 左既 file git rm --cached [filename] e.g. git rm --cached appsetting.Development.json 之後在 .gitignore 上加入你想 ignore 的檔案名便可
2020-07-28
最近朋友介紹使用Codecov 來顯示 project 上的 Unit Test 既 Code Coverage 由於他需要把資料夾coverage 上的 一個檔案 clover.xml 放進 repository 上.. 但是 default 的 .gitignore 已經把 coverage 整個資料夾 exclude 了.. 那麼我們如何把在.gitignore已經 exclude 左既 folder 上的一個檔案 include 返去 git 入面呢?
2020-07-26
很多時候都是使用BitBucket / Github 去create 新branch 但是久不久BitBucket 的 選擇 Branch的選項..總是選擇不到 UAT 的 最後選擇最原始既方法… 就是使用 command line 了 解決方法: # 首先 checkout 了你想Create branch from 的 branch && git pull git checkout uat && git pull # 使用 git branch 來Create 新 branch git branch [branch-name] # checkout 新建立的branch git checkout [branch-name] # 用以下command push 去remote git push --set-upstream origin [branch-name] 或者可以嘗試這樣..簡短一點
2020-02-20
最近同同事一齊用同一個 branch 寫 code 誰不知..呢隻同事..十分喜歡 rebase 或在 push 左既 branch 用 git commit --amend --no-edit 想佢變成一個 commit 之後問題便出現了… 當我嘗試 pull 他的 changes 到我的 local 時 即使我沒有加新的 commit 也出現了以下情況 Your branch and 'origin/ubuntu-install-wpscan' have diverged, and have 1 and 1 different commits each, respectively. (use "git pull" to merge the remote branch into yours) have 1 and 1 different commits each, respectively
2019-12-11
久唔久就會大意地 Commit 錯野 發現以下這個 git command Git undo pushed commit and keep changes unstage 解決方法 git reset HEAD^
2019-06-10
我們可以使用以下指令到 clear Yarn / NPM 的 cache # yarn yarn cache clean # npm npm cache clean --force # remove node_modules folder rm -rf node_modules Hope you find it useful
2019-04-06
久不久我使用的 Git 便會出現以下問題 Unlink of file. ’ file path and name’ failed. Should I try again? (y/n)
2019-04-05
今日公司個 Production project 有一個 Bug 但係在 Staging 和 UAT environment 都 replicate 唔到呢個問題.. 之後便用Git Blame 去檢查一下有什麼 code change 再看看是那一個 commit 做了 code change 找到 commit 之後 便要嘗試去看看這個commit merge 了去那些 branch 解決方法
2019-02-10