Skip to content

四号程序员

Keep It Simple and Stupid

  • Home
  • 读过的书
  • 从0到1实战微服务架构(第2版)

svg / png转ico并且背景透明

Leave a reply

convert -background none ./dragon-solid-full.svg -define icon:auto-resize=48,32,16 favicon.ico
 [......]

继续阅读

This entry was posted in Linux and tagged ico, transparent on 2026-01-22 by coder4.

cf部署next.js启用ISR

Leave a reply

Incremental Static Regeneration (ISR)

参考 https://opennext.js.org/cloudflare/caching

1 配置R2 bucket
// wrangler.jsonc
{
// ...
"name": "<WORKER_NAME>",
"r2_buckets": [
{
"binding": "NEXT_INC_CACHE_R2_BUCKET",
"[......]

继续阅读

This entry was posted in Linux and tagged cache, cloudflare, ISR, R2 on 2026-01-15 by coder4.

anyrouter + cc 解决使用问题

1 Reply

alias myclaude="export ANTHROPIC_AUTH_TOKEN=sk-xxxx && export ANTHROPIC_BASE_URL=https://pmpjfbhq.cn-nb1.rainapp.top && export CLAUDE_CODE_DISABLE_NONESSENTIAL_TRAFFIC=1 && claude"

 [......]

继续阅读

This entry was posted in Linux and tagged anyrouter on 2026-01-06 by coder4.

让Docker兼容firewalld防火墙

Leave a reply

docker与ufw是不兼容的,一个方案是用三方的docker_ufw

今天换一个方案,可以简单配置以兼容firewalld

1 安装firewalld
sudo apt-get install firewalld

2 配置firewalld
sudo firewall-cmd --add-port={22/tcp,443/tcp} --permanent
sudo firewall-cmd --remove-port=3306/tcp --permanent
sudo[......]

继续阅读

This entry was posted in Linux and tagged docker, firewalld防火墙 on 2025-11-28 by coder4.

xfce中常用插件和操作

Leave a reply

音量调节,安装后在panel中新增
sudo apt-get install xfce4-pulseaudio-plugin
电量显示,安装后在panel中新增
sudo apt-get install xfce4-battery-plugin
 

 [......]

继续阅读

This entry was posted in Linux and tagged xfce, 插件, 电量, 音量 on 2025-10-25 by coder4.

Post navigation

← Older posts

Categories

  • Android
  • C && C++
  • Go
  • iOS
  • Java
  • Linux
  • Mac
  • NLP
  • opencv
  • Perl
  • PHP
  • Python
  • RPC
  • Ruby
  • Visual C++ && C#
  • Windows
  • Wordpress
  • 前端技术
  • 大数据技术
  • 心情随笔
  • 搜索技术
  • 数据库技术
  • 未分类
  • 机器学习
  • 笔面题
  • 算法&数据结构
  • 网络&网络模拟
  • 计算机技术
  • 设计

Tags

  • Android
  • C
  • CentOS
  • c语言
  • Debian
  • docker
  • go
  • gtk
  • Hadoop
  • Hive
  • ios
  • Java && J2EE
  • Java && J2EE
  • Java核心技术
  • KVM
  • Linux
  • MySQL
  • nginx
  • Oracle
  • PHP
  • Python
  • Python Essential Reference
  • shell
  • socket
  • Ubuntu
  • VC
  • windows
  • 严蔚敏
  • 中文
  • 乱码
  • 卷2
  • 字符串
  • 安装
  • 实现
  • 排序
  • 教程
  • 数据结构
  • 核心技术
  • 算法
  • 算法技术手册
  • 编译
  • 读书笔记
  • 递归
  • 配置
  • 重读
Proudly powered by WordPress