🧩 分享一些日常收集到的开源软件、开发工具和技术知识。
Useful open-source projects, dev tools, and tech snippets — shared from daily discoveries.
Useful open-source projects, dev tools, and tech snippets — shared from daily discoveries.
Ubuntu 删除防火墙
#ubuntu
#开放所有端口
sudo iptables -P INPUT ACCEPT
sudo iptables -P FORWARD ACCEPT
sudo iptables -P OUTPUT ACCEPT
sudo iptables -F
#Oracle自带的Ubuntu镜像默认设置了Iptable规则,关闭它
apt-get purge netfilter-persistent
reboot
#强制删除
rm -rf /etc/iptables && reboot#ubuntu
GitHub - hiroi-sora/Umi-OCR: OCR software, free and offline. 开源、免费的离线OCR软件。支持截屏/批量导入图片,PDF文档识别,排除水印/页眉页脚,扫描/生成二维码。内置多国语言库。
https://github.com/hiroi-sora/Umi-OCR
#ocr
https://github.com/hiroi-sora/Umi-OCR
#ocr
GitHub - Zeyi-Lin/HivisionIDPhotos: ⚡️HivisionIDPhotos: a lightweight and efficient AI ID photos tools. 一个轻量级的AI证件照制作算法。
https://github.com/Zeyi-Lin/HivisionIDPhotos
#证件照
https://github.com/Zeyi-Lin/HivisionIDPhotos
#证件照
GitHub - Z4nzu/hackingtool: ALL IN ONE Hacking Tool For Hackers
https://github.com/Z4nzu/hackingtool
#tool
黑客攻击集合
https://github.com/Z4nzu/hackingtool
#tool
黑客攻击集合
Oracle dd 获取ipv6
保存为sh文件执行
#oracle
Debian_IPv6(){
iName=$(ip add | grep "^2: " | awk -F'[ :]' '{print $3}')
dhclient -6 $iName #临时开启IPv6
echo $iName #人工查看网卡是否正确
cp /etc/network/interfaces /root
sed -i "$ a iface $iName inet6 dhcp" /etc/network/interfaces
echo "Reboot... & ping ipv6.google.com After reboot"
reboot
}
Ubuntu_IPv6(){
yamlName=$(find /etc/netplan/ -iname "*.yaml")
iName=$(ip add | grep "^2: " | awk -F'[ :]' '{print $3}')
dhclient -6 $iName
MAC=$(ip add | grep "link/ether.*brd" | awk -F' ' '{print $2}')
IPv6=$(ip add | grep "inet6.*global" | awk -F' ' '{print $2}')
if [[ ${#IPv6} -lt 5 ]]; then echo "Can't IPv6"; exit 1; fi
cp $yamlName /root/
cat <<0099 >$yamlName
network:
ethernets:
ens3:
dhcp4: true
dhcp6: false
match:
macaddress: $MAC
addresses:
- $IPv6
set-name: $iName
version: 2
0099
netplan apply
sleep 2s
ping ipv6.google.com
}
myOS=$(hostnamectl | sed -n 's_.*System: \(\S*\).*_\1_p')
#Ubuntu, Debian
if [[ "$myOS" =~ "Ubuntu" ]]; then
echo "Ubuntu"
Ubuntu_IPv6
elif [[ "$myOS" =~ "Debian" ]]; then
echo "Debian"
Debian_IPv6
fi保存为sh文件执行
#oracle
https://pdfsam.org/download-pdfsam-basic/
拆分,合并,旋转,混合和提取页面从PDF文件与PDFsam基本,免费和开源,在家里或在工作。您的PDF文档在您的计算机上保持隐私,无需将其上传到第三方服务。
#PDF
拆分,合并,旋转,混合和提取页面从PDF文件与PDFsam基本,免费和开源,在家里或在工作。您的PDF文档在您的计算机上保持隐私,无需将其上传到第三方服务。
https://www.ai-reading.me/#/
基于Minimax算法的五子棋游戏。本来想利用文本生成人工智能(例如当前流行的ChatGPT)来和AI对弈,但是实践中发现,AI不能深入分析整个棋盘,并且在推理上表现较为有限,无法作出最佳的落子决策。
基于Minimax算法的五子棋游戏。本来想利用文本生成人工智能(例如当前流行的ChatGPT)来和AI对弈,但是实践中发现,AI不能深入分析整个棋盘,并且在推理上表现较为有限,无法作出最佳的落子决策。