Ubuntu 22.04 通过ufw / iptables 开放指定端口——20230715更新
Ubuntu22.04 新增防火墙端口
查看防火墙状态
ufw status
开放22端口
ufw allow 22
添加完成,查看防火墙状态
ufw status
ufw status
ufw allow 22
ufw status
pvekclean
,请先安装git clone https://github.com/jordanhillis/pvekclean.git
cd pvekclean
chmod +x pvekclean.sh
安装完成后执行pvekclean
即可
./pvekclean.sh
apt update -y && apt dist-upgrade -y
apt-get update && apt-get install vim lrzsz unzip net-tools curl screen uuid-runtime git -y && apt dist-upgrade -y
https://pve.proxmox.com/wiki/Upgrade_from_7_to_8
注意:
如果远程使用ssh连接的话,建议先使用screen
命令,避免网络不稳定,操作中断导致的各种问题
apt update -y && apt dist-upgrade -y
sed -i_orig "s/data.status === 'Active'/true/g" /usr/share/pve-manager/js/pvemanagerlib.js
sed -i_orig "s/if (res === null || res === undefined || \!res || res/if(/g" /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js
sed -i_orig "s/.data.status.toLowerCase() !== 'active'/false/g" /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js
systemctl restart pveproxy
pveversion
最新的版本是 7.4.15
https://xn--z7x900a.love
http://我不是.肥猫.love:63/接口禁止贩卖
开源,免费,自行配置接口,直播、点播两用,安卓设备。
takagen99版拥有全新UI外观、功能更加丰富,支持挂载WebDav和本地盘,播放器显示分辨率、网速、时间屏显等功能。
二、TVbox使用教程
首页点击“设置”,选择“配置地址”,输入”数据源地址“,开启存储权限,“确定”后选择数据源,然后就可以使用了。
@echo off & setlocal enabledelayedexpansion
rem ===================需手动设置===================
rem 设定片头片尾长度,格式为 HH:mm:ss.fff
set "s1=00:01:07.0"
set "s2=00:01:30.0"
rem ================================================
for /f "tokens=1-4delims=:." %%a in ("%s2%") do (
set /a "t2=(1%%a %% 100 *3600 + 1%%b %% 100 * 60 + 1%%c %% 100) * 1000 + 1%%d %% 1000"
)
md myvideo 2>nul
for %%i in (*.avi *.mkv *.mp4 *.flv) do (
for /f "tokens=2-5delims=:., " %%a in ('ffmpeg -i "%%i" 2^>^&1 ^| find "Duration:"') do (
set /a "t=(1%%a%%100*3600+1%%b%%100*60+1%%c%%100)*1000+1%%d0%%1000,t-=t2,ms=t%%1000,t/=1000"
set /a h=t/3600,m=t%%3600/60,s=t%%60,h+=100,m+=100,s+=100,ms+=1000
set "t=!h:~1!:!m:~1!:!s:~1!.!ms:~1!"
ffmpeg -ss !s1! -to !t! -accurate_seek -i "%%i" -c copy -avoid_negative_ts 1 "myvideo\%%i" -y
)
)
pause
CI_COMMIT_REF_NAME
: The branch or tag name for which project is built.
CI_CONFIG_PATH
: The path to the CI/CD configuration file. Defaults to .gitlab-ci.yml. Read-only inside a running pipeline.
CI_PROJECT_PATH
: The project namespace with the project name included.
CI_BUILDS_DIR
: The top-level directory where builds are executed.
CI_PROJECT_DIR
: The full path the repository is cloned to, and where the job runs from. If the GitLab Runner builds_dir parameter is set, this variable is set relative to the value of builds_dir. For more information, see the Advanced GitLab Runner configuration.
<encoder class="net.logstash.logback.encoder.LoggingEventCompositeJsonEncoder">
<providers>
<pattern>
<pattern>
{
"timestamp": "%date{\"yyyy-MM-dd HH:mm:ss\"}",
"log_level": "%level",
"class_name": "%class",
"thread": "%thread",
"message": "%message",
"stack_trace": "%exception{5}"
}
</pattern>
</pattern>
<arguments/>
</providers>
</encoder>
只能通过ALTER TABLE不能create index
ALTER TABLE tbl_name ADD INDEX (column), ALGORITHM=INPLACE, LOCK=NONE;
一款命令行式哔哩哔哩下载器. Bilibili Downloader.
https://github.com/nilaoda/BBDown
中国节假日补班日历
https://github.com/lanceliao/china-holiday-calender
本图收集了常见CPU型号单核跑分图,包括英特尔 酷睿(Intel Core)桌面处理器系列, 英特尔 酷睿(Intel Core)移动处理器系列和AMD 锐龙(Ryzen)处理器系列。
https://github.com/mediv01/CPU-Single-Core-Benchmark