Posts

Showing posts from June, 2021

格式化Linux硬盘代码

  fdisk -ll //查看硬盘数据 df -Th //查看所有挂载盘 yum install wget -y && wget -O auto_disk.sh http://download.bt.cn/tools/auto_disk.sh && bash auto_disk.sh //挂载所有硬盘 umount -f /dev/vdb1     /dev/vdb1为路径 //解挂命令 mkfs.xfs -f /dev/vdb1       /dev/vdb1为路径 //格式化命令 ext4格式    xfs格式 mount /dev/vdb1 /www //手动挂载命令 ls  //看目前文件夹 mkdir /zzz   //创建文件夹

How to Turn off YouTube Recommendations Forever In Your Browser

Install Web Browser Extension You need to use different extensions for different web browsers. Here, we will show you some extensions for commonly used web browsers: Chrome Firefox Opera Demo: No Video In Index Page No Suggestion In Player Page Addition: How to Delete Your YouTube Search History? As mentioned above, the YouTube recommendations are from your YouTube search history and watch history. Thus, you can delete both search history and watch history to reset YouTube recommendations. How to reset YouTube recommendations via clearing YouTube search history? You can follow these steps: 1. Go to the YouTube website and sign in to YouTube. 2. Click your user account picture that is on the top-right side of the interface. 3. A long menu will pop up. Then, you need to select Your data in YouTube from that menu to continue. 4. Scroll down to the YouTube controls section and click Manage your YouTube Search History under the YouTube Search History click Manage your YouTube Search History...

利用iptables设置端口转发的shell脚本

  #2022-03-12 号更新: 建议直接用NPS,效果更好,还有GUI界面。 此工具已经过时,但是教程理论上可用。 利用iptables设置端口转发的shell脚本 项目地址: https://github.com/arloor/iptablesUtils 项目作用 便捷地设置iptables流量转发规则 当域名解析的地址发生变化时,自动更新流量转发规则,不需要手动变更(适用于ddns域名) 用法 # 如果vps不能访问 raw.githubusercontent.com 推荐使用这个 wget --no-check-certificate -qO natcfg.sh http://www.arloor.com/sh/iptablesUtils/natcfg.sh && bash natcfg.sh 或 wget --no-check-certificate -qO natcfg.sh https://raw.githubusercontent.com/arloor/iptablesUtils/master/natcfg.sh && bash natcfg.sh 输出如下: ############################################################# # Usage: setup iptables nat rules for domian/ip # # Website: http://www.arloor.com/ # # Author: ARLOOR <admin@arloor.com> # # Github: https://github.com/arloor/iptablesUtils # ############################################################# 你要做什么呢(请输入数字)?Ctrl+C 退出本脚本 1) 增加转发规则 3) 列出所有转发规则 2) 删除转发规则 4) 查看当前iptables配置 #? 此时...