worker_notes's People
worker_notes's Issues
完成常用go 命令
docker
sudo usermod -aG docker ${USER}
clash
cookiecutter-pypackage 使用说明
mysql
version: '3'
services:
mysql:
image: mysql:5.7
ports:
- '3306:3306'
volumes:
- ./data:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: test
MYSQL_USER: test
MYSQL_PASSWORD: test
container_name: appmysql
restart: always
command: mysqld --default-time-zone=Asia/Shanghai
Nginx说明
systemctl
修正python虚拟环境 ubuntu 版本号
修改go环境
echo "export GOPATH=\$HOME/work" >> ~/.profile
echo "PATH=\$PATH:/usr/local/go/bin:\$GOPATH/bin" >> ~/.profile
source ~/.profile
supervisor使用说明
oa test
import requests
# url = "http://193.112.48.37:8080/"
url = "http://193.112.48.37:8080/api/hrm/login/checkLogin"
session = requests.session()
data = {
"loginid" : "*********",
"userpassword": "******************"
}
response = session.post(url, data=data)
print(response.status_code)
print(response.text)
print(session.cookies)
response = session.get("http://193.112.48.37:8080/api/hrm/login/getAccountList?__random__=1663480088081")
print(response.status_code)
print(response.text)
ubuntu 分区
sdb sdb1 sdb2
🤣 ~ $ sudo fdisk /dev/sdb
欢迎使用 fdisk (util-linux 2.31.1)。
更改将停留在内存中,直到您决定将更改写入磁盘。
使用写入命令前请三思。
命令(输入 m 获取帮助): m
帮助:
常规
d 删除分区
F 列出未分区的空闲区
l 列出已知分区类型
n 添加新分区
p 打印分区表
t 更改分区类型
v 检查分区表
i 打印某个分区的相关信息
杂项
m 打印此菜单
x 更多功能(仅限专业人员)
脚本
I 从 sfdisk 脚本文件加载磁盘布局
O 将磁盘布局转储为 sfdisk 脚本文件
保存并退出
w 将分区表写入磁盘并退出
q 退出而不保存更改
新建空磁盘标签
g 新建一份 GPT 分区表
G 新建一份空 GPT (IRIX) 分区表
o 新建一份的空 DOS 分区表
s 新建一份空 Sun 分区表
命令(输入 m 获取帮助): n
分区号 (3-128, 默认 3):
第一个扇区 (724721664-1953525134, 默认 724721664):
上个扇区,+sectors 或 +size{K,M,G,T,P} (724721664-1953525134, 默认 1953525134):
创建了一个新分区 3,类型为“Linux filesystem”,大小为 586 GiB。
命令(输入 m 获取帮助): w
分区表已调整。
将调用 ioctl() 来重新读分区表。
正在同步磁盘。
🤣 ~ $
🤣 ~ $
🤣 ~ $
🤣 ~ $
完成go基础语法
修改python虚拟环境激活
Description
- 修改python虚拟环境激活中
source project_env/bin/virtualenv
为source project_env/bin/activate
marry
import requests
# url = "http://193.112.48.37:8080/"
# url = "http://193.112.48.37:8080/api/hrm/login/checkLogin"
url = "http://47.96.101.230:9797/marry_yd/login.jsp"
session = requests.session()
headers = {
"Content-Type" : "text/html; charset=utf-8",
"Accept" : "text/html, application/xhtml+xml, image/jxr, */*",
"Accept-Encoding" : "gzip, deflate",
"Accept-Language" : "zh-CN",
"Cache-Control" : "no-cache",
"Content-Type" : "application/x-www-form-urlencoded",
"Connection" : "Keep-Alive",
"Host" : "47.96.101.230:9797",
"User-Agent" : "Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko",
"Referer" : "http://47.96.101.230:9797/marry_yd/login.jsp"
}
response = session.get(url)
print(response.status_code)
# print(response.text)
print(session.cookies)
url = "http://47.96.101.230:9797/marry_yd/common/showimage.jsp"
response = session.get(url)
# show image
with open("image.jpg", "wb") as f:
f.write(response.content)
# input image code
image_code = input("input image code: ")
# login
# url = "http://47.96.101.230:7007/marry_yd/loginMarry.do?method=login"
url = "http://47.96.101.230:9797/marry_yd/loginCheck.jsp"
data = {
"action": "login",
"username": "kefu6",
"password": "123qwe!@#",
"rcode": image_code
}
response = session.post(url, data=data, headers=headers)
print(response.status_code)
print(response.text)
print(session.cookies)
headers = {
"Content-Type" : "text/html; charset=utf-8",
"Accept" : "text/html, application/xhtml+xml, image/jxr, */*",
"Accept-Encoding" : "gzip, deflate",
"Accept-Language" : "zh-CN",
"Cache-Control" : "no-cache",
"Content-Type" : "application/x-www-form-urlencoded",
"Connection" : "Keep-Alive",
"Host" : "47.96.101.230:9797",
"User-Agent" : "Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko",
"Referer" : "http://47.96.101.230:9797/marry_yd/loginCheck.jsp"
}
url = "http://47.96.101.230:9797/marry_yd/loginMarry.do?method=login"
response = session.post(url, data=data,headers=headers)
print(response.status_code)
print(response.text)
url = "http://47.96.101.230:9797/marry_yd/login_marry.do"
response = session.post(url, headers=headers)
print(response.status_code)
print(response.text)
url = "http://47.96.101.230:9797/marry_yd/login_marry.do"
response = session.get(url, headers=headers)
print(response.status_code)
print(response.text)
url = "http://47.96.101.230:9797/marry_yd/top.jsp"
response = session.get(url, headers=headers)
print(response.status_code)
print(response.text)
data = {
"applyDate": "2022-09-19+01%3A10%3A29",
"deptCode" : 35010001,
"deptCodeName" : "%E7%A6%8F%E5%B7%9E%E5%B8%82%E6%B0%91%E6%94%BF%E5%B1%80%E5%A9%9A%E5%A7%BB%E7%AE%A1%E7%90%86%E5%A4%84",
"deptCodeNamereset" : "%E7%A6%8F%E5%BB%BA%E7%9C%81%E6%B0%91%E6%94%BF%E5%8E%85%E5%A9%9A%E5%A7%BB%E7%AE%A1%E7%90%86%E5%A4%84",
"deptCodereset" : 35000001,
"nameMan" : "%E6%9E%97%E5%9D%87%E6%BA%A2",
"opType": "IA",
"validFlag" : 1
}
url = "http://47.96.101.230:9797/marry_yd/xcdjdj/marryQueryList.do?method=queryList"
# requests = session.post(url=url, data=data, headers=headers)
# print(requests.status_code)
# print(requests.text)
# data = {
# "loginid" : "zft2765",
# "userpassword": "xiehui189"
# }
# response = session.post(url, data=data)
#
# print(response.status_code)
#
# print(response.text)
#
# print(session.cookies)
#
# response = session.get("http://193.112.48.37:8080/api/hrm/login/getAccountList?__random__=1663480088081")
#
# print(response.status_code)
# print(response.text)
抓包工具
sudo tcpdump -X -i 2 host 1x.xx.xx.xx and tcp port 9797
go安装说明
安装NVim
## 安装nvim
$ sudo apt install neovim
## 安装 crul
$ sudo apt install curl
## 下载 vim-plug
sh -c 'curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.