From http://www.darkcoding.net/software/cleaning-up-old-git-branches/
-
Switch to the main branch, usually 'develop':
git checkout develop
-
Get a list of fully merged branches:
Windows Registry Editor Version 5.00 | |
[HKEY_LOCAL_MACHINE\SOFTWARE\SysProgs\WinCDEmu] | |
"MkISOFsFlags"="-r -J " |
Windows Registry Editor Version 5.00 | |
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WcmSvc\GroupPolicy] | |
"fMinimizeConnections"=dword:00000000 |
From http://www.darkcoding.net/software/cleaning-up-old-git-branches/
Switch to the main branch, usually 'develop':
git checkout develop
Get a list of fully merged branches:
$variables = [ordered]@{ | |
POWERSHELL_CLI_TELEMETRY_OPTOUT = "1" | |
POWERSHELL_TELEMETRY_OPTOUT = "1" | |
POWERSHELL_UPDATECHECK = "Off" | |
POWERSHELL_UPDATECHECK_OPTOUT = "1" | |
DOTNET_CLI_TELEMETRY_OPTOUT = "1" | |
DOTNET_TELEMETRY_OPTOUT = "1" | |
} | |
foreach ($target in "User","Machine") { |
dir /b %SystemRoot%\servicing\Packages\*Hyper-V*.mum >hyper-v.txt | |
for /f %%i in ('findstr /i . hyper-v.txt 2^>nul') do dism /online /norestart /add-package:"%SystemRoot%\servicing\Packages\%%i" | |
del hyper-v.txt | |
Dism /online /enable-feature /featurename:Microsoft-Hyper-V-All /LimitAccess /ALL |
# 将由 ParaTranz 生成的 json 格式转换为待上传的格式 | |
# Usage: json_to_translation.ps1 stage input.json output.txt | |
# stage: 1.已翻译 3.已校对 5.已审核 | |
$stage = $args[0] | |
$json = (Get-Content -Encoding utf8 $args[1] | ConvertFrom-Json) | |
$out = $args[2] | |
Out-File $out -Encoding utf8 -NoNewline |
(Add-Type '[DllImport(\"user32.dll\")]public static extern int SendMessage(int hWnd,int hMsg,int wParam,int lParam);' -Name a -Pas)::SendMessage(-1,0x0112,0xF170,2) |
#Include %A_ScriptDir% | |
timeInterval := 500 | |
; +-------------------------+-------------------------+ | |
; | SubLanguage ID | Primary Language ID | | |
; +-------------------------+-------------------------+ | |
; 15 10 9 0 bit | |
InChs() { |
Windows Registry Editor Version 5.00 | |
[HKEY_CLASSES_ROOT\*\shell\hash] | |
"MUIVerb"= "Calcu Hash" | |
"SubCommands"="" | |
"Icon"="PowerShell.exe" | |
; SHA1 | |
[HKEY_CLASSES_ROOT\*\shell\hash\shell\01menu] | |
"MUIVerb"="SHA1" |