Skip to content

Instantly share code, notes, and snippets.

View chrisxfire's full-sized avatar
💭
still searching for the signal in the noise.

Christian chrisxfire

💭
still searching for the signal in the noise.
View GitHub Profile
@chrisxfire
chrisxfire / Git-Pull-All.ps1
Created April 3, 2023 20:26
A PowerShell script to execute 'git pull' recursively
if ($args[0] -eq '--help' -or $args[0] -eq '-h') {
Write-Host "Usage: git-pull-all.ps1 [starting-directory]"
Write-Host "If starting-directory ommitted, will use the value hard-coded in the script."
Exit
}
if (!$null -eq $args[0]) {
# set the starting directory to the first command line argument
$CsFolder = $args[0]
}
@chrisxfire
chrisxfire / New-Url.ps1
Created April 3, 2023 19:59
A PowerShell script to create a URL shortcut as a .url file
if ($null -eq $args[0]) {
Write-Host "Usage: New-Url.ps1 <title> <URL>"
Exit
}
# Create a WScript.Shell object
$Shell = New-Object -ComObject ("WScript.Shell")
# Set the Windows file shortcut location
$Favorite = $Shell.CreateShortcut((Join-Path $PWD $args[0]) + ".url")
@chrisxfire
chrisxfire / keybase.md
Created June 30, 2022 01:54
Keybase proof

Keybase proof

I hereby claim:

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

To claim this, I am signing this object: