Skip to content

Instantly share code, notes, and snippets.

View ajmeese7's full-sized avatar
🥤
drinkin the Kool-Aid

Aaron Meese ajmeese7

🥤
drinkin the Kool-Aid
View GitHub Profile
@ajmeese7
ajmeese7 / auto-rotate.sh
Last active March 19, 2025 19:12
Automatically handle screen rotation in X11
#!/bin/bash
# auto-rotate.sh
# This script waits until the graphical session is fully ready, sets the display rotation based on
# a desired rotation variable, and then re-applies the corresponding touchscreen calibration multiple times.
#
# Save this script (for example, in your home directory) and make it executable:
# chmod +x ~/auto-rotate.sh
#
# Deploy it via your systemd user service so that it runs after login.
#
@AncientJames
AncientJames / pixelmap.py
Created February 28, 2025 02:14
This is the TPC I used to pixel map the Fibrovisor ( https://www.youtube.com/watch?v=zz59e1wWyVc ). It uses rgbmatrix ( https://github.com/hzeller/rpi-rgb-led-matrix ) to light up one pixel at a time, and opencv to record the position of the brightest spot in the frame.
#!/usr/bin/env python
import time
import sys
import getpass
from rgbmatrix import RGBMatrix, RGBMatrixOptions
import cv2 as cv
options = RGBMatrixOptions()
options.hardware_mapping = 'regular'
@ajmeese7
ajmeese7 / bestsafenet.com.html
Last active January 16, 2025 15:31
Files related to analysis of the Blogspot redirector and ApateWeb
<html lang="en-US" class="mdl-js"><head><base href="landers/vpn26/index.php">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Free VPN - Stay Private, Stay Secure</title>
<link href="style.css" rel="stylesheet" type="text/css">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<div class="wrapper">
<div class="img">
<img alt="" src="./encrypted.png">
@adtac
adtac / README.md
Last active April 26, 2025 09:06
Using your Kindle as an e-ink monitor

3.5 fps, Paperwhite 3
@adtac_

step 1: jailbreak your Kindle

mobileread.com is your best resource here, follow the instructions from the LanguageBreak thread

I didn't really follow the LanguageBreak instructions because I didn't care about most of the features + I was curious to do it myself, but the LanguageBreak github repo was invaluable for debugging

@ajmeese7
ajmeese7 / validin-domain-parser.py
Created March 30, 2024 17:16
Parse out domains from exported Validin JSON data
#!/usr/bin/env python3
import json
import sys
import os
def extract_domains(json_file_path):
try:
# Open and load the JSON file
with open(json_file_path, "r") as file:
data = json.load(file)
@ajmeese7
ajmeese7 / usps.html
Created November 19, 2023 23:30
uups.lsup.xyz Phishing HTML
<meta http-equiv="refresh" content="0; url=https://uups.lsup.xyz" />
@ajmeese7
ajmeese7 / index.html
Last active October 27, 2023 15:32
Improved Kinopio highlighting
<style>
.no-select {
user-select: none;
}
</style>
<script>
document.addEventListener("DOMContentLoaded", function() {
const body = document.querySelector("body");
const textElements = document.querySelectorAll("p, h1, h2, h3, h4, h5, h6, a, span, li, blockquote");
@mangiucugna
mangiucugna / ChatGPT Custom Instructions - Generic
Last active April 9, 2024 13:06
ChatGPT Custom Instructions - A generic Custom Instruction to extract the max from GPT. Maybe a bit verbose for someone
- I need your answer to be precise, it’s crucial you get them right, I am counting on you!
- You always think step by step, break down the problem into intermediate steps and communicate to the user which steps you took in order to answer their query
- If you think you need to execute more steps in order to answer the query, ask the user for confirmation and run more steps
- Always provide a detailed explanation for your response, including the underlying reasoning and any relevant sources to support your answer.
Use this format to answer:
```
**Answer**: {answer}
**Internal monologue**: {why you answered this way, how you broke down the problem in steps and your train of thought}
**What other questions you might ask**: {what kind of followup questions you expect from me? What did I miss?}
**Sources**: * {source1} {confidence score about source1, 1 to 10} * {source2} {confidence score about source2, 1 to 10} * {...}

GitHub Search Syntax for Finding API Keys/Secrets/Tokens

As a security professional, it is important to conduct a thorough reconnaissance. With the increasing use of APIs nowadays, it has become paramount to keep access tokens and other API-related secrets secure in order to prevent leaks. However, despite technological advances, human error remains a factor, and many developers still unknowingly hardcode their API secrets into source code and commit them to public repositories. GitHub, being a widely popular platform for public code repositories, may inadvertently host such leaked secrets. To help identify these vulnerabilities, I have created a comprehensive search list using powerful search syntax that enables the search of thousands of leaked keys and secrets in a single search.

Search Syntax:

(path:*.{File_extension1} OR path:*.{File_extension-N}) AND ({Keyname1} OR {Keyname-N}) AND (({Signature/pattern1} OR {Signature/pattern-N}) AND ({PlatformTag1} OR {PlatformTag-N}))

Examples:

**1.

@irazasyed
irazasyed / outbound-email-with-cloudflare.md
Last active April 27, 2025 13:49
Using Gmail SMTP with Cloudflare Email Routing: A Step-by-Step Guide

Using Gmail SMTP with Cloudflare Email Routing: Step-by-Step Guide

Learn how to send emails through Gmail SMTP with Cloudflare Email Routing in this comprehensive guide.

Step 1: Enable 2-Factor Authentication

To proceed with this method, ensure that you have enabled two-factor authentication for your Google account. If you haven't done so already, you can follow the link to set it up → Enable 2FA in your Google account.

Step 2: Create an App Password for Mail