Skip to content

Instantly share code, notes, and snippets.

View sakuyamaij's full-sized avatar
🐇

Kamille sakuyamaij

🐇
View GitHub Profile
:global adslinterface "pppoe-out1"
:global matchip "58.32"
:global adslip [ /ip address get [/ip address find interface=$adslinterface] address ]
:log info "CheckIP: PPPOE Connected!"
:if ([ :len [/interface find name=$adslinterface]] = 0 ) do={ :log info "CheckIP: No interface named $adslinterface, please check configuration." }
:if ([ :typeof $adslip ] = "nothing" ) do={
:log info ("CheckIP: No ip address present on " . $adslinterface . ", please check.")
} else={
:log info ("CheckIP: Current IP address is " . $adslip)
@sakuyamaij
sakuyamaij / 全新PVE添加老硬盘教程.md
Last active December 18, 2023 04:05
PVE更换硬盘扩容教程
  1. 挂载硬盘 blkid | grep sdb1获取UUID

systemctl edit --force --full mnt-pve-ssd.mount

[Install]
WantedBy=multi-user.target

[Mount]
Options=defaults
payload:
- DOMAIN,epg.51zmt.top
- DOMAIN,yacd.haishan.me
- DOMAIN,stun.l.google.com
- DOMAIN,downloads.incenter.medical.philips.com
- DOMAIN-KEYWORD,epicgames-download
- DOMAIN-KEYWORD,steampipe
- DOMAIN-SUFFIX,cdn.ea.com
- DOMAIN-SUFFIX,cm.steampowered.com
- DOMAIN-SUFFIX,com.prod.hosts.ooklaserver.net
@sakuyamaij
sakuyamaij / .vimrc
Last active February 14, 2020 03:39
Raspberry 4B Setup memo
syntax on "打开语法高亮。自动识别代码,使用多种颜色显示
colorscheme molokai "配色方案
set t_Co=256 "启用256色
set nu "显示行号
set encoding=utf-8 "使用 utf-8 编码
set cursorline "光标所在的当前行高亮
set softtabstop=2 "TAB键转为2个空格
set incsearch "输入搜索模式时,每输入一个字符,就自动跳到第一个匹配的结果
set laststatus=2 "显示状态栏