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 / 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:

log_file="notes_log.yml"
log_dir="~/Documents/github/cli-log"
my_log="$log_dir/$log_file"
alias tl-file="echo $my_log"
function wl {
start_dir=$(pwd)
cd "$log_dir"
git pull --quiet
text=""
for word in "$@"
git rm layouts
bash
rm -rf .git/modules/layouts
exit
# language: python
install:
- wget https://github.com/gohugoio/hugo/releases/download/v0.39/hugo_0.39_Linux-64bit.deb
- sudo dpkg -i hugo*.deb
# - pip install Pygments
script:
- git checkout master
- rm -rf docs
language: python
install:
- wget https://github.com/gohugoio/hugo/releases/download/v0.31.1/hugo_0.31.1_Linux-64bit.deb
- sudo dpkg -i hugo*.deb
- pip install Pygments
script:
- hugo
# GitHub A records
# 192.30.252.153
# 192.30.252.154
#!/bin/bash
#*
# rm -rf public
# git submodule add -b master git@github.com:InTEGr8or/hugo_blackplain_theme.git layouts
# git clone https://gist.github.com/aad5b14b17276e803d352898a6c88c5b.git tmp
# mv hugo_deploy.sh .
# rm -rf tmp/