uds

uds What is UDS? • UDS stands for Unified Diagnostics Service • It is present in all modern cars • Provides access to the Services offered by ECUs • It takes place on the top of the CAN protocol (Layer 4) • Allows to perform transmissions of up to 256 bytes • It is just a Transport Protocol https://media.defcon.org/DEF%20CON%2024/DEF%20CON%2024%20workshops/DEFCON-24-Workshop-Javier-Vazquez-You-CAN-haz-car-Secretz-UPDATED.pdf

tp20 for can bus

tp20 for can bus VW Transport Protocol 2.0 (TP 2.0) for CAN bus CAN allows for data packets with a payload of up to 8 bytes, to send messages longer than 8 bytes it is necessary to use a transport protocol. The OBD-II specification for example makes use of ISO-TP (ISO 15765-2). Volkswagen however uses it’s own transport protocol in its vehicles, known as VW TP 2.0. This page gives a run down on how TP 2.

flask

flask 1 2 3 4 5 pip install Flask flask run flask run --host=0.0.0.0 pip install flask-restful https://dormousehole.readthedocs.io/en/latest/ https://flask.palletsprojects.com/en/2.3.x/ https://flask-restful.readthedocs.io/en/latest/quickstart.html

CAN, Controller Area Network

CAN, Controller Area Network https://baike.baidu.com/item/CAN%E6%80%BB%E7%BA%BF/297754 CAN是控制器局域网络(Controller Area Network, CAN)的简称,是由以研发和生产汽车电子产品著称的德国BOSCH公司开发的,并最终

gnome

gnome Gnome shell system monitor extension https://aur.archlinux.org/packages/gnome-shell-extension-system-monitor-git/ https://github.com/paradoxxxzero/gnome-shell-system-monitor-applet install gnome shell extension https://www.baeldung.com/linux/gnome-shell-extension 1 2 sudo apt update sudo apt install gnome-shell-extensions After that, we’ll launch the Activities menu, search for Extensions, and open it: chrome install extension: Shell Integration extension refresh page: https://extensions.gnome.org/extension/261/kimpanel/ click on/off button to install gnome shell extenstion

supervisor, supervisorctl

supervisor, supervisorctl 常用命令 1 2 3 4 5 supervisorctl status supervisorctl stop service0 supervisorctl stop all supervisorctl start all supervisorctl restart all supervisor 配置文件 /etc/supervisord.conf 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 [program:program_0] #程序的启动目录 directory =

fstab

fstab 格式 1 <file system> <dir> <type> <options> <dump> <pass> 示例 1 2 3 4 5 6 UUID=48ab4d71-5bb2-4bc4-bf32-dc357020ae27 /data ext4 defaults 0 0 UUID=b256c0bb-9000-456b-b9eb-18239b5df5ddswap none swap defaults 0 0 UUID=E854-F511 /boot vfat rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=ascii,shortname=mixed,utf8,errors=remount-ro 0 2 # 支持TRIM 的ssd 启用trim, 在参数里加discard, 使用

更新Jar包中的文件

更新Jar包中的文件 http://blackwing.iteye.com/blog/1545670 更新Jar包中的文件 解压 jar xf ***.jar 打包了个fat jar,后来程序作了小修改,如果重新打包一个fat jar再上传服务器实在麻

ansible playbook

ansible playbook ansible playbook 是一个特定格式的 yaml 文件, 不要直接把搜到的 ansible 文档里的 例子直接粘贴到里面, ansible playbook 至少要包含 hosts tasks, ansible 文档里找到的的 task 要粘贴到 tasks 部分 如果出现奇怪

watch command

watch command watch可以周期性的执行一个程序,并显示执行结果。 1 2 watch -d netstat -ant watch -n 3 -d netstat -ant 命令参数 -n, -interval, watch 默认每两秒运行一下程序, 可以用 -n 或 -interval 来指定间隔

influxdb basic

