Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save johzzy/30060e16b1f4a1b80e16385229af1ab5 to your computer and use it in GitHub Desktop.
Save johzzy/30060e16b1f4a1b80e16385229af1ab5 to your computer and use it in GitHub Desktop.
重装系统后要做的事以及一些配置文件
# 放到%userprofile%/.aria2/下
# http://aria2c.com/usage.html
dir=E:\aria2Downloads
max-connection-per-server=4
continue=true
max-tries=8
retry-wait=2
#input-file=.aria2\aria2.session
#save-session=.aria2\aria2.session
save-session-interval=60

软件

环境

高频工具

低频工具

系统设置

  • 关闭错误报告:组策略-计算机配置-管理模板-Windows组件-Windows错误报告
  • 关闭内存转储
  • 开启登陆时的小键盘
  • 开启后缀显示
  • 打开资源管理器后显示“此电脑”
  • 禁用Windows Defender
  • hosts
  • 关闭“偶尔在开始菜单中显示推荐应用”
  • 关闭MediaPlayer
  • 打开DirectPlay
  • 桥接网卡
  • 去掉任务栏的“人脉”按钮
  • PowerShell/cmd/记事本的字体,前两者的透明度
  • 添加纯英文输入法
  • 去掉“3d对象”文件夹
  • 把csc添加到path里(C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\Roslyn)
  • 给Everything添加快捷键,是软件本身的选项里的显示窗口快捷键
  • 浏览器、资源管理器、记事本放到任务栏上
  • 开启系统还原
  • 检查Recovery Environment状态(reagentc),格式化ESP分区后需要启用一下
  • 禁用IE加载项、开启增强保护模式
  • 更新PowerShell的Help文档(Update-Help)
  • 调整鼠标指针的大小 好像登录了微软账户会同步这一项,连着同步主题一起
  • 开启IPV6隧道
  • OneDrive客户端——设置——根据需要下载文件以节省空间
  • 把ESP分区改成FAT32格式的
  • 修改“关于Windows”里的“修改许可如下用户使用本产品”
  • 在核显控制面板(或者右键)中禁用屏幕旋转的快捷键
  • 减少遥测:设置——隐私——反馈和诊断——基本;关闭Microsoft Compatibility Telemetry组策略和注册表计划任务服务
  • 修改“发送到”菜单:%AppData%\Microsoft\Windows\SendTo

开始菜单的磁贴顺序

  1. Programming
    • VSC
    • Ubuntu 18.04(WSL)
    • GitHub Desktop
  2. Tools
    • 百度网盘
    • CCleaner
    • 迅雷
  3. Browsing
    • Microsoft Store(宽)
    • Groove 音乐
    • 微信
    • Microsoft Edge
    • OneDrive(非UWP应用)

右键菜单

已知能被Block的

  • Cast to Device:{7AD84985-87B4-4a16-BE58-8B72A5B390F7}
  • give access to:{f81e9010-6ea4-11ce-a7ff-00aa003ca9f6}
  • Share:{e2bf9676-5f8f-435c-97eb-11607a5bedf7}
  • Troubleshoot compatibility:{1d27f844-3a1f-4410-85ac-14651078412d}
  • Restore previous versions:{596AB062-B4D2-4215-9F74-E9109B0A8153}

使用方法:把CLSID(含括号)添加到HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Blocked里的String Value,或者当CLSID为Data时修改它(CCleaner是在前面加[CC]),或者删除。

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Blocked]
"CLSID"=""

给VSC添加右键空白处的菜单

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\Background\shell\VSCode]
@="Open VS Code Here"
"Icon"="C:\\Program Files\\Microsoft VS Code\\Code.exe"

[HKEY_CLASSES_ROOT\Directory\Background\shell\VSCode\command]
@="\"C:\\Program Files\\Microsoft VS Code\\Code.exe\" \"%V\""

快速访问

  • GodMode.{ED7BA470-8E54-465E-825C-99712043E01C}
  • filerecv
  • Github
  • Roaming
  • 系统工具

Linux子系统

  • 替换更新源:阿里源
  • 修改root密码(sudo passwd root)
  • 安装thefuck:sudo apt install python-pkg-resources以解决ImportError问题;add eval "$(thefuck --alias)" alias to .zshrc
  • TLDR手册/sudo apt install tldr/pip install --user cheat

