ffmpeg -i test.mp3 -af atempo=2 ff_atempo.mp3 ffmpeg -i test.mp3 -af atrim=start=30:end=50 ff_atrim.mp3 ffmpeg -i fuzhous.mp4 -i seas.mp4 -filter_complex “[0:v]fps=25[v0];[1:v]fps=25[v1];[v0][v1]blend=all_mode=average” ff_blend.mp4 ffmpeg -i fuzhous.mp4 -vf boxblur=luma_radius=4 ff_boxblur.mp4 ffmpeg -i ../fuzhous.mp4 -colorspace bt709 -ss 00:00:10 -vframes 1 ff_bt709.png —————————————— ffmpeg -f concat -safe 0 -r 1/4 -i file -f mp4 output.mp4 file file ‘a0.jpg’ file ‘a1.jpg’ file… Continue reading ffmpeg-notepad
screen
screen的作用是建立新的进程,关闭当前窗口,程序继续执行。非常适用于linux远程 root115@115:~/Downloads$ ls -lth total 8.8G -rw-r–r– 1 root root 4.6G Mar 30 15:22 CentOS-Stream-10-latest-x86_64-dvd1.iso -rw-r–r– 1 root115 root115 240 Mar 30 09:15 wget -rw-r–r– 1 root root 819M Mar 24 12:20 CentOS-Stream-10-latest-x86_64-boot.iso root115@115:~/Downloads$ screen -ls //列出进程 There is a screen on: 2382.wget (Detached) 1 Socket in /home/root115/.screen. root115@115:~/Downloads$ screen -r 2382 //查看进程 root115@115:~/Downloads$ screen… Continue reading screen
pactl list
root135@root135:~/Documents$ cat pactl pactl list | grep -A2 ‘Source’ Monitor Source: alsa_output.pci-0000_00_1b.0.analog-stereo.monitor Latency: 0 usec, configured 0 usec Flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY — Source #1 State: SUSPENDED Name: alsa_output.pci-0000_00_1b.0.analog-stereo.monitor — Source #2 State: SUSPENDED Name: alsa_input.pci-0000_00_1b.0.analog-stereo
firewall-cmd
root@115:~# firewall-cmd –list-ports 20/tcp 21/tcp 22/tcp 80/tcp 443/tcp 39000-40000/tcp root@115:~# firewall-cmd –remove-port=39000-40000/tcp –permanent success root@115:~# firewall-cmd –list-ports 20/tcp 21/tcp 22/tcp 80/tcp 443/tcp 39000-40000/tcp root@115:~# firewall-cmd –remove-port=39000/tcp –permanent Warning: NOT_ENABLED: 39000:tcp success root@115:~# firewall-cmd –remove-port=40000/tcp –permanent Warning: NOT_ENABLED: 40000:tcp success root@115:~# firewall-cmd –reload success root@115:~# firewall-cmd –list-ports 20/tcp 21/tcp 22/tcp 80/tcp 443/tcp root@115:~# firewall-cmd –add-port=6115/tcp –permanent… Continue reading firewall-cmd
更改wordpress后台的登录界面和logo
此方法为wordpress主题修改法,不需要更改核心文件。 第一步、加载自定义的css文件,网上很多的方法钩子挂错了,这里的代码都是我自己写好并测试的 add_action(‘login_head’, ‘hx_custom_login’); function hx_custom_login() { wp_enqueue_style( “admin-my”, get_template_directory_uri() . “/hx_admin.css” ); } 第二步、更换wordpress的默认logo add_action(‘login_head’, ‘custom_loginlogo’); function hx_custom_logo(){ echo ‘<style type=”text/css”> h1 a {background-image: url(‘.get_bloginfo(‘template_directory’).’/your-logo.png) !important; } </style>’; } 第三步、修改点击logo后跳转的链接,默认是跳转wordpress官网的,这里我修改为链接到当前网站首页 function hx_custom_login_url($url) { return get_bloginfo(‘url’); } add_filter( ‘login_headerurl’, ‘hx_custom_login_url’); 至此你的wordpress登录页面已经完全自主话了,没有必要用网上所说的插件等乱七八糟的。 我们可以在当前wordpress建站主题的functions.php文件中添加下面的代码: function custom_loginlogo() { echo ‘<style type=”text/css”> h1 a {background-image: url(‘.get_bloginfo(‘template_directory’).’/images/login_logo.png) !important; } </style>’;… Continue reading 更改wordpress后台的登录界面和logo