»
(008)CubeIDE实现USB外设*
(018)C99 的指针*
(019)C99 只有值赋值,没有move*
(022)POSIX线程库pthread的同步锁*
(023)POSIX线程库pthread的多线程*
(027)C99标准库中的计时与等待 *
(028)C语言中的高精度计算库GMP *
(029)C语言中的Web服务*
(030)C语言中的字符转码ICU*
(031)从几个方面显然C语言比C++效率高*
🍓(016)拷贝pre-receive到每个git仓库的脚本
拷贝pre-receive到每个git仓库的脚本:
(来源于ChatGPT与Deepseek):
(已验证)
#!/bin/bash
PRE_RECEIVE_SCRIPT="/mnt/usb/git-repo/pre-receive"
if [ ! -f "$PRE_RECEIVE_SCRIPT" ]; then
echo "pre-receive script does not exist: $PRE_RECEIVE_SCRIPT"
exit 1
fi
find . -type d -name "hooks" | while read hooks_dir; do
if [ -d "$hooks_dir" ]; then
cp "$PRE_RECEIVE_SCRIPT" "$hooks_dir/pre-receive"
echo "Copied pre-receive script to $hooks_dir"
fi
done