$ CREATE USER 'new_user_name'@'%' IDENTIFIED BY 'the_password'; $ GRANT ALL PRIVILEGES ON *.* TO 'new_user_name'@'%'; # the first * is database`s name, the second * is table`s name $ FLUSH PRIVILEGES;
Today i will talk about the python built-in function ord() .
For example, I receive raw data from serial or tcp device,the data always be the array of binary.When you print it to console,it shows like b’\x01\xe5′ and so on.
To convert this data to int like below.
raw_data = b'\x01\xe5' print(int(ord(raw_data)),16)
Thats it! very simple!OK thanks for reading see you soon!
# run on server $ ./gost -L=kcp://:8099 # run on client $ ./gost -L=:8080 -F=kcp://[server ip]:8099 # you can set the client command above to run on system startup
I have a ASUS AC1200GU router,And I use gost to proxy my web trafic.But i have a startup script in my win7.When i boot the system,the system will run the script and start an gost instance to proxy my web trafic to server.
The question is , in my computer , i have many OS (win7,win10,ubuntu etc.) and in my home i have many mobile phone,pads and laptop.I never though i want setup a startup script in my mobile phone , laptop. 🙂
The best solution is run the gost client in low power consumtion device such as Raspberry pi , routers and so on.So i must compile gost in ARM or mipsle architecture.In my case ,my router is mipsel-linux-gnu-gcc-8 -march=1004Kc
$ git clone https://github.com/ginuerzh/gost $ cd gost/cmd/gost $ GOOS=linux GOARCH=mipsle go build # and the bin gost will place in gost/cmd/gost folder # in other country the golang package manager network connection may unstable # you can use the command below to accelerate $ export GOPROXY=https://mirrors.aliyun.com/goproxy/