Skip to content

Instantly share code, notes, and snippets.

View gary23w's full-sized avatar

Gary gary23w

  • Gary
  • Toronto
  • 20:32 (UTC -04:00)
View GitHub Profile
@gary23w
gary23w / simplecisspnotes
Last active August 14, 2025 13:56
cissp notes
SIMPLE NOW
Security and Risk Management
The CIA Triad:
- Confidentialility
- no unauthorized person can access (password protect)
- Integrity
- encryption of data
@gary23w
gary23w / simplesecuritynotes
Last active February 5, 2025 17:22
security+ notes
Security +
Spam filter
- Spam defined.
- in most cases, spam is defined as unsolicited bulk email(ube), or junk email. The spammer is hoping that the recipient will buy a product or service.
- Filters for spam
@gary23w
gary23w / simplestartupresourceslist.md
Last active February 5, 2025 17:22
startup tools list

Startup resource list

A revised version of IBEXSOFT awesome start up tools list.

Adding and updating as I go along.

Tech

Git Repos

@gary23w
gary23w / simplekeylistenermouseposition.py
Last active February 5, 2025 17:21
keypresses and window focus
## an attempt to listen to keypresses and monitor window focus
import time
import random
import re
import sys
import enum
import six
from six.moves import queue
@gary23w
gary23w / simplecyberpentestgary.md
Last active May 9, 2025 00:11
Penetration Test Cheat Sheet

Techniques and Methodology

a gary23w production

a NON linear C by C.

typically I export all required variables. will list all vars and set tool resource list in near future.

Thank you,

@gary23w
gary23w / simplehilbertsort.py
Last active February 5, 2025 17:20
an optimized version of the hilbert sort algorithm.
def hilbert_sort(data):
"""
Sorts an input array using Hilbert curve mapping.
Parameters:
data (list): The input array to be sorted.
Returns:
sorted_data (list): The sorted input array.
"""
@gary23w
gary23w / simplematrixscreensaver.sh
Last active February 5, 2025 17:20
matrix-style-cascading-screensaver-in-bash
#!/bin/bash
# free time plus a need to build a screensaver in bash, enjoy the cascade.
# ps. the key to this is the "eval" function.
# - gary
# clear the screen and hide the cursor
echo -e "\033[2J\033[?25l"
# get the number of lines and columns of the terminal
R=$(tput lines)
@gary23w
gary23w / simplepolicyservice.ps1
Last active February 5, 2025 17:20
policy-and-service-config
# services and policies :\
# New names for the accounts
$NewAdminName = "GaryAdmin"
$NewGuestName = "GaryGuest"
# Define the services to be disabled
$servicesToDisable = @(
"MapsBroker", # Downloaded Maps Manager
"lfsvc", # Geolocation Service
@gary23w
gary23w / gary.bf
Created October 7, 2024 17:35
gary was here
++++++++++[>++++++++++<-]>+++.------.+++++++++++++++++.+++++++.[-]++++++++++++++++++++++++++++++++.<+++++++[>+++++++++++++++++<-]>.----------------------.++++++++++++++++++.[-]++++++++++++++++++++++++++++++++.<++++++++[>+++++++++++++<-]>..---.+++++++++++++.-------------.
@gary23w
gary23w / simpleimagetostring.sh
Last active February 5, 2025 17:19
image-to-string
#!/bin/bash
mkdir -p trocr_app
cd trocr_app
cat << 'EOF' > ocr.py
import sys
from PIL import Image
from transformers import TrOCRProcessor, VisionEncoderDecoderModel