Skip to content

Instantly share code, notes, and snippets.

@wachulski
wachulski / list-deps.ps1
Created March 22, 2019 11:11
Script automation that lists all libraries and dependencies used in a .NET project
Get-ChildItem @("packages.config", "package.json") -Recurse | %{ @($_.FullName, (Get-Content $_.FullName)) } | Out-File results.xml
# Template analysis script that runs SonarQube analysis for .NET projects
# More details in http://blog.pragmasoft.pl/software/2018-10-10-sonarqube-2-setup-environment/
param(
$version = '', # SQ records analysis history, each having its version label
$authToken = '' # SonarCloud.io auth, generated in SQ administration
)
# retrieve all solution files that exist in the project subtree
$slns = Get-ChildItem *.sln -r
[alias]
o = checkout
a = add
c = commit --verbose
ca = commit -a --verbose
s = status
b = branch
b-list = remote show origin
b-list2 = branch -r -v -a
b-refresh = remote prune origin
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Fusion]
"EnableLog"=dword:00000000
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Fusion]
"ForceLog"=dword:00000001
"LogFailures"=dword:00000001
"LogResourceBinds"=dword:00000001
"EnableLog"=dword:00000001
"LogPath"="C:\\FusionLogs\\"
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\9.0\Debugger]
"DisableAttachSecurityWarning"=dword:00000001
[HKEY_CURRENT_USER\Software\Wow6432Node\Microsoft\VisualStudio\9.0\Debugger]
"DisableAttachSecurityWarning"=dword:00000001
[HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\10.0\Debugger]
"DisableAttachSecurityWarning"=dword:00000001
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions
Enable-RemoteDesktop
cinst conemu
cinst git.install
cinst git-credential-winstore
cinst poshgit
cinst gitextensions
cinst keepass.install
cinst sysinternals