楚阿旗

博客园 首页 新随笔 联系 订阅 管理

2024年3月21日 #

摘要: Learning Objectives Build a container image and store it in a container registry. Describe the features, benefits, and use cases of containers, and ho 阅读全文
posted @ 2024-03-21 23:10 楚阿旗 阅读(23) 评论(0) 推荐(0)

2024年3月20日 #

摘要: 1 # Import libraries 2 from flask import Flask, redirect, request, render_template, url_for 3 # Instantiate Flask functionality 4 app = Flask(__name__ 阅读全文
posted @ 2024-03-20 23:57 楚阿旗 阅读(41) 评论(0) 推荐(0)

2024年3月19日 #

摘要: 這個隨筆用來紀錄我的學習,以後可能會經常用到,如果用不到,就是我已經記住了。 下面是一個基本的flask使用框架,可以動態的加入參數,也能靜態的使用參數取得資訊。 1 from flask import Flask, render_template, request 2 3 app = Flask( 阅读全文
posted @ 2024-03-19 06:59 楚阿旗 阅读(75) 评论(0) 推荐(0)

2020年2月10日 #

摘要: vlan 100 private-vlan isolated ! vlan 200 private-vlan community ! vlan 300 private-vlan primary private-vlan association 100,200 ! ! ! ! interface Gi 阅读全文
posted @ 2020-02-10 11:45 楚阿旗 阅读(362) 评论(0) 推荐(0)

2020年2月6日 #

摘要: NBMA為一種沒有廣播類型的的網路連接,這會使得OSPF建立需要手動設定 拓樸如下: R1# ! interface Loopback0 ip address 172.16.1.1 255.255.255.0 ip ospf network point-to-point ! interface Se 阅读全文
posted @ 2020-02-06 22:38 楚阿旗 阅读(177) 评论(0) 推荐(0)

2020年2月3日 #

摘要: 在某些情況下,會希望指定特定的來源及目的走特定的出口,卻又不是全部的網段都希望套用,這時就可以透過PBR來達成這個需求。 如以下拓樸 1.1.1.0/24的網路往5.5.5.0的封包需要指定e0/1當出口,往6.6.6.0的封包需要走e0/2。 1. 首先指定兩條ACL access-list 10 阅读全文
posted @ 2020-02-03 14:27 楚阿旗 阅读(373) 评论(0) 推荐(0)

2020年1月27日 #

摘要: interface FastEthernet0 ip address dhcp ip nat outside ip virtual-reassembly ! interface FastEthernet1 no ip address pppoe enable no cdp enable ! inte 阅读全文
posted @ 2020-01-27 15:58 楚阿旗 阅读(180) 评论(0) 推荐(0)

摘要: import multiprocessing as mp import time def name_and_time(name,num): print(f"Hello {name}, current time is {time.time()} ({num})") print('Sleeping fo 阅读全文
posted @ 2020-01-27 10:42 楚阿旗 阅读(140) 评论(0) 推荐(0)

2020年1月23日 #

摘要: 1. 下載並安裝GNS3 下載位置 https://gns3.com/software 安裝 gns3-all-in-one 部屬GNS3 VM至virtualbox 下載並安裝VIX API https://www.vmware.com/support/developer/vix-api/,重啟G 阅读全文
posted @ 2020-01-23 10:27 楚阿旗 阅读(813) 评论(0) 推荐(0)

2019年12月31日 #

摘要: 序列化 import pickle friend = {"Dan": [20, "Lodon", 123123], "Mary" : [24, "Madi", 333333]} with open("friend.dat", "wb") as f: pickle.dump(friend, f) 反序 阅读全文
posted @ 2019-12-31 09:34 楚阿旗 阅读(121) 评论(0) 推荐(0)