influxdb basic influxdb v2 install docker compose yaml 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 # compose.yamlservices:influxdb2:image:influxdb:2.7.10-alpineports:- 8086:8086environment:DOCKER_INFLUXDB_INIT_MODE:setupDOCKER_INFLUXDB_INIT_USERNAME_FILE:/run/secrets/influxdb2-admin-usernameDOCKER_INFLUXDB_INIT_PASSWORD_FILE:/run/secrets/influxdb2-admin-passwordDOCKER_INFLUXDB_INIT_ADMIN_TOKEN_FILE:/run/secrets/influxdb2-admin-tokenDOCKER_INFLUXDB_INIT_ORG:docsDOCKER_INFLUXDB_INIT_BUCKET:homesecrets:- influxdb2-admin-username- influxdb2-admin-password- influxdb2-admin-tokenvolumes:- type:volumesource:influxdb2-datatarget:/var/lib/influxdb2- type:volumesource:influxdb2-configtarget:/etc/influxdb2secrets:influxdb2-admin-username:file:~/.env.influxdb2-admin-usernameinfluxdb2-admin-password:file:~/.env.influxdb2-admin-passwordinfluxdb2-admin-token:file:~/.env.influxdb2-admin-tokenvolumes:influxdb2-data:influxdb2-config: 1 sudo docker compose -f influxdb-compose.yaml up influxdb2 influxdb http api 1 2 3 4 5 # http api curl

时间序列数据库

时间序列数据库 存储大量时间相关的数据(如日志,用户行为等) 创造了一种新型的数据库分类——时间序列数据库(Time Series Database). 时间序列数据库主要用于指

selinux

selinux 临时关闭 selinux 1 2 3 4 # 查询 selinux 状态 sestatus # 临时关闭selinux setenforce 0 永久关闭 SELinux vim /etc/selinux/config 把 #SELINUX=enforcing 改成 SELINUX=disabled https://www.ibm.com/developerworks/cn/linux/l-secure-linux-ru/index.html http://okeeper.leanote.com/post/CentOS7%E4%B8%AD%E5%85%B3%E9%97%ADselinux https://my.oschina.net/oaoa/blog/185833 SELinux 初探 在进入了 CentOS 5.x 之后,SELinux 已经是个非

fsck

fsck fsck https://man.linuxde.net/fsck/embed#?secret=oLlAnrAniE fsck命令文件系统管理 fsck命令被用于检查并且试图修复文件系统中的错误。当文件系统发生错误四化,可用fsck指令尝试加以修复。 语法

golang date time, 日期, 时间

golang date time, 日期, 时间 创建一个指定时间的日期对象 1 start := time.Date(2021, 1, 7, 12, 0, 0, 0, time.Local) 比较 先把当前时间格式化成相同格式的字符串, 然后使用 time 的 Before, After, Equal 方法即可. 1 2 3

backup list, 备份列表

backup list, 备份列表 PC - home maven setting heidisql config fcitx 码表 /home/wiloon/.config/fcitx/table/*.mb jetbrain.dic ~/bin IDEA settings PC - work maven setting heidisql config email fcitx 码表 /home/wiloon/.config/fcitx/table/*.mb idea.dic ~/bin Emacs configuration file: ~/.emacs IDEA settings. wiloon.com enx.war enx db router /etc/hosts android 照片 > NAS Contacts

idea external tool

idea external tool https://intellij-support.jetbrains.com/hc/en-us/community/posts/206883315-Anyway-to-Make-IntelliJ-IDEA-run-command-line-commands You can configure command line commands to execute via the “External Tools” feature. Go to File > Settings > [IDE Settings] > External Tools to create an External Tool definition. I’ve never done it with Subversion, but it should work. Just use the svn executable as the “Program” in the settings dialog. There are some pretty useful variables and macros you can define. See the Help for more information.

gopath

gopath GOPATH GOBIN bin 目录里面存放的都是通过 go install 命令安装后,由 Go 命令源码文件生成的可执行文件 ( 在 Mac 平台下是 Unix executable 文件,在 Windows 平台下是 exe 文件) 。 该环境变量的值为

less command

less command make Vim behave like “tail -f”? 1 less +F https://unix.stackexchange.com/questions/82058/how-do-i-make-vim-behave-like-tail-f http://www.cnblogs.com/peida/archive/2012/11/05/2754477.html less 工具也是对文件或其它输出进行分页显示的工具,应该说是linux正统查看文件内容的工具,功能极其强大。less 的用