原创 tornado信息輸出到瀏覽器
tornado信息輸出到瀏覽器將信息返回至瀏覽器將信息帶格式返回至瀏覽器 將信息返回至瀏覽器 val_json=json.dumps(dict(responsecode="0",info=back_info),indent=4,d
原创 rq使用
rq使用安裝redis配置redis保存配置驗證redis安裝rq使用 安裝redis yum -y install redis 配置redis #查看redis狀態 systemctl status redis #配置redi
原创 SQL中NULL字段
SQL中NULL字段簡單查看下securitygrouprules表字段篩選不爲NULL字段信息篩選爲NULL字段信息 簡單查看下securitygrouprules表字段 select * from neutron.securi
原创 neutronclient 報錯
neutronclient 報錯調用neutronclient 報錯:TypeError: __init__() got an unexpected keyword argument 'global_request_id'neut
原创 paramiko使用
paramiko使用paramiko使用密碼登錄paramiko使用祕鑰登錄paramiko上傳文件paramiko下載文件 paramiko使用密碼登錄 import paramiko transport = paramiko
原创 mongodb-exporter
mongodb-exporter參照前文安裝prometheus安裝mongodb_exporter訪問進入prometheus修改prometheus.yml重啓prometheus驗證安裝grafana接入grafana 參照
原创 prometheus-es-exporter
prometheus-es-exporter參照前文安裝prometheus安裝prometheus-es-exporter配置exporter.cfg方式一:運行prometheus-es-exporter方式二:運行prome
原创 ImportError: cannot import name S3Auth
ImportError: cannot import name S3Auth查看系統默認的awsauth包查看系統默認的awsauth包的路徑查看系統默認的awsauth包的__init__.py文件查詢安裝的awsauth包的位
原创 centos7 安裝kubectl
centos7 安裝kubectl下載最新release包爲kubectl增加可執行權限將kubectl移動到path目錄驗證kubectl配置 下載最新release包 curl -LO https://storage.goog
原创 初試F12
初試F12F12查看請求postman重發get請求簡單爬取BeautifulSoup報錯 F12 F12 查看請求 get 請求 postman重發get請求 簡單爬取 requests,BeautifulSoup
原创 poplib簡單使用
poplib簡單使用裝包登錄poplib處理郵件的代碼很多,一頭霧水到底如何取得想要的東西part in msg.walk() 大致猜測郵件到底是如何解析的清晰明瞭 裝包 #coding:utf-8 import poplib i
原创 RQ dashboard使用
RQ dashboard使用安裝rq-dashboard連接rq-dashboard查看dashboard 安裝rq-dashboard pip install rq-dashboard 連接rq-dashboard rq-da
原创 yapf優化Python代碼
yapf優化Python代碼格式化前格式化前 格式化前 格式化前 pip install yapf yapf -i file_name
原创 mysql操作問題記錄
mysql操作問題記錄select......select查詢包含關鍵字key select…select SELECT * from (SELECT distinct instances.uuid,size as size_ro
原创 seaborn學習二,matplotlib簡單回顧
matplotlib簡單回顧matplotlib設置major_locator,minor_locatormatplotlib設置顏色matplotlib設置color_palette完成 matplotlib設置major_lo