Giter VIP home page Giter VIP logo

windows's Introduction

Windows设置及软件清单

避免每次装机重头寻找历史安装过的软件,索性列一个清单,炼成半小时装机软件复原大法

关闭VBS
设置 —— 更新和安全 —— Windows安全中心 —— 设备安全性 —— 内核隔离详细信息 —— 内存完整性
bcdedit /set hypervisorlaunchtype off
关闭虚拟内存
设置 —— 系统 —— 关于 —— 高级系统设置 —— 性能设置 —— 高级 —— 虚拟内存 —— 更改 —— 无分页文件 —— 设置并确定
关闭休眠模式
powercfg -h off
CPU核数设置
msconfig
卓越性能电源计划
powercfg -duplicatescheme e9a42b02-d5df-448d-aa00-03f14749eb61
一键解除所有UWP应用的网络隔离(CMD指令/PowerShell指令)

Windows Loopback Exemption Manager(微软官方出品)、Windows 8 AppContainer Loopback Utility(第三方软件)

FOR /F "tokens=11 delims=\" %p IN ('REG QUERY "HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppContainer\Mappings"') DO CheckNetIsolation.exe LoopbackExempt -a -p=%p
Get-ChildItem -Path Registry::"HKCU\Software\Classes\Local Settings\Software\Microsoft\Windows\CurrentVersion\AppContainer\Mappings\" -name | ForEach-Object {CheckNetIsolation.exe LoopbackExempt -a -p="$_"}
WSL2代理设置
$ sudo vim ~./bashrc

# export windows_host=`cat /etc/resolv.conf|grep nameserver|awk '{print $2}'`
# export ALL_PROXY="socks5://$windows_host:2080"

# alias setproxy="export ALL_PROXY=socks5://$windows_host:2080" 
# alias unsetproxy="unset ALL_PROXY"

git clone https://github.com/rofl0r/proxychains-ng
cd proxychains-ng
sudo apt install build-essential
./configure --prefix=/usr --sysconfdir=/etc
make && make install
make install-config
$ sudo vim /etc/proxychains.conf

quiet_mode
dynamic_chain
chain_len = 1
proxy_dns
remote_dns_subnet 224
tcp_read_time_out 15000
tcp_connect_time_out 8000
localnet 127.0.0.0/255.0.0.0
localnet 10.0.0.0/255.0.0.0
localnet 172.16.0.0/255.240.0.0
localnet 192.168.0.0/255.255.0.0

[ProxyList]
socks5  $windows_host 2080
# http    $windows_host 2081
CMD/PowerShell代理设置
set http_proxy=http://127.0.0.1:2081
set https_proxy=http://127.0.0.1:2081
$env:http_proxy="http://127.0.0.1:2081"
$env:https_proxy="http://127.0.0.1:2081"
git代理设置
# ssh代理配置文件路径:C:/Users/username/.ssh/config
Host github.com
    ProxyCommand connect -S localhost:2080 %h %p

# 指令的方式直接增加代理设置
git config --global http.https://github.com.proxy socks5://127.0.0.1:2080

# git配置文件路径:C:/Users/username/.gitconfig
[http "https://github.com"]
    proxy = socks5://127.0.0.1:2080
git log美化
git config --global alias.lg "log --color --graph --abbrev-commit --decorate --date=relative --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all"
git GPG相关设置
git config --global user.signingkey <密钥ID>
git config --global commit.gpgsign true
git config --global tag.forcesignannotated true
pip代理功能稀烂,建议换阿里源
pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/
pip config set install.trusted-host mirrors.aliyun.com

# pip全局配置文件路径:C:/Users/username/AppData/Roaming/pip/pip.ini
[global]
index-url = https://mirrors.aliyun.com/pypi/simple/
# proxy=http://127.0.0.1:2081
[install]
trusted-host = mirrors.aliyun.com
npm、yarn的代理/换源设置
npm config set proxy http://127.0.0.1:2081
npm config set https-proxy http://127.0.0.1:2081
npm config set registry https://registry.npmmirror.com

