Windows 禁用自动更新和自带杀毒

暂停更新 3000 天 @ECHO OFF >NUL 2>&1 REG.exe query "HKU\S-1-5-19" || ( ECHO SET UAC = CreateObject^("Shell.Application"^) > "%TEMP%\Getadmin.vbs" ECHO UAC.ShellExecute "%~f0", "%1", "", "runas", 1 >> "%TEMP%\Getadmin.vbs" "%TEMP%\Getadmin.vbs" DEL /f /q "%TEMP%\Getadmin.vbs" 2>NUL Exit /b ) REG ADD "HKLM\SOFTWARE\Microsoft\WindowsUpdate\UX\Settings" /v FlightSettingsMaxPauseDays /t reg_dword /d 3000 /f Windows Defender (存疑 仅作记录) REG ADD "HKLM\SOFTWARE\Policies\Microsoft\Windows Defender" /v DisableAntiSpyware /t REG_DWORD /d 1

现代浏览器的 CSS 重置(reset)代码

/* 1. Use a more-intuitive box-sizing model. */ *, *::before, *::after { box-sizing: border-box; } /* 2. Remove default margin */ * { margin: 0; } /* 3. Allow percentage-based heights in the application */ html, body { height: 100%; } /* Typographic tweaks! 4. Add accessible line-height 5. Improve text rendering */ body { line-height: 1.5; -webkit-font-smoothing: antialiased; } /* 6. Improve media defaults */ img, picture, video, canvas,

shell 获取公网 IP

命令 curl -s http://www.net.cn/static/customercare/yourip.asp |grep -P -o "[0-9.]+(?=</h2>)" 压缩网址 302 跳转需要调整curl的参数 (但是网址压缩可能失效导致命令不能用) curl -L -s https://shorturl.at/hiqyE |grep -P -o "[0-9.]+(?=</h2>)" 解释 curl -s 隐藏下载进度 -L 兼容 302 跳转

多核心压缩 bz2 的程序 pbzip2

bz2是单核程序,在高配置服务器上压缩大文件很慢,所以这里安装了一个多核心版本的记录一下使用方法,安装用 yum 或者 apt 安装就可以 全力输出 tar -c 文件 |