Skip to content

Instantly share code, notes, and snippets.

@blackstuend
blackstuend / excel.md
Last active February 26, 2020 15:35
Excel-Basic script

Learning basic excel vba

  • console.log
  1. Crtl+G 顯示終端機
Debug.Print "hello"
  • 獲得現在的位置

Some Problem to solove

How to fix Npm install failed with "cannot run in wd

g++: internal compiler error: Killed (program cc1plus) Please submit a full bug report

@blackstuend
blackstuend / install_opencv_nodejs.md
Last active March 26, 2019 16:51
安裝opencv on node.js

安裝

windows

  • 安裝cmake 隨後放到環境變數
  • 安裝 node.js 11版本以上
  • 安裝visual studio
  • 安裝visual studio 裡面的C++套件
  • 用超級使用者進到cmd (右鍵使用系統管理員使用)
  • arp攻擊

  • 中間人攻擊

  • 安裝eve-ng client 網址

  • Eve 如果有錯誤 要先fix

/opt/unetlab/wrappers/unl_wrapper -a fixpermissions

Crontab

安裝

# yum install cronie crontab 
# systemctl start crontab
# systemctl enable crontab

基本用法

@blackstuend
blackstuend / Docker.md
Last active March 27, 2019 04:04
Docker learning

Doker Learning

更新新版kernal

# rpm -Uvh http://www.elrepo.org/elrepo-release-7.0-2.el7.elrepo.noarch.rpm
# rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
# yum -y --enablerepo=elrepo-kernel install kernel-ml
#reboot
@blackstuend
blackstuend / Linux_script_learing.md
Last active March 27, 2019 02:01
Learning sed and awk

Sed

原理

  • 從文本或是內容 > 每次選取一行 > 進行命令處理 >再選取一行 > 進行命令處理(直到最後一行) >將結果打印到螢幕上
  • sed 每一次只會處理一行
  • sed 不改變文件內容

文本處理

  • 命令行格式
@blackstuend
blackstuend / Cisco_router.md
Last active April 16, 2019 11:48
learning for Cisco config

專業術語

Router中的常用術語

  1. POST(power on seflt test) //開機自檢系統
  2. start-up configuartion //放在nvram(非揮發性記憶體)
  3. running configuration //放在ram 當關機時會將裡面的內容寫入start-up configuration
  4. out-band //透過console port 一台router只有一個console port
  5. in band //透過talent ssh text