Skip to content

Instantly share code, notes, and snippets.

View DailenG's full-sized avatar

Dailen Gunter DailenG

View GitHub Profile
@DailenG
DailenG / TerminalCats.ps1
Created April 22, 2024 11:12 — forked from mdgrs-mei/TerminalCats.ps1
Cats on the terminal titles
#Requires -Modules DynamicTitle
$promptJob = Start-DTJobPromptCallback {
if ($null -eq $script:terminalCatPromptFrame) {
$script:terminalCatPromptFrame = 0
}
$script:terminalCatPromptFrame++
$isInError = $false
if ($Error[0]) {
@DailenG
DailenG / Find-ChocoApp.ps1
Last active January 25, 2024 18:56 — forked from rbleattler/Find-ChocoApp.ps1
A command which will search chocolatey for a given package, and return a PowerShell object.
<#PSScriptInfo
.VERSION 1.0.1
.GUID d8d8b0bc-d1dd-4138-9166-dab64a38e8f6
.AUTHOR Robert Bleattler
.COMPANYNAME Coast Technologies LLC
@DailenG
DailenG / ConvertFrom-WingetUIConfig.py
Created May 15, 2023 19:58
Converts WingetUI Config to JSON String, Saves in config directory as JSON string in .json file
## Converted from PowerShell Script using ChatGPT, test prior to usage
import os
import json
# Get the user profile folder
user_profile_folder = os.path.expanduser("~")
# Set the directory path
directory = os.path.join(user_profile_folder, ".wingetui")
@DailenG
DailenG / ConvertFrom-WingetUIConfig.ps1
Last active May 15, 2023 19:52
Converts WingetUI Config to JSON String, Saves in config directory as JSON string in .json file
$directory = "$ENV:USERPROFILE\.wingetui"
# Get a list of text files in the directory (excluding files with extensions)
$files = Get-ChildItem -Path $directory -File | Where-Object { $_.Name -notmatch '\.' }
# Create an empty hashtable to store the key-value pairs
$data = @{}
# Iterate through each file and add its contents to the hashtable
foreach ($file in $files) {
@DailenG
DailenG / GVC_Merge_VPN.ps1
Created November 11, 2022 15:15
SonicWall GVC VPN Profile Merge
Copy-Item $env:AppData\SonicWall\Global VPN Client\Connections.rcf $env:AppData\SonicWall\Global VPN Client\Connections.old.rcf
[xml]$xml1 = get-content "$env:AppData\SonicWall\Global VPN Client\Connections.rcf" -Encoding Unicode
[xml]$xml2 = get-content "C:\temp\NewConnection.rcf" -Encoding Unicode
$xml2Node = $xml1.ImportNode($xml2.SW_Client_Policy.Connections.Connection,$true)
$xml1.SW_Client_Policy.Connections.AppendChild($xml2Node)
$xml1.Save("$env:AppData\SonicWall\Global VPN Client\Connections.rcf")

Keybase proof

I hereby claim:

  • I am daileng on github.
  • I am dailen (https://keybase.io/dailen) on keybase.
  • I have a public key ASDAlZR5Jr2Hdp3VUA4JoVvYXAS7ONDkRbxA1LRsB1FUDAo

To claim this, I am signing this object: