2023年7月17日 星期一

Rabbitmq REST API

 1. https://rawcdn.githack.com/rabbitmq/rabbitmq-server/v3.12.1/deps/rabbitmq_management/priv/www/api/index.html



2. https://www.rabbitmq.com/vhosts.html

2023年7月11日 星期二

airflow api

 # seting the 

airflow_api_auth_backends: 'airflow.api.auth.backend.basick_auth'




# Test

curl -X GET  --user "airflow:1qaz2WSX" "https://airflow-dev.armor.hinet.net/api/v1/pools"


curl -X PATCH 'https://airflow-dev.armor.hinet.net/api/v1/dags/report_backup?update_mask=is_paused' \

-H 'Content-Type: application/json' \

--user "airflow:1qaz2WSX" \

-d '{

    "is_paused": true

}'


# ref setting airflow.cfg

airflow_api_auth_backends: 'airflow.api.auth.backend.basick_auth


# https://stackoverflow.com/questions/61329923/apache-airflow-rest-api-authentication

# https://airflow.apache.org/docs/apache-airflow/1.10.12/howto/set-config.html'

#https://airflow-dev.armor.hinet.net/redoc

2023年7月4日 星期二

cenos7 selinux close

 

setenforce 0



# good

https://wiki.gentoo.org/wiki/SELinux/Tutorials/Where_to_find_SELinux_permission_denial_details


#

https://www.ltsplus.com/linux/disable-selinux

2023年7月3日 星期一

centos7 epel

sudo yum install epel-release

 sudo yum provides iperf


2023年7月2日 星期日

centos7 open the firewall

 #network tools

sudo yum install telnet


# fireall stop

systemctl stop firewalld

systemctl status firewalld


#

# add the port

sudo firewall-cmd --zone=public --add-port=10050/tcp --permanent

sudo firewall-cmd --reload

sudo iptables-save | grep 10050



#ref

https://www.thegeekdiary.com/how-to-open-a-ports-in-centos-rhel-7/

2023年6月26日 星期一

Centos7 install sshd

 3  sudo yum install openssh opessh-server

    5  vi /etc/ssh/sshd_config

    7  systemctl restart sshd.service

    8  systemctl status sshd.service

    9  sudo systemctl enable sshd.service



ref:

https://www.brilliantcode.net/124/centos-7-install-and-configure-ssh/

https://phoenixnap.com/kb/how-to-enable-ssh-centos-7


2023年6月16日 星期五

Machine learning on line demo or good paper

 1. svm

 https://greitemann.dev/svm-demo


2.  tensor flow

https://playground.tensorflow.org/#activation=linear&batchSize=10&dataset=gauss&regDataset=reg-plane&learningRate=0.03&regularizationRate=0&noise=0&networkShape=&seed=0.96726&showTestData=false&discretize=false&percTrainData=50&x=true&y=true&xTimesY=true&xSquared=false&ySquared=false&cosX=false&sinX=false&cosY=false&sinY=false&collectStats=false&problem=classification&initZero=false&hideText=false


3. percentage

https://medium.com/jameslearningnote/%E8%B3%87%E6%96%99%E5%88%86%E6%9E%90-%E6%A9%9F%E5%99%A8%E5%AD%B8%E7%BF%92-%E7%AC%AC3-2%E8%AC%9B-%E7%B7%9A%E6%80%A7%E5%88%86%E9%A1%9E-%E6%84%9F%E7%9F%A5%E5%99%A8-perceptron-%E4%BB%8B%E7%B4%B9-84d8b809f866


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