Ubuntu install WPScan
之前介紹過用如何用 Docker 來執行 WPScan 來檢查 Wordpress 有沒有安全問題 最近開始使用 Windows Subsystem 發現原來做 Windows Subsystem 上安裝使用 Ubuntu 也十分方便 我們可以用 subsystem 上的 Ubuntu 來安裝 linux 可以安裝的 software 所以安裝 和執行 …
之前介紹過用如何用 Docker 來執行 WPScan 來檢查 Wordpress 有沒有安全問題 最近開始使用 Windows Subsystem 發現原來做 Windows Subsystem 上安裝使用 Ubuntu 也十分方便 我們可以用 subsystem 上的 Ubuntu 來安裝 linux 可以安裝的 software 所以安裝 和執行 …
如何用 Javascript format JSON 解決方法: 我們可以使用JSON.stringify 來 format e.g. var c = {a : "test", b:{ data: "asdada"}} JSON.stringify(c, null, 4) "{ "a": "test", "b": { "data": "asdada" } …
最近又多用了 Heroku 無左 Microsoft Azure 既 subscription 又怕佢 charge 貴 用 free tier 時發現好似好多野都要收錢咁 剛剛 deploy 了一個 NodeJS project 時 Load 唔起.. 又唔知可以點睇 log. 由於同一隻 App 都是放在 githu 月 Login heroku …
如果在XSD restriction 上 容許 mix restriction (mix data type) 呢? 解決方法: 我們可以建立一個simpleType 之後在simpleType 入面使用 union 再把多個simpleType union 在一起 e.g. <?xml version="1.0" encoding="UTF-8"?> …
最近有一個 task 係要做一些 code clean up… 發現有很多重覆既動作.. 係時候用下腦記下 D Visual Studio Shortcut… 因為用 mouse 真係有 D 慢.. 用 shortcut key 有時真係方便好多 Remove and Sort Using Ctrl + R Ctrl + G
今日想檢查一下 電腦上用 Chocolatey 安裝的 NodeJs 有沒有 outdated 所以便想找個 Choco command 來看看 找到了以下一個 command 用 Chocolatey command 來輸出一個 List choco list -lo choco list -lo 之後用Powershell 來找出在這個 List 有那一 …
###如何設定 NodeJs Environment Variable 解決方法: 可以直接在 command line 設定 set ENV_VARIABLE=9000 && npm start 可以在package.json 上設定 e.g. "scripts": { "start": "set PORT=9000 && yarn run swagger …
今日有個 task 其中一個地方要在 Array of Json object 中 Distinct 一個 property const data = [ { id: 1, category: 'fruit', name: 'Apple', }, { id: 2, category: 'fruit', name: 'Banana', }, { id: 3, …
使用 firebase hosting 來 host reactjs 既時候 出現了以下問題 當我直接在 browser 輸入 ReactJs 的 route 既時候 出現了 Page Not Found This file does not exist and there was no index.html found in the current …
久唔久就會大意地 Commit 錯野 發現以下這個 git command Git undo pushed commit and keep changes unstage 解決方法 git reset HEAD^