yarn config set proxy http://127.0.0.1:2081
yarn config set https-proxy http://127.0.0.1:2081
yarn config set registry https://registry.npmmirror.com
golang代理设置
go env -w GO111MODULE=on
go env -w GOPROXY=https://mirrors.aliyun.com/goproxy/
GPG常用指令及配置文件
gpg --expert --full-generate-key # 生成密钥
gpg -ao revoke.pgp --generate-revocation <密钥ID> # 生成撤销凭证
gpg --list-keys/-k # 列出所有公钥
gpg --list-secret-keys/-K # 列出所有私钥

gpg --edit-key <密钥ID>
gpg> list # 列出所有子密钥
gpg> key {n} # 选择序号为n的子密钥
gpg> trust # 设置信任度
gpg> expire # 设置过期时间
gpg> passwd # 更改密码
gpg> revkey # 撤销子密钥
gpg> save # 保存

gpg -ao public-key.asc --export <密钥ID> # 导出公钥
# 密钥ID后要加上"!", 不然会导出全部子密钥
gpg -ao secret-key.asc --export-secret-key <密钥ID>! # 导出主私钥
gpg -ao sign-subkey.asc --export-secret-subkeys <密钥ID>! # 导出子私钥

gpg --delete-secret-keys <密钥ID> # 删除私钥
gpg --delete-keys <密钥ID> # 删除公钥

gpg --import [密钥文件/撤销凭证] # 导入密钥

gpg --sign input.txt  # 给文档签名
gpg --clear-sign input.txt # 生成ASCII格式签名
gpg -ao output.asc --detach-sign input.txt # 签名和原文本分开
gpg --verify output.asc input.txt # 验证签名文件

gpg -ao output.asc -se input.txt -r <公钥ID> # 签名并加密文档
# s代表签名, e代表加密, r代表recipient, 指定接收者的公钥ID, a代表ASCII码格式, o代表输出地址, 
gpg -ao input.txt -d output.asc # 解密    
C:/Users/username/.gnupg/gpg.conf

keyid-format 0xlong
with-fingerprint
personal-cipher-preferences AES256
personal-digest-preferences SHA512
personal-compress-preferences Uncompressed
default-preference-list SHA512 AES256 Uncompressed
cert-digest-algo SHA512
s2k-cipher-algo AES256
s2k-digest-algo SHA512
s2k-mode 3
s2k-count 65011712
Chrome & Edge Flags
Smooth Scrolling
WebAssembly lazy compilation
Enable system notifications.
【Chrome Only】Password import
Parallel downloading
【Chrome Only】Desktop Sharing Hub in Omnibox
【Chrome Only】Windows 11 Style Menus
【Edge Only】Microsoft Edge Share Menu
【Edge Only】Windows style overlay scrollbars.
【Edge Only】Enable Windows 11 Visual Updates
youtube-dl设置

设置文件目录:C:/Users/username/youtube-dl.conf

