Skip to content

Instantly share code, notes, and snippets.

View InTEGr8or's full-sized avatar
😊
Always Be Coding

Mark Stouffer InTEGr8or

😊
Always Be Coding
View GitHub Profile
@InTEGr8or
InTEGr8or / ssh_keys_profile.ps1
Last active April 19, 2025 14:43
Add, List, and Remove SSH keys to authorized_keys while respecting Windows strict security
#requires -Version 5.1+
<#
Windows OpenSSH has strict permissions requirements on the `~/.ssh/authorized_keys` file that
can make adding or removing or even listing keys cumbersome.
This script handles the grunt-work to handle those requirements.
#>
<#
.SYNOPSIS
@InTEGr8or
InTEGr8or / uninstall_cursor.ps1
Last active March 23, 2025 20:35
Uninstall Cursor IDE PowerShell script
if(-Not $cursorPath -OR -NOT $appDataCursorPath){
Write-Host "set `$cursorPath with the actual installation path of Cursor"
Write-Host "set `$appDataCursorPath with the actual installation path of Cursor"
}
Write-Host "Remove $cursorPath and it's contents"
if (Test-Path $cursorPath) {
Remove-Item -Recurse -Force $cursorPath
}
@InTEGr8or
InTEGr8or / restart-cline-task.ts
Last active January 29, 2025 01:35
Restart Cline with up-to-date project status.
function displayImplementationStatus(progress, showOnlyIncomplete) {
const branch = 'current-branch'; // placeholder
console.log(`
VSCode Context Client Implementation Status (Branch: ${branch})
${showOnlyIncomplete ? '(Showing only incomplete items)' : ''}
=========================================================
`);
progress.sections.forEach((section) => {
@InTEGr8or
InTEGr8or / remove_all_docker.sh
Created November 8, 2024 17:51
Removes all Docker in WSL on Windows
#!/bin/bash
# Script to comprehensively uninstall Docker on Linux systems
# Uninstall Docker Engine, CLI, Containerd, and Docker Compose packages
sudo apt-get purge -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin docker-compose
# Remove Docker's official GPG key and repository
sudo rm -f /etc/apt/keyrings/docker.gpg
sudo rm -f /etc/apt/sources.list.d/docker.list
function Move-GitForward (){
param(
[int]$commits
)
if (-not $commits -or $commits -lt 1) {
$commits = 1;
}
git rev-parse --short HEAD `
| Set-Variable head;
@InTEGr8or
InTEGr8or / HID-ascii.csv
Created November 19, 2023 17:46
HID to ASCII map for 125 ASCII values. The `key` plus the `modifier` produces the ASCII `Dec`, which corresponds to the `Character`
Dec key modifier Character value
33 30 2 ! !
36 33 2 $ $
37 34 2 % %
38 36 2 & &
40 38 2 ( (
41 39 2 ) )
42 37 2 * *
43 46 2 + +
44 54 0 , ,
@InTEGr8or
InTEGr8or / cloudwatch-tester.sh
Last active November 18, 2023 17:49
AWS CloudWatch config and connection test script for EC2 instance CloudWatch logging validation testing
export $(cat .env | xargs)
# Run this script on your EC2 instance to test CloudWatch agent and SSM agent.
# This script assumes you have the following installed:
# - SSM agent
# - SSM CLI
# - CloudWatch agent
# - AWS CLI,
# - Configured with --region
@InTEGr8or
InTEGr8or / disable-msdt.ps1
Created June 1, 2022 15:23
Guidance for CVE-2022-30190 msdt Folina zero-day exploit
# [Guidance for CVE-2022-30190](https://msrc-blog.microsoft.com/2022/05/30/guidance-for-cve-2022-30190-microsoft-support-diagnostic-tool-vulnerability/)
# Run with administrator privileges
# Disables Microsoft Remote Debug service
mkdir c:/reg_bak
cmd /c reg export HKEY_CLASSES_ROOT\ms-msdt c:/reg_bak/msdt.reg
cmd /c reg delete HKEY_CLASSES_ROOT\ms-msdt /f
@InTEGr8or
InTEGr8or / aws_workspace.md
Last active January 20, 2022 22:58
AWS Workspace Setup for SmartMap dev

Workspace Setup

[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
Set-ExecutionPolicy RemoteSigned -scope CurrentUser
iwr -useb get.scoop.sh | iex
scoop install openssh
ssh-keygen # accept all defaults
cat ~/.ssh/id_rsa.pub | clip # Then paste clipboard contents to GitLab account SSH Keys
@InTEGr8or
InTEGr8or / Keybase.md
Created September 16, 2019 18:49
Keybase

Keybase proof

I hereby claim:

  • I am integr8or on github.
  • I am valuecritic (https://keybase.io/valuecritic) on keybase.
  • I have a public key ASAoWQ8SCZzoLslHbnyA6jRft0-0cYgjDPayZYUUy2oezgo

To claim this, I am signing this object: