Yet another bootstrap theme.

2021-09-07
vim-tip-2021-09-06

一直以來都喜歡,也習慣用 vim。想說,多多用些大家常用的 package 來幫助日常的 coding
也試著將 coding 的部分,多以不離開 vim 就可以做到的方式,來多多練習

nerdtree 一直都是滿多人推薦在 vim 中使用的,有安裝但是沒有特別使用,這次想說多來用用看

  • 目前常用的 command
    • Ctrl-N:開啟 & 關閉 nerdtree
    • Ctrl-W L, Ctrl-L:切換到 右邊的視窗
    • Ctrl-W HCtrl-H:切換到 左邊的視窗

Reference

  • nerdtree - A tree explorer plugin for vim.

教學

Read More

2021-09-07
vim-tip-2021-09-07

列一下,今天學到的 vim 技巧
如何在 NERDTree 中,新增一個檔案

  • 在想要新增的目錄中,按下 m 開啟 NERDTree Filesystem Menu
  • 接著按下 a,新增一個 child node

reference

Read More

2021-09-06
python-as-tool

最近,剛好需要用到將 pdf 轉為 image,並且將 image 分割的事情
原本是用手動截圖的方式,後來想說應該是可以用程式來做,方便一些
就試著用 python 來做這件事,記錄一下,用到了哪些 package,同時也放一份 code 到 github 上

python package list

  • pdf2image
  • opencv
  • pydub
Read More

2021-08-30
aws-wordpress

在 AWS 上架設 worepress 的方式

進階參考

Read More

2021-07-28
python-design-pattern

Read More

2021-06-23
aws-add-current-ip

最近在家上班時,因為家中的 public ip 會常變動,而 ip 變動後就需要更改 aws security group 的設定值
找了一下用 cmd 的方式變更 security group 的方式

Run Command

  • $ aws_ipadd my_project_ssh

Reference

Read More

2021-06-13
switch-8bitdo

最近因為疫情的關係,在家的時間較長,就下單了 switch & 健身環
不過,switch 的手把,用了一小段時間後,還真是不太好用,握把太小

剛好在網路上有看到介紹用 ps4 的搖桿來連結 switch 用,就來試試看囉
用了後,還真的滿好用的,一整個搖桿大解封的感覺

Reference

Read More

2021-06-11
qradar-dsm

記錄有關開發 qradar dsm 相關的事項

如何開始進行

Document

  • Using QID Maps Technical Note - pdf 檔
    • 使用 command line 的方式來操作 qid maps
    • qidmap_cli.sh [-l|-c|-m|-i[-f <filename>]|-e[-f <filename>]|-d]

驗證 Qradar

相關的 youtube 說明

可以參考的 QRadar App 範例

有關 Export 的部分

  • Exporting contents from the DSM Editor
  • Exporting contents as a package
    • 使用 cmd 來進行 export
    • /opt/qradar/bin/contentManagement.pl -a search -c 24 -r "<search_name>"
    • USAGE: /opt/qradar/bin/contentManagement.pl --action <ACTIONTYPE> [--quiet] [--verbose] [--debug] Type /opt/qradar/bin/contentManagement.pl --help <ACTIONTYPE> for help on a specific action
    • content type table
      `
      +-----------------------------------------------------------------------+
       | Custom content type               | String               | ID         |
       |-----------------------------------------------------------------------|
       | Custom properties                 | customproperty       | 6          |
       | Log source type                   | sensordevicetype     | 24         |
       | Log source extensions             | deviceextension      | 16         |
       | Custom QidMap entries             | qidmap               | 27         |
       +-----------------------------------------------------------------------+
      `

有關 DSM LEEF 有關

Reference

Read More

2021-06-02
VMware-vSphere

雖然一直有在用 VMWare,但是經驗上,大多是單機版上的。所以對於 ESXi & vCenter 都傻傻分不清。就花了些時間來找找資料

  • VMware vSphere 是 VMware 的虛擬化平台,可將資料中心轉換為彙總的運算基礎結構,其中包括 CPU、儲存區和網路資源。vSphere 會將這些基礎結構當作一個統一的作業環境來管理,並為您提供工具來管理加入該環境的資料中心。
  • vSphere 的兩個核心元件是 ESXi和vCenter Server。ESXi是一個虛擬化平台,您可在其中建立和執行虛擬機器及虛擬應用裝置。vCenter Server是一項服務,您可透過該服務來管理網路中連線的多個主機並為主機資源建立集區。

Reference

Read More

2021-06-01
about-android

Read More