ssh-keygen -t rsa -b 4096 -C "your_email@example.com" ssh-copy-id -p 1234 root@ddns.1.2 Host ddns.1.2 HostName ddns.1.2 User root Po
gpedit.msc 计算机配置-管理模板-网络-Lanman工作站”, 启用不安全的来宾登录
NAT机器 ifconfig enp0s20f0u1i2 192.168.1.1 netmask 255.255.255.0 echo 1 > /proc/sys/net/ipv4/ip_forward iptables -t nat -A POSTROUTING -s 192.168.1.0/24
rockchip,pins = /* uart4_rxm0 */ <1 RK_PA4 2 &pcfg_pull_up>, /* uart4_txm0 */ <1 RK_PA6 2 &pcfg_pull_up>;
设置 terminal.integrated.scrollback
sysroot/usr/include/linux/version.h kernel/include/generated/uapi/linux/version.h #define LINUX_VERSION_CODE 330306 0x50A42 = 5.10.66 #define LINUX_VE
alias dkrun='docker run -it --rm --network host -e USER_ID=0 --mount type=bind,source="$PWD",target="/home/project" harbor.meda.test/seafile/buildroot
find /sys/ -type f -name 'governor' -exec cat {} \; echo performance | tee $(find /sys/ -name *governor) /dev/null || true
cat /sys/kernel/debug/dri/0/summary cat /sys/kernel/debug/dri/0/state
y = width * height / 4; memset(buffer, 128, y); memset(buffer + y, 64, y); memset(buffer + y * 2, 128, y); memset(buffer + y * 3, 192, y); uv = width
apt install vsftpd -y mkdir /ftphomeuseradd -d /ftphome ftpuserpasswd ftpuserchown ftpuser:ftpuser /ftphome -R vi /etc/vsftpd.chroot_list 插入ftpuser vi
设置(ctrl ,) @ext:ms-vscode.cpptools cpu 限制脚本 cpu.sh #!/bin/bash # 定义检查间隔时间(秒) INTERVAL=10 # 定义 CPU 使
root替换为1234 sed -i 's/root/1234/g' filename exit 0上面插入一行123 sed '/exit 0/i 123' filename exit 0下面插入一行123 sed '/exit 0/a 123' filename 只显示2到4行 sed -n '
set -o errexit:与 set -e 相同,使脚本在遇到错误时立即退出。 set -o noerrexit:禁用 set -e 的效果,允许脚本在遇到错误时继续执
usermod -aG docker testuser
查看当前大小 journalctl --disk-usage 修改文件 nano /etc/systemd/journald.conf SystemMaxUse=1G 重启服务 systemctl restart systemd-journald
不是账号的权限问题 修改mysql配置文件 /etc/mysql/mysql.conf.d/mysqld.cnf [mysqld] skip-name-resolve 重启mysql
####mymount.sh #!/bin/bash echo "mountting..." cp /etc/resolv.conf /Data/Ubuntu_BS/Ubuntu_Base-22.04.3/etc/resolv.conf sudo mount -t proc /proc /Data/
strace -f -ttt -v -s 128 ./test 2>&1 |grep proc
mv /bin/cat /bin/cat_o ln -s /usr/bin/coreutils /sbin/cat nano /bin/cat #!/bin/bash function CPUinfo { # 在这里编写处理 /proc/cpuinfo 文件并输出结果的代码 local cpuinf
QMAKE_CXXFLAGS_RELEASE += $$QMAKE_CFLAGS_RELEASE_WITH_DEBUGINFOQMAKE_LFLAGS_RELEASE += $$QMAKE_LFLAGS_RELEASE_WITH_DEBUGINFO
stty -F /dev/ttyS5 115200cat /dev/ttyS5 &echo AT+VER > /dev/ttyS5
conda install setuptoolsconda update conda
Gerber文件后缀含义 GTL—toplayer顶层 GBL—bottomlayer底层 GTO—TopOverlay顶层丝印层 GBO—Bottomlayer底层丝印层 GTP
import paho.mqtt.client as mqtt from datetime import datetime import threading import time # MQTT Broker设置 BROKER_HOST =
1、安装timeout:opkg install coreutils-timeout 2、进入/etc/netdata 3、使用./edit-config charts.d.conf来编辑配置文件,这个edit-config等于是
串口输入:fiq Welcome to irq debugger mode Enter ? to get command help debug> debug> ? FIQ Debugger commands: pc PC status regs Register dump allregs Exten
Copyright © 2005-2024 51CTO.COM 版权所有 京ICP证060544号