--ignore-errors
--external-downloader aria2c
--external-downloader-args "-s 16 -x 16 -k 1M"
--proxy http://127.0.0.1:2081/
# --proxy socks5://127.0.0.1:2080/ 直播推流不支持socks5
--hls-prefer-ffmpeg
-f 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best'
-o V:/Videos/"%(uploader)s(%(uploader_id)s)/%(upload_date)s-%(title)s-(%(duration)ss)[%(resolution)s][%(id)s].%(ext)s"
--add-metadata
--write-description
--write-thumbnail
IntelliJ IDEA设置备忘录
【IntelliJ IDEA启动参数】
文件目录:~\JetBrains\IntelliJIDEA\bin\idea64.exe.vmoptions
-Xms2048m
-Xmx2048m
-XX:ReservedCodeCacheSize=1024m
【皮肤设置】
Appearance & Behavior —— Appearance —— Theme:One Dark vivid
【启动IDEA时不自动打开项目】
Appearance & Behavior —— System Settings —— × Reopen last project on startup
【代理设置】
Appearance & Behavior —— System Settings —— HTTP Proxy —— Manual proxy configuration —— √ HTTP ; Host name:127.0.0.1 ; Port number:2081
【滚轮修改字体大小】
Editor —— General —— √ Change font size(Zoom) with Ctrl+Mouse Wheel
Editor —— General —— Scrolling —— √ Enable smooth scrolling (default on 2021.1.2) —— Move caret, minimize editor scrolling
【自动导包】[项目设置]
Editor —— General —— Auto Import —— Insert imports on paste:Always (default on 2021.1.2) ; √ Add Unambiguous imports on the fly ; √ Optimize imports on the fly
【设置行号显示】
Editor —— General —— Appearance —— √ Show line numbers (default on 2021.1.2) ; √ Show method separators
【忽略大小写】
Editor —— General —— Code Completion —— × Match case
【取消单行显示标签页】
Editor —— General —— Editor Tabs —— Show tabs in Multiple rows —— √ Show pinned tabs in a separate row
【悬浮提示】
Editor —— Code Editing —— √ Show quick documentation on mouse move (default on 2021.1.2)
【字体】
Editor —— Font —— Font: JetBrains Mono —— Size: 13 —— Line height: 1.2 (default on 2021.1.2)
Editor —— Font —— Fallback font:Sarasa Mono Slab SC
【自动换行】
Editor —— Code Style —— √ Wrap on typing 
Editor —— Code Style —— Java —— Wrapping and Braces —— √ Ensure right margin is not exceeded
【单行注释斜杠跟着代码】
Editor —— Code Style —— Java —— Code Generation —— × Line comment at first column ; √ Add a space at comment start
【项目文件编码】[项目设置]
Editor —— File Encodings —— Global Encoding: UTF-8 ; Project Encoding: UTF-8 ; Default encoding for properties files: UTF-8 ; √ Transparent native-to-ascii conversion
【插件列表】
Plugins —— Lombok ; One Dark theme ; Rainbow Brackets ; Translation ; Maven Helper ; RestfulTool ; MybatisX ; 
【自动编译项目】[项目设置]
Build, Execution, Deployment —— Compiler —— √ Build project automatically
【增加堆内存】[项目设置]
Build, Execution, Deployment —— Compiler —— Build process heap size(Mbytes): 2048
【翻译设置】
Tools —— Translation —— 常规 —— √ 使用translate.google.com ; —— 字体 —— 主要字体: Sarasa Mono Slab SC ; 音标字体: Sarasa Mono Slab SC
Code Style(schemes)
CodeInsight, DefaultFont, Editor, Error highlighting
Default Project[项目设置]
Editor Colors
General
HTTP Proxy
KotlinCodeInsightSettings
Settings
UI Settings

codestyles
- Default.xml
options
- colors.scheme.xml
- editor.codeinsight.xml
- editor.xml
- ide.general.xml
- project.default.xml[项目设置]
- proxy.settings.xml
- ui.lnf.xml
- yiiguxing.translation.xml

Useful Websites

Software List(Indispensable)

MPV部分设置
# input.conf

i                    script-binding stats/display-stats             # 临时显示统计信息(此时01234翻页,024页可方向上下键滚动查看)
I                    script-binding stats/display-stats-toggle      # 开/关 常驻显示统计信息
MBTN_LEFT_DBL        cycle pause                                    # 切换 暂停视频 [左键-双击]
WHEEL_UP             add volume 1                                   # 音量加
WHEEL_DOWN           add volume -1                                  # 音量减
CTRL+LEFT            cycle-values video-rotate "0" "270" "180" "90" # 视频输出逆时针旋转90°
CTRL+RIGHT           cycle-values video-rotate "0" "90" "180" "270" # 视频输出顺时针旋转90°
.                    frame-step                                     # (暂停)帧步进
,                    frame-back-step                                # (暂停)帧步退
f                    cycle fullscreen                               # 切换 全屏状态
LEFT                 seek -5                                        # 后退05秒 [方向左键]
RIGHT                seek  5                                        # 前进05秒 [方向右键]
UP                   add volume 1                                   # 音量加 [方向上键]
DOWN                 add volume -1                                  # 音量减 [方向下键]
[                    add speed -0.1                                 # 播放速度 -(最小0.01)
]                    add speed  0.1                                 # 播放速度 +(最大100)
BS                   set speed 1.0                                  # 重置播放速度 [退格键]
s                    screenshot                                     # 截屏(有字幕、有OSD) 输出原始分辨率
S                    screenshot video                               # 截屏(无字幕、无OSD) 输出原始分辨率

