Skip to content

Instantly share code, notes, and snippets.

View gary23w's full-sized avatar
🦒

Garrett Stimpson gary23w

🦒
View GitHub Profile
@gary23w
gary23w / policy-service.ps1
Created November 24, 2023 15:25
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 / matrix-screensaver.sh
Created November 16, 2023 00:54
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 / pcloud-dir-dumper.sh
Created April 7, 2023 13:53
a script to dump an entire directory into pcloud
#!/bin/bash
#################################gary23w-loves-you##########################################
# This is a bash script that uploads files and directories from a specified directory #
# path to a cloud storage service called pCloud. The script uses OAuth2 authorization #
# to obtain an access token, and then uses the pCloud API to upload files and create #
# directories. The variables username and password are not used in this script, #
# but may have been used for a previous version. The variables client_id and client_secret #
# are used for authentication with the pCloud API. The variables #
# main_folder_id, depth, and max_depth are used to define the root folder in pCloud, the #
# current directory depth, and the maximum directory depth, respectively. The functions #
@gary23w
gary23w / hilbertSort.py
Last active April 7, 2023 13:51
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 / cyber_pentest-gary.md
Created December 4, 2022 22:27
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 / key_listener_mouse_position.py
Last active December 21, 2022 22:49
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 / startup_resources_list.md
Last active December 21, 2022 22:49
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 / security_notes
Last active December 21, 2022 22:49
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 / cissp_notes
Last active December 21, 2022 22:49
cissp notes
Security and Risk Management
The CIA Triad:
- Confidentialility
- no unauthorized person can access (password protect)
- Integrity
- encryption of data
- cryptography
- Availability