Skip to content

Instantly share code, notes, and snippets.

View jedieaston's full-sized avatar
⚔️
Speak softly and carry a +6 two-handed sword.

Easton Pillay jedieaston

⚔️
Speak softly and carry a +6 two-handed sword.
  • Symetra
  • United States
  • 01:05 (UTC -04:00)
View GitHub Profile
@jedieaston
jedieaston / Nuke.ps1
Last active April 18, 2021 19:03
Script to remove a bunch of manifests from winget-pkgs.
$ErrorActionPreference = "Stop"
$FirefoxRoot = "C:\Users\Easton Pillay\projects\winget-pkgs\manifests\m\Mozilla\Firefox\Firefox\"
$PATH_TO_PR_BODY = "C:\Users\Easton Pillay\projects\qprbody.md"
$committedBranches = @()
Set-Location $FirefoxRoot
git checkout master
git remote add upstream https://github.com/microsoft/winget-pkgs/
git fetch --all
$versions = Get-ChildItem -Directory | Select-Object Name
@jedieaston
jedieaston / Install-WinGet.ps1
Last active July 25, 2023 22:08
Install WinGet (.ps1)! (on x64 systems)
$ErrorActionPreference = "Stop"
$apiLatestUrl = 'https://api.github.com/repos/microsoft/winget-cli/releases/latest'
$tempFolder = $env:TEMP
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
$WebClient = New-Object System.Net.WebClient
function Update-EnvironmentVariables {
foreach($level in "Machine","User") {
$errorActionPreference = "Stop"
$products = @(
@{
manifestId = "JetBrains.PyCharm.Community";
jetbrainsId = "PCC";
},
@{
manifestId = "JetBrains.PyCharm.Professional";
jetbrainsId = "PCP";
},
@jedieaston
jedieaston / ArpMe.ps1
Created October 19, 2021 19:15
Figure out what new ARP entries there are.
function Get-ARPTable {
$registry_paths = @('HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\*','HKLM:\Software\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\*', 'HKCU:\Software\Microsoft\Windows\CurrentVersion\Uninstall\*', 'HKCU:\Software\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\*')
return Get-ItemProperty $registry_paths -ErrorAction SilentlyContinue |
Select-Object DisplayName, DisplayVersion, Publisher, @{N='ProductCode'; E={$_.PSChildName}}|
Where-Object {$null -ne $_.DisplayName } |
Where-Object {$null -ne $_.DisplayVersion } |
Where-Object {$null -ne $_.Publisher }
}
@jedieaston
jedieaston / Check-PR.ps1
Last active April 18, 2022 15:12
A easy way to see if your winget-pkgs pipeline run is done!
# Given the PR number, see what the status of the pipeline is.
Param(
[Parameter(Position = 0, HelpMessage = "The Pull Request to check on.", Mandatory = $true)]
[String] $PullRequest
)
$ErrorActionPreference = "Stop"
$ProgressPreference = "SilentlyContinue"
$url = "https://dev.azure.com/ms/winget-pkgs/_apis/build/builds?branchName=refs/pull/$PullRequest/merge&api-version=6.0"
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@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