# mpv.conf

vo                 = gpu             # <gpu/gpu-next> 视频输出驱动。许多后续选项也只能在此三项下正常工作。当前版本默认值即gpu
                                     # gpu最高普适性和完成度;gpu-next查看此处讨论 https://github.com/hooke007/MPV_lazy/discussions/39
gpu-context        = d3d11           # <win/d3d11/winvk> 选择图形输出后端,默认auto(此项的值与 --gpu-api 相关联,分别对应opengl/d3d11/vulkan)
                                     # 非特殊情况下win用户应首选d3d11。vulkan可能的10bit问题 https://github.com/mpv-player/mpv/issues/8554
hwdec              = d3d11va-copy    # 指定应使用的硬件视频解码API。软解改为 no(默认)。硬解建议使用 d3d11va-copy。10系以上N卡强烈建议使用 nvdec-copy
                                     # 值 auto 等效 yes。不推荐选用理论上解码效率最高的 无-copy 的原生硬解 ,目的是确保全部设置/滤镜/着色器正常作用(有些不支持)
                                     # 在部分机器上 dxva2-copy 的占用可能远低于 d3d11va-copy
hwdec-codecs       = all
                                     # 在选定范围内的编码格式尝试硬解,当前版本默认值为 --hwdec-codecs=h264,vc1,hevc,vp8,vp9,av1
d3d11-adapter      = "NVIDIA GeForce RTX 3060"
                                     # [当 gpu-api=d3d11 时] 指定某张显卡作为主渲染输出,默认情况下自动选择系统指定的主渲染显卡。
                                     # 显卡名可查看任务管理器自行更改适配。该参数等效在驱动面板中设置以独显运行mpv
                                     # 例如使用I+N的双显笔记本的内屏时,实际使用的是"Intel(R) UHD Graphics",修改该项示例指定独显可降低任务管理器中双显卡的3d渲染占比
                                     # 大多数双显卡笔记本在外接显示器时,表现类似“独显直连”,此时无需该参数也会自动用独显输出
pause                  = no          # 以非暂停状态启动播放器
loop                   = inf         # <N|inf|no> 始终循环播放当前文件
save-position-on-quit  = no          # 退出时不记住播放状态
#vf-append = vapoursynth="~~/mvtools-standard.vpy"
                                     # mvtools补帧脚本标准版
#vf-append = vapoursynth="~~/svpflow-2x.vpy"
                                     # 通过svpflow实现的补帧脚本动漫版(非SVP Manager程序)
#glsl-shaders         = "~~/shaders/Anime4K_Clamp_Highlights.glsl;~~/shaders/Anime4K_Restore_CNN_M.glsl;~~/shaders/Anime4K_Upscale_CNN_x2_S.glsl"

#glsl-shaders-append  = "~~/shaders/SSimDownscaler.glsl"
                                     # [与 --linear-downscaling=no 一起使用] 对MPV的内置缩小算法增强
#glsl-shaders-append  = "~~/shaders/adaptive-sharpen.glsl"
                                     # [与 --sigmoid-upscaling=no 一起使用] 自适应锐化
screenshot-format     = png          # <默认 jpg|png|webp>
screenshot-template   = "~~desktop/MPV-%P-N%n"
                                     # [若直接在模板中设置路径,此时无需 --screenshot-directory ] 截图命名模板: https://mpv.io/manual/master/#options-screenshot-template

# thumbnailer.conf

auto_gen=yes                         # 是否生成缩略图,默认:yes
auto_show=yes                        # 是否显示缩略图,默认:yes
auto_delete=2                        # 退出MPV后清理本次使用时产生的临时文件,0不清理,1关闭文件时清理,2退出程序时清理。默认0

Software List(Optional)

Drivers

Recovery

Developer Tools

任务栏布局

Chrome Extensions

Skin

Pinned

Unpinned

Not Using

字体及美化 - [更纱黑体(Iosevka+思源黑体)](https://github.com/be5invis/Sarasa-Gothic/releases)

windows's People

Contributors

sekibetu avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.