Skip to content

Instantly share code, notes, and snippets.

View ChrisTitusTech's full-sized avatar
🎯
Focusing

Chris Titus ChrisTitusTech

🎯
Focusing
View GitHub Profile
@ChrisTitusTech
ChrisTitusTech / TrackChangesModule.vb
Created September 17, 2025 18:37
Change All Track Changes / Comments to Single User
Sub AcceptAndRecreateWorkingVersion()
Dim doc As Document
Dim rev As Revision
Dim com As Comment
Dim originalTrackChanges As Boolean
Dim revCount As Long
Dim response As VbMsgBoxResult
Dim authors As Collection
Dim author As Variant
Dim sOldAuthor As String
@ChrisTitusTech
ChrisTitusTech / glance.yml
Last active July 3, 2025 18:10
Glance Configuration
pages:
- name: Home
- size: small
widgets:
- type: twitch-channels
channels:
- theprimeagen
- j_blow
- piratesoftware
- cohhcarnage
@ChrisTitusTech
ChrisTitusTech / repair-winget.ps1
Created June 12, 2025 19:12
repair the repair-wingetpackagemanager
Install-Module -Name Microsoft.WinGet.Client -Force -Repository PSGallery
Import-Module -Name Microsoft.WinGet.Client
Repair-WinGetPackageManager
@ChrisTitusTech
ChrisTitusTech / setprs.ps1
Created September 10, 2024 23:44
set labels on PRs using powershell and GH
# Ensure the GitHub CLI is authenticated
gh auth status
# Initialize an empty array to hold all closed PRs
$allClosedPRs = @()
# Fetch closed PRs with a higher limit
$closedPRs = gh pr list --state closed --json number,labels --limit 500
$closedPRs = $closedPRs | ConvertFrom-Json
$allClosedPRs += $closedPRs
@ChrisTitusTech
ChrisTitusTech / removebg.py
Created February 3, 2024 19:40
remove bg python
import os
import rembg
def process_images(input_dir, output_dir):
if not os.path.exists(output_dir):
os.makedirs(output_dir)
for filename in os.listdir(input_dir):
if filename.lower().endswith('.png'):
input_path = os.path.join(input_dir, filename)
function Disable-Indexing {
Param($Drive)
$obj = Get-WmiObject -Class Win32_Volume -Filter "DriveLetter='$Drive'"
$indexing = $obj.IndexingEnabled
if("$indexing" -eq $True){
write-host "Disabling indexing of drive $Drive"
$obj | Set-WmiInstance -Arguments @{IndexingEnabled=$False} | Out-Null
}
}
@ChrisTitusTech
ChrisTitusTech / sources.list
Created December 28, 2022 22:33 — forked from ishad0w/sources.list
Ubuntu 22.04 LTS (i386/amd64) (Jammy Jellyfish) -- Full sources.list
deb http://archive.ubuntu.com/ubuntu/ jammy main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ jammy main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ jammy-updates main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ jammy-updates main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ jammy-security main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ jammy-security main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ jammy-backports main restricted universe multiverse
### MangoHud configuration file
### Uncomment any options you wish to enable. Default options are left uncommented
### Use some_parameter=0 to disable a parameter (only works with on/off parameters)
### Everything below can be used / overridden with the environment variable MANGOHUD_CONFIG instead
################ PERFORMANCE #################
### Limit the application FPS. Comma-separated list of one or more FPS values (e.g. 0,30,60). 0 means unlimited (unless VSynced)
# fps_limit=
@ChrisTitusTech
ChrisTitusTech / picom.conf
Created March 21, 2022 18:19 — forked from crnisamuraj/picom-extended.conf
Picom config file for KDE Plasma + Kwin + Picom
### Fading
fading = true;
fade-in-step = 0.06;
fade-out-ste = 0.06;
fade-delta = 3;
fade-exclude = [
"class_g = 'yakuake'"
]
### Opacity

Create Encrypted Hash for Password

sudo grub-mkpasswd-pbkdf2

Output:

grub.pbkdf2.sha512.10000.EXAMPLE000EXAMPLE000

Edit grub template before updating