Skip to content

Instantly share code, notes, and snippets.

View gary23w's full-sized avatar

Gary gary23w

  • Gary
  • Toronto
  • 02:02 (UTC -05:00)
View GitHub Profile
@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 / 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 / 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 / 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 / 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 / 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 / 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
@sitkevij
sitkevij / fft.c
Created November 2, 2017 23:33
Fast Fourier transform (FFT) single file
#include <iostream>
#include <complex>
#define MAX 200
using namespace std;
#define M_PI 3.1415926535897932384
int log2(int N) /*function to calculate the log2(.) of int numbers*/
{
@kevinSuttle
kevinSuttle / meta-tags.md
Last active October 9, 2025 17:56 — forked from lancejpollard/meta-tags.md
List of Usable HTML Meta and Link Tags