zsh

  1. sudo apt install zsh
  2. 修改默认shell:chsh -s /bin/zsh或修改/etc/passwd(但其实上一步会自动修改所有的)。
  3. 安装Oh My Zshsh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
  4. 主题:ZSH_THEME="ys"或agnoster。
  5. 高亮语法插件git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting,然后在.zshrc的plugins里加一行zsh-syntax-highlighting
  6. 解决Insecure completion-dependent directories:对于非root,可以用它提示的compaudit | xargs chmod g-w,但是root就只能把ZSH_DISABLE_COMPFIX=true加到环境变量里了。
  7. 添加GitHub仓库的alias和各个盘符的alias。
  8. 禁用自动更新检测,加快启动速度:去掉DISABLE_AUTO_UPDATE="true"前的井号;手动更新可以用:upgrade_oh_my_zsh。静默自动更新:DISABLE_UPDATE_PROMPT=true

字体

虚拟机要调整的设置

  • UAC级别
  • DPI缩放好像vm tools只允许125%
  • 360zip、360browser
  • 鼠标大小

其他事情

  • 注意游戏存档可能没有云存档,还可能不在Documents中
  • VSCode的全局设置在Roaming里
  • 登陆了微软商店以后才会同步Edge的收藏夹和设置
  • DuckDuckGo Settings
  • Windows 7 企业版评估序列号:74M4B-BTT8P-MMM3M-64RRJ-JCDDG
  • uBlock Origin
  • https everywhere
  • ADfree.Player.Online
  • Stylus
  • Full Page Screen Capture
  • enable copy
  • 惠惠购物助手

  • Kaspersky
  • Octotree
  • Search by Image (by Google)
  • 搜索直达
  • Infinity新标签页
  • Wikiwand

  • OneTab
  • Proxy SwitchyOmega
  • 哔哩哔哩助手
  • FireShot

Flags

  • 关闭direct write
* ss
* CCleaner
* Everything
* git
* sourcetree
* vim
* msys2
* python2/3
* nodejs
* ffmpeg
<a href="javascript:window.external.msAddTrackingProtectionList('http://easylist-msie.adblockplus.org/easylistchina+easylist.tpl', 'EasyList China+EasyList')">EasyList China+EasyList</a>
<br>
<br>
<a href="javascript:window.external.msAddTrackingProtectionList('http://easylist-msie.adblockplus.org/easylistchina.tpl', 'EasyList China')">EasyList China</a>
<br>
<br>
<a href="javascript:window.external.msAddTrackingProtectionList('http://easylist-msie.adblockplus.org/easyprivacy.tpl', 'EasyPrivacy')">EasyPrivacy</a>
<br>
<br>
<a href="javascript:window.external.msAddTrackingProtectionList('http://www.privacychoice.org/trackerblock/no_oversight_companies_tpl', 'PrivacyChoice')"><del>PrivacyChoice</del></a>
{
"git.enabled": false,
"editor.minimap.enabled": false,
"editor.fontFamily": "Consolas, 微软雅黑",
"editor.dragAndDrop": false,
"files.autoGuessEncoding": true,
"git.ignoreMissingGitWarning": true,
"fileheader.Author": "IMBA-TJD",
"fileheader.LastModifiedBy": "IMBA-TJD",
"git.path": null,
"files.trimTrailingWhitespace": true,
"mssql.connections": [
{
"server": "(localdb)\\MSSQLLocalDB",
"database": "",
"authenticationType": "Integrated",
"profileName": "LocalDB",
"password": ""
}
],
"workbench.colorCustomizations": {
"activityBar.foreground": "#33ff66" // 自定义颜色
},
"explorer.confirmDelete": false,
"editor.fontSize": 16,
"workbench.colorTheme": "One Dark Pro Vivid",
"explorer.confirmDragAndDrop": false
// "terminal.integrated.shell.windows": "C:\\WINDOWS\\System32\\bash.exe",
}

C

  • C/C++
  • C/C++ Snippets
  • C++ Intellisense
  • Native Debug
  • GBKtoUTF8
  • Include AutoComplete
  • C/C++ Clang Command Adapter

WEB

  • Babel ES6/ES7
  • Vetur
  • stylelint
  • Debugger for Chrome/Edge
  • NativeScript XML Snippets
  • HTML CSS Support
  • HTML Snippets
  • HTML Symbols
  • IntelliSense for CSS class names
  • JavaScript (ES6) code snippets
  • ESLint
  • npm Intellisense
  • Live HTML Previewer
  • CodeMetrics
  • Beautify
  • Auto Rename Tag
  • TSLint
  • Past JSON as Code

C#

  • C#
  • C# Extensions
  • C# FixFormat
  • C# IL Viewer
  • C# XML Documentation Comments
  • Classy Naming

Markdown

  • Auto-Open Markdown Preview
  • Markdown PDF
  • Markdown Shortcuts
  • markdownlint
  • Markdown All in One
  • Markdown+Math

Others

  • PowerShell
  • Rainbow Brackets
  • vscode-fileheader
  • One Dark Pro
  • background
  • Code Runner
  • Guides
  • Path Intellisense
  • mssql
  • Python
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment