2021年10月29日 星期五

rabbitmq ssl

https://www.rabbitmq.com/ssl.html


https://zamhuang.medium.com/rabbitmq-%E5%BF%AB%E9%80%9F%E4%BD%BF%E7%94%A8-tls-64c9e88bde6


https://stackoverflow.com/questions/27379736/where-is-rabbitmq-config-file


https://github.com/rabbitmq/rabbitmq-server/blob/master/deps/rabbit/docs/rabbitmq.conf.example


https://www.baeldung.com/openssl-self-signed-cert


https://support.ptc.com/help/thingworx/analytics/r9/en/index.html#page/analytics/analytics_install/ssl_support_for_rabbitmq.html


https://stackoverflow.com/questions/56122407/vulnerability-in-rabbitmq-disable-cleartext-authentication-mechanisms-in-the-a


https://liquidwarelabs.zendesk.com/hc/en-us/articles/360019562832-Disable-cleartext-authentication-option-in-RabbitMQ


【RabbitMQ】讓訊息更安全吧!啟用 TLS 把 amqps 用起來


https://www.rabbitmq.com/configure.html#config-file

-----------ca

https://blog.miniasp.com/post/2019/02/25/Creating-Self-signed-Certificate-using-OpenSSL


https://mistech.pixnet.net/blog/post/80751019-certificate-authority%28ca%29-%E6%86%91%E8%AD%89%E7%B0%A1%E4%BB%8B


https://blog.cssuen.tw/create-a-self-signed-certificate-using-openssl-240c7b0579d3

https://joe0609.wordpress.com/%E7%94%A2%E7%94%9Fself-signed-san-%E6%86%91%E8%AD%89/


 

2021年10月25日 星期一

flask hook , global object, get post data

 1. hook

https://www.twblogs.net/a/5b80b2572b71772165a8cb2c

https://stackoverflow.com/questions/30514749/what-is-the-g-object-in-this-flask-code

https://codertw.com/%E7%A8%8B%E5%BC%8F%E8%AA%9E%E8%A8%80/360556/


2. g ojbect

g is an object provided by Flask. It is a global namespace for holding any data you want during a single app context. For example, a before_request handler could set g.user, which will be accessible to the route and other functions.


https://flask.palletsprojects.com/en/2.0.x/appcontext/

https://stackoverflow.com/questions/30514749/what-is-the-g-object-in-this-flask-code


3. get post data

https://www.maxlist.xyz/2019/03/17/flask-get-post/

https://medium.com/seaniap/python-web-flask-get-post%E5%82%B3%E9%80%81%E8%B3%87%E6%96%99-2826aeeb0e28

2021年10月21日 星期四

python retry decorator

 https://stackoverflow.com/questions/8069057/try-except-inside-a-loop/15267410

2021年10月20日 星期三

flask command

 https://zhuanlan.zhihu.com/p/30280143


https://ithelp.ithome.com.tw/articles/10262877?sc=iThomeR


https://www.jianshu.com/p/dcb4cecb2af7


https://flask-script.readthedocs.io/en/latest/

python logger

 https://shian420.pixnet.net/blog/post/350291572-%5Bpython%5D-logging-%E5%B9%AB%E4%BD%A0%E7%B4%80%E9%8C%84%E4%BB%BB%E4%BD%95%E8%A8%8A%E6%81%AF


https://stackoverflow.com/questions/50714316/how-to-use-logging-getlogger-name-in-multiple-modules



https://vimsky.com/zh-tw/examples/detail/python-method-logging.Formatter.html


https://stackoverflow.com/questions/6386698/how-to-write-to-a-file-using-the-logging-python-module

2021年10月19日 星期二

redis get key / get value / delete value

 # basick, get keys

https://ithelp.ithome.com.tw/articles/10105731


# get keys and value

https://stackoverflow.com/questions/8078018/get-redis-keys-and-values-at-command-prompt


#delete key

https://stackoverflow.com/questions/6301399/empty-delete-a-set-in-redis


#redis get keys

https://chartio.com/resources/tutorials/how-to-get-all-keys-in-redis/

https://linuxhint.com/see-all-redis-keys/


# redis persitent data

https://ithelp.ithome.com.tw/articles/10277020

https://tachingchen.com/tw/blog/redis-data-persistence/

https://medium.com/fcamels-notes/redis-%E5%92%8C-redis-cluster-%E6%A6%82%E5%BF%B5%E7%AD%86%E8%A8%98-fdc19a3117f3

https://blog.csdn.net/qq_43178138/article/details/119144986



#api

-https://redis-py.readthedocs.io/en/stable/redismodules.html#redistimeseries-commands

https://redis-py.readthedocs.io/en/stable/commands.html#core-commands

https://redis-py.readthedocs.io/en/stable/


#command

https://redis.io/commands/select/

2021年10月18日 星期一

vim python + pylint - not work

 https://carl830.pixnet.net/blog/post/83010629


https://www.vim.org/scripts/script.php?script_id=891


https://github.com/vim/vim/blob/master/runtime/compiler/pylint.vim


https://gist.github.com/urfolomeus/1558958