Skip to content

Instantly share code, notes, and snippets.

View lacymorrow's full-sized avatar
🕶️
Grok'ing

Lacy Morrow lacymorrow

🕶️
Grok'ing
View GitHub Profile
@clarkg
clarkg / route.ts
Last active December 26, 2024 08:46
Stack Auth webhook
import { NextResponse } from "next/server";
import { Webhook } from "svix";
import { z } from "zod";
import { client } from "@/edgedb";
import { deleteUser } from "@/src/queries/deleteUser.query";
import { upsertUser } from "@/src/queries/upsertUser.query";
const SelectedTeamSchema = z.object({
created_at_millis: z.number(),
@AlexZeGamer
AlexZeGamer / README.md
Created July 5, 2023 14:59
Flipper Zero BadUSB - Wifi password stealer (Discord webhooks)

⚠️ This script was made for educational purposes only and is not meant to me used maliciously.

This script is a wifi stealer that sends every wifi passwords stored on a Windows 10/11 computer to a discord webhook.

It is made to be used with a Flipper Zero device, using the BadUSB feature.

Files

Powershell scripts

  • Wifi-Stealer-Discord.ps1 - The main script, commented for readability
  • Wifi-Stealer-Discord_minified.ps1 - The minified version of the script (no comments, one line)
@eduardo-mior
eduardo-mior / disable-form-auto-complete.md
Last active July 31, 2024 11:28
How to disable HTML Input Autocomplete

Definitive guide → 6 ways to solve

I would very much like there to be a WEB standard for this, but unfortunately there is not!

I studied this for several days and gathered a lot of information and I will share it with you.

Before developing or using an internet hack you need to know that there are 2 types of Autocomplete. There is the autocomplete of the page and the autocomplete of the browser.

This is the global browser autocomplete. It appears whenever you define autocomplete="off" or when you define no autocomplete but define type="email" for example. The global autocomplete suggests emails you've used on other sites. The global autocomplete has a manage button at the bottom and can be disabled in the browser config. image

@Webreaper
Webreaper / docker-compose.yml
Last active March 27, 2025 19:41
Sample Docker-compose file which shows how to set up Sonarr, Radarr, Prowlarr, Lidarr, QBittorrent and a VPN container so that all all traffic from the containers is routed through the VPN. Also includes Plex and get_iplayer containers, which are not routed through the VPN.
# Docker compose to set up containers for all services you need:
# VPN
# Sonarr, Radarr, Lidarr, Qbittorrent
# Non-VPN
# Plex, get_iplayer
# Before running docker-compose, you should pre-create all of the following folders.
# Folders for Docker State:
# /volume1/dockerdata. - root where this docker-compose.yml should live
# /volume1/dockerdata/plex - Plex config and DB
# /volume1/dockerdata/sonarr - Sonarr config and DB
@lacymorrow
lacymorrow / img_backup_restore.txt
Last active August 25, 2018 01:01
Clone SD image backup
> via https://raspberrypi.stackexchange.com/questions/311/how-do-i-backup-my-raspberry-pi
With gzip, to save a substantial amount of space:
sudo dd if=/dev/rdiskx bs=1m | gzip > /Users/tmorrow/Documents/rpi0-arch.gz
And, to copy the image back onto the SD:
gzip -dc /path/to/backup.gz | sudo dd of=/dev/rdiskx bs=1m
@lacymorrow
lacymorrow / util.css
Last active March 19, 2019 21:56
CSS Code Utilities
/* Text smoothing */
body {
font-family: Camphor, Open Sans, Segoe UI, sans-serif;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
/* Nice hover effect
button:hover {
@meain
meain / loading_messages.js
Last active April 12, 2025 00:24
Funny loading messages
export default [
"Reticulating splines...",
"Generating witty dialog...",
"Swapping time and space...",
"Spinning violently around the y-axis...",
"Tokenizing real life...",
"Bending the spoon...",
"Filtering morale...",
"Don't think of purple hippos...",
"We need a new fuse...",
@silencesys
silencesys / commit-emoji.md
Last active March 5, 2021 08:45 — forked from pocotan001/commit-emoji.md
List of emoji for git commits.

Git Commit Message

All Git Commit Messages MUST meet with this Text Format:

:emoji: Subject
(Only One NewLine)
Message Body
(Only One NewLine)
Ref <###>

Aligning images

This is a guide for aligning images.

See the full Advanced Markdown doc for more tips and tricks

left alignment

@Rich-Harris
Rich-Harris / service-workers.md
Last active April 7, 2025 10:50
Stuff I wish I'd known sooner about service workers

Stuff I wish I'd known sooner about service workers

I recently had several days of extremely frustrating experiences with service workers. Here are a few things I've since learned which would have made my life much easier but which isn't particularly obvious from most of the blog posts and videos I've seen.

I'll add to this list over time – suggested additions welcome in the comments or via twitter.com/rich_harris.

Use Canary for development instead of Chrome stable

Chrome 51 has some pretty wild behaviour related to console.log in service workers. Canary doesn't, and it has a load of really good service worker related stuff in devtools.