Skip to content

Instantly share code, notes, and snippets.

@tonyping
tonyping / Windows Defender Exclusions for Developer.ps1
Created August 16, 2023 16:23 — forked from nerzhulart/Windows Defender Exclusions for Developer.ps1
Adds Windows Defender exclusions for developers (Visual Studio, JetBrains Rider, IntellIJ Idea, Git, MsBuild, dotnet, mono etc.)
$userPath = $env:USERPROFILE
$pathExclusions = New-Object System.Collections.ArrayList
$processExclusions = New-Object System.Collections.ArrayList
$pathExclusions.Add('C:\Windows\Microsoft.NET') > $null
$pathExclusions.Add('C:\Windows\assembly') > $null
$pathExclusions.Add($userPath + '\AppData\Local\Microsoft\VisualStudio') > $null
$pathExclusions.Add('C:\ProgramData\Microsoft\VisualStudio\Packages') > $null
$pathExclusions.Add('C:\Program Files (x86)\MSBuild') > $null
$pathExclusions.Add('C:\Program Files (x86)\Microsoft Visual Studio 14.0') > $null

Windows 10/11 Registry Edits

Hardware acceleration

  1. Navigate to Computer\HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\GraphicsDrivers
  2. Under the "GraphicsDrivers" key create a new DWORD (32-bit) value named "HwSchMode"
  3. Set the Hexadecimal value to 2
  4. Restart PC

Large Taskbar

  1. Navigate to Computer\HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced
@tonyping
tonyping / PowerToys_settings_cleanup_tool.ps1
Created June 2, 2023 11:58
PowerToys settings cleanup tool
#CleanUp tool 1.0
#Copyright (C) 2022 Microsoft Corporation
#Tool to clean PowerToys settings inside AppData folder and registry
#This gist is a copy of: https://github.com/microsoft/PowerToys/blob/main/tools/CleanUp_tool_powershell_script/CleanUp_tool.ps1
#Deleting json settings files in %AppData%/Local/Microsoft/PowerToys.
[String]$SettingsPath = $Env:LOCALAPPDATA + '\Microsoft\PowerToys'
@tonyping
tonyping / Tony Ping_0xC6967EA6_public.pgp
Created October 24, 2020 02:39
tpingt@gmail.com - Pubkey - C8A9 66C6 A595 C6A3 527C 61BA 9FC8 A8CE C696 7EA6
-----BEGIN PGP PUBLIC KEY BLOCK-----
Comment: User-ID: Tony Ping <tpingt@gmail.com>
Comment: Created: 7/4/2019 12:16 AM
Comment: Type: 4,096-bit RSA (secret key available)
Comment: Usage: Signing, Encryption, Certifying User-IDs
Comment: Fingerprint: C8A966C6A595C6A3527C61BA9FC8A8CEC6967EA6
mQINBF0dfYoBEADmnoC9dY8xXeF8KLaB3KguDckEIjfgKzFxGlnU0orRi57gM9nt
zVaASIvPNL2wWt9x5OkbNyB/wzatS7VUSF4HN/acOCH0g38mYsQgOn1WoRaBnFRe
@tonyping
tonyping / Tony Ping_0x131D625A_public.pgp
Created October 24, 2020 02:04
YubiKey 5 NFC Pubkey - 13492002- 97DC DD3B 2094 D214 3EC5 86F8 5233 6D7F 131D 625A
-----BEGIN PGP PUBLIC KEY BLOCK-----
Comment: User-ID: Tony Ping <tpingt@gmail.com>
Comment: Created: 10/19/2020 12:47 PM
Comment: Type: 4,096-bit RSA (secret key available)
Comment: Usage: Signing, Encryption, Certifying User-IDs, SSH Authentication
Comment: Fingerprint: 97DCDD3B2094D2143EC586F852336D7F131D625A
mQINBF+Nwy4BEADMTa+SON6OpLfYvsDr+/qGf4hr7ysZFRcTIPx4oXQCoJg8fEmv
b5gMf87YeyqY+AS6E1lRKzmnzN4U8mKOTd2d++ZPIwCXyw5yEwDl66fARA70dbmU
@tonyping
tonyping / gist:1cc905e6f8dc4e0d0026353280b50916
Created February 27, 2019 17:53
Verifying my Blockstack ID is secured with the address 162zGc4Diiietugd3KgK1PK2MBfeZ8hiy6 https://explorer.blockstack.org/address/162zGc4Diiietugd3KgK1PK2MBfeZ8hiy6
Verifying my Blockstack ID is secured with the address 162zGc4Diiietugd3KgK1PK2MBfeZ8hiy6 https://explorer.blockstack.org/address/162zGc4Diiietugd3KgK1PK2MBfeZ8hiy6
@tonyping
tonyping / reclaimWindows10.ps1
Created November 5, 2018 21:07 — forked from alirobe/reclaimWindows10.ps1
This Windows 10 Setup Script turns off a bunch of unnecessary Windows 10 telemetery, bloatware, & privacy things. Not guaranteed to catch everything. Review and tweak before running. Reboot after running. Scripts for reversing are included and commented. Fork of https://github.com/Disassembler0/Win10-Initial-Setup-Script (different defaults). N.…
##########
# Tweaked Win10 Initial Setup Script
# Primary Author: Disassembler <disassembler@dasm.cz>
# Modified by: alirobe <alirobe@alirobe.com> based on my personal preferences.
# Version: 2.20.2, 2018-09-14
# Primary Author Source: https://github.com/Disassembler0/Win10-Initial-Setup-Script
# Tweaked Source: https://gist.github.com/alirobe/7f3b34ad89a159e6daa1/
# Tweak difference:
#
# @alirobe's version is a subset focused on safely disabling telemetry, some 'smart' features and 3rd party bloat ...
@tonyping
tonyping / keybase.md
Created June 16, 2018 02:04
Keybase proof

Keybase proof

I hereby claim:

  • I am tonyping on github.
  • I am tonyping (https://keybase.io/tonyping) on keybase.
  • I have a public key ASBagYQg4j8RgMJm_rxkDhexlVBi2SV_YIQx8Ewt_DcdvAo

To claim this, I am signing this object: