友善R5C那些事
这个完全不想折腾了,完全专注于作为一个稳定的路由器。 DockerPortainer12docker volume create portainer_datadocker run -d -p 8000:8000 -p 9443:9443 -p 9000:9000 --name portainer --restart=always -v /var/run/docker.sock:/var/run/docker.sock -v portainer_data:/data portainer/portainer-ce:latest Install Portainer CE with Docker on Linux Arm系统,跟树莓派一样,用这个也行。 PrometheusGrafanaGrafana Dashboard cadvisornode-exporterServer Monitoring // Prometheus and Grafana Tutorial Christian’s Boilerplates Raspberry Pi &...
树莓派Ubuntu那些事
OS installationDownload:Ubuntu for raspberry If you do not have a monitor for your raspi, please install and set up your ubuntu with Raspberry Pi Imager, and enable the ssh before your installation. Make sure you have a network connection on your raspi. First time setting up ubuntuSet up system time12sudo apt install ntpdatesudo ntpdate cn.pool.ntp.org (referance)[https://cloud.tencent.com/developer/article/1879686] Otherwise, you will meet issue when sudo apt update,...
Set up my own VPS
My first try to access google is to set up VPS, but at that time I’m so naive. Today, after several years of learning, I come back again. Before Setup VPSAt the very beginning, if you don’t get a block from the GFW just after you setup the VPS, I suggest using a relatively complex protocol to protect your network data. Then you need a domain, and a DNS server. I choose namesilo as provider and got the domain and DNS service from it. Virtual Private Server (VPS)I choose Vultr as the provider,...
C的小知识(一)Flexible array
Referenceflexible struct arrary as a memeber of another struct Is using flexible array memebers in C bad practice? My summary on Flexible arrayWhat is a flexible array?1234567891011/** * struct ethtool_sfeatures - command to request change in device's features * @cmd: command number = %ETHTOOL_SFEATURES * @size: array size of the features[] array * @features: feature change masks */struct ethtool_sfeatures { __u32 cmd; __u32 size; struct ethtool_set_features_block...
ArchLinux
Here collect some expirences on installing ArchLinux. Manual install ArchLinuxIt’s not preferred as it is not esay for a beginner to understand all the commands, but if just following the steps everyone should make it. Manual install mainly reference to ArchLinuxStudio.github.io All the info I added here is a addition for my reference web. Preparation for installationPrepare iso fileI will not introduce how to prepare iso file, I thought it too familiar for me. Prepare networkReally...
gdb and lldb
GDBSet break point in GDBSet a break point in a source filecmd: b file:function e.g. 1b debug.c:func Set a break point at a linecmd: b file:num e.g. 1b debug.c:7 Set a break point at an addresscmd: b *address e.g. 1b *0x0000000000000 Set condition break pointcmd: b file:num if cond e.g. 1b debug:10 if a=1 Set temp? breakcmd: tbreak Cc printf unsigned long long 1printf("%llu", 285212672);
阅读
iOS阅读微软 Azure 学生认证+文字转语音(TTS)服务使用 源阅读
一些不错的小软件
Windows迅雷 v11.3.6.1872 绿色便携版
reveal.js使用简介
docker reveal.js
Work flow on MacOS
AstronvimInstall AstronvimAstronvim.com my-astronvim astronvim community lazygitthemecatppuccin tmuxtmux-plugin-manager