Skip to content

Instantly share code, notes, and snippets.

@owlrock7
owlrock7 / debian_upgrade.sh
Last active May 1, 2026 08:41
debian_upgrade
#!/usr/bin/env bash
#
# Debian 系统安全跨版本升级脚本 (最终打磨版)
# 功能:自动检测版本,支持 Debian 11 -> 12 -> 13 升级路径
# 改进:增强了错误捕获、子 Shell 处理及非交互环境兼容性
#
set -u
# 注意:不使用 set -e,依靠 run_or_die 函数精确控制错误处理
@owlrock7
owlrock7 / install-fonts.txt
Created August 7, 2023 14:38 — forked from matthewhartman/install-fonts.txt
Install TTF Fonts in Debian
cd fonts
mv *.ttf /usr/share/fonts/truetype
cd /usr/share/fonts/truetype
mkfontscale
mkfontdir
fc-cache
xset fp rehash
@owlrock7
owlrock7 / .vimrc
Last active March 6, 2022 16:02
some simply vim config
set nocompatible
set ruler
set showcmd
set incsearch
set shiftwidth=4
set expandtab
set laststatus=2
set number
set numberwidth=5
set ignorecase
@owlrock7
owlrock7 / nload.conf
Created March 5, 2022 07:07
nload_config_in_etc
Version="1"
AverageWindow="500"
BarMaxIn="102400"
BarMaxOut="102400"
DataFormat="Human Readable (Byte)"
Devices="all"
MultipleDevices="[ ]"
RefreshInterval="1000"
TrafficFormat="Human Readable (Bit)"
@owlrock7
owlrock7 / gist:c0aacca5d6a71b4b5f2cda030567daa2
Last active February 16, 2022 11:47
owlrock's default bashrc file template
[ -z "$PS1" ] && return
HISTCONTROL=ignoredups:ignorespace
shopt -s histappend
HISTSIZE=100000
HISTFILESIZE=2000000
shopt -s checkwinsize
export TERM=xterm-256color
[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
if [ -z "$debian_chroot" ] && [ -r /etc/debian_chroot ]; then
debian_chroot=$(cat /etc/debian_chroot)