apk add mysql mysql-client
- Add user group for /var/lib/mysql:
chown -R mysql:root /var/lib/mysql
- Edit config, add
datadir=/var/lib/mysql
to/etc/mysql/my.cnf
- Uncomment
innodb_buffer_pool_size=16M
, Save - Setup database:
service mariadb setup
`xxxx` |
from sys import argv | |
from app import app | |
try: | |
Port = 8080 | |
if len(argv) > 1: | |
Port = int(argv[1]) | |
app.run(host='0.0.0.0', port=Port, debug=True) |
print("Hello World...") |
{ | |
"breadcrumbs.enabled": false, | |
"window.titleBarStyle": "custom", | |
"editor.renderWhitespace": "boundary", | |
"editor.insertSpaces": false, | |
"editor.smoothScrolling": true, | |
"workbench.colorTheme": "Community Material Theme High Contrast", | |
"workbench.iconTheme": "eq-material-theme-icons", | |
"workbench.colorCustomizations": { | |
"sideBar.background": "#192227", |
This is my Visual Studio Code settings, i use vscode especially for python development.
{ | |
"4621": "(AVL) DiTEST Fahrzeugdiagnose GmbH", | |
"3765": "@pos.com", | |
"3151": "01dB‐Stell", | |
"10737": "0XF8 Limited", | |
"8168": "103mm Tech", | |
"8219": "1064138 Ontario Ltd. O/A UNI‐TEC ELECTRONICS", | |
"4375": "11 WAVE TECHNOLOGY, INC.", | |
"4835": "1417188 Ontario Ltd.", | |
"5288": "1C Company", |
Download from http://www.linux-usb.org/usb.ids and save as data.txt
Save this code below as parser.py
Run with python parser.py
Result -> usb.json