rogerxu / rogerxu.github.io

Roger Xu's Blog
2 stars 2 forks source link

Windows #203

Open rogerxu opened 6 years ago

rogerxu commented 6 years ago

Chocolatey - The package manager for Windows

Install

Install with PowerShell.exe

With PowerShell, there is an additional step. You must ensure Get-ExecutionPolicy is not Restricted. We suggest using Bypass to bypass the policy to get things installed or AllSigned for quite a bit more security.

Run Get-ExecutionPolicy. If it returns Restricted, then run Set-ExecutionPolicy AllSigned or Set-ExecutionPolicy Bypass -Scope Process.

$ Get-ExecutionPolicy
Restricted
$ Set-ExecutionPolicy AllSigned
$ Get-ExecutionPolicy
AllSigned

https://www.chocolatey.org/install#install-with-powershellexe

rogerxu commented 6 years ago

Microsft Store

UWP

Edge Extensions

https://microsoftedge.microsoft.com/addons/Microsoft-Edge-Extensions-Home?hl=zh-CN

rogerxu commented 6 years ago

Chocolatey

Proxy

Chocolatey Software | Proxy Settings for Chocolatey

$ choco config set proxy http://localhost:7890

Must Have

Recommended

Configuration

Clash

Copy config.yml from OneDrive.

Alacritty

Copy alacritty/alacritty.yml from OneDrive to %APPDATA%/alacritty/alacritty.yml.

Terminus

Copy config.yaml from OneDrive.

Git

Copy .gitconfig from OneDrive.

Notepad++

Settings > Preferences > Cloud > D:\OneDrive\config\notepad++

Bandizip

Import backup *.reg from OneDrive.

MPC-BE

Import backup *.reg from OneDrive.

foobar2000

Copy backup to %appdata%\foobar2000.

rogerxu commented 6 years ago

PortableApps

PortableApps.com - Portable software for USB, portable, and cloud drives

Configuration

FreeCommander XE

Settings > General > Backup folder for settings > D:\OneDrive\config\freecommander

WinMerge

Import winmerge.ini from OneDrive.

rogerxu commented 6 years ago

Portable Software

Configuration

ShadowsocksR

Copy gui-config.json from OneDrive.

rogerxu commented 6 years ago

Software

rogerxu commented 6 years ago

Wox

Plugins

rogerxu commented 4 years ago

IntelliJ IDEA

Plugins

rogerxu commented 3 years ago

Windows Custom URL Scheme

Registering an Application to a URI Scheme (Windows) | Microsoft Docs

如何为你的 Windows 应用程序关联 URL 协议,以便在浏览器中也能打开你的应用 - walterlv

HKEY_LOCAL_MACHINE\Software\Classes
   tg
      (Default) = "URL:Telegram Protocol"
      URL Protocol = ""
      DefaultIcon
         (Default) = "Telegreat.exe,1"
      shell
         open
            command
               (Default) = "C:\tools\Telegreat\Telegreat.exe" "%1"
rogerxu commented 2 years ago

WinGet

$ winget list
$ winget search chrome
rogerxu commented 2 years ago

Scoop

$ scoop list
$ scoop search git
rogerxu commented 2 years ago

Time Zone

Linux Windows 双系统时间不一致 - 少数派 (sspai.com)

$ Reg add HKLM\SYSTEM\CurrentControlSet\Control\TimeZoneInformation /v RealTimeIsUniversal /t REG_DWORD /d 1
rogerxu commented 1 year ago

Samba

启用不安全来宾访问

gpedit.msc - Local Group Policy Editor

Computer Configuration > Administrative Template > Network > Lanman Workstation