網路卡設定IP:
nmcli connection show (check the device name)
nmcli con modify ens33 ipv4.address 192.168.0.xx/24 ipv4.gateway 192.168.0.xx
網路卡設定IP:
nmcli connection show (check the device name)
nmcli con modify ens33 ipv4.address 192.168.0.xx/24 ipv4.gateway 192.168.0.xx
CHATGPT教我的
如果是以前可能搞一星期都試不出來
SAMPLE:
apache 2.2
# 設定允許的 IP 地址
SetEnvIf Remote_Addr "^192\.168\.11\." let_me_in
SetEnvIf Remote_Addr "^11\.22\.33\.44$" let_me_in
SetEnvIf Remote_Addr "^192\.168\.22\." let_me_in
# 啟用基本認證
AuthType Basic
AuthName "Restricted Access"
AuthUserFile /mypasswd
AuthGroupFile /dev/null
# 設定訪問規則
Order deny,allow
Deny from all
Allow from env=let_me_in
Satisfy any
<Limit GET POST>
Require valid-user
</Limit>
備份用,參考
https://handle.idv.tw/centos6%E4%B8%AD%E7%84%A1%E6%B3%95%E4%BD%BF%E7%94%A8yum%E7%9A%84%E8%99%95%E7%90%86/
# vi /etc/yum.repos.d/CentOS-Base.repo
參考下列幾篇文章。
https://www.thenewslens.com/article/171468
https://tw.news.yahoo.com/%E5%B9%BE%E7%99%BE%E8%90%AC%E5%B9%B4-%E9%81%87-%E5%8D%97%E6%A5%B5%E6%B5%B7%E5%86%B0%E9%9D%A2%E7%A9%8D%E5%89%B5%E6%96%B0%E4%BD%8E-%E6%B8%9B%E5%B0%91-%E5%80%8B%E9%98%BF%E6%A0%B9%E5%BB%B7%E5%A4%A7%E5%B0%8F-234908006.html
https://www.greenpeace.org/taiwan/update/29525/%E7%A7%91%E5%AD%B8%E5%AE%B6%E6%93%94%E6%86%82%E5%8D%97%E6%A5%B5%E3%80%8C%E6%9C%AB%E6%97%A5%E5%86%B0%E6%B2%B3%E3%80%8D%E8%9E%8D%E5%8C%96%EF%BC%8C%E9%80%A0%E6%88%90%E4%B8%8D%E5%8F%AF%E9%80%86%E7%9A%84/
https://ubrand.udn.com/ubrand/story/12117/6990077
https://book.vue.tw/CH3/3-1-vue-cli-introduction.html
前端(HTML + Vue.js):
安裝 Node.js:首先,需要安裝 Node.js,因為 Vue.js 需要 Node.js 來運行。請訪問 https://nodejs.org/en/download/ 下載並安裝適合您操作系統的 Node.js 版本。
apt-get install nginx-full
#先升級 nginx 我們本來是裝 nginx-light 不支援 http_referer_module
#改設定檔 加上
# 參考 xxx家 "h_house"
之前看了本書叫做 世界重啟,
講的是遇到災難,萬一人類滅亡只剩下你和一些人,
要怎麼繼續存活下去,
當時覺得最困難的是要怎麼重新打造出3C產品
2021/07/20
這星期很有可能是今年第一個登陸的颱風(烟花颱風)。
從 2018 年起 就沒有登陸過的強颱 (參考中央氣象局網站)
https://rdc28.cwb.gov.tw/TDB/public/advanced_query/
for item in client.PFCGetOptionDataPython("TXO"): # 'TXO|TXO21400O2|202203|P|21400.0000|臺指權|6250.0000|2710.0000' # pprint(item_split) item_year = item.split('|')[2][0:4] item_month = item.split('|')[2][4:7] item_name = item.split('|')[1][3:8]
用 PFCGetOptionDataPython 拿回來的選擇權資料
每一筆長這樣
'TXO|TXO21400O2|202203|P|21400.0000|臺指權|6250.0000|2710.0000'
最後兩欄是跌停和漲停價
from
https://ubuntuqa.com/zh-tw/article/9451.html
安裝PHP版本5.6
為了安裝PHP版本5.6,首先,打開Ubuntu終端並輸入以下命令,以將Ondrej PHP存儲庫添加到Ubuntu。
synology的NAS提供了很方便的穿牆服務(Quick connect)
但是只能有 web. 如果要用到ssh 的話該怎麼辦呢?
好險有docker
1. install docker
2. start docker, go to 'image', select 'add' -> 'add from url'. in repository name put 'debian'. When asked for variant - pick pretty much any you want. I chose testing-slim
3. once (2) completes, click on the image and select 'launch'. not sure how relevant this is, but i gave my container administrative privileges.
4. go to 'container' tab. find newly created container. click 'details'. last tab is your terminal
5. execute: 'sudo apt-get update' followed by 'sudo apt-get install ssh tmux'
6. (optional) add your private ssh key by executing: "ssh-add - <<EOF", pasting your key and typing "EOF"
7. use SSH remote port forwarding while you ssh back to your machine, eg: ssh -R 1080:<router-ip>:80 username@machine-you-log-in-from
8. on machine you log in from (your actual computer you're sitting by) open web browser and navigate to port 1080.