Skip to content

Instantly share code, notes, and snippets.

View beeman's full-sized avatar
🐝
Buzzin....

beeman beeman

🐝
Buzzin....
View GitHub Profile
@arianvp
arianvp / SSH_MACOS_SECURE_ENCLAVES.md
Last active November 28, 2025 22:52
Native Secure Enclaved backed ssh keys on MacOS

Native Secure Enclave backed ssh keys on MacOS

It turns out that MacOS Tahoe can generate and use secure-enclave backed SSH keys! This replaces projects like https://github.com/maxgoedjen/secretive

There is a shared library /usr/lib/ssh-keychain.dylib that traditionally has been used to add smartcard support to ssh by implementing PKCS11Provider interface. However since recently it also implements SecurityKeyProivder which supports loading keys directly from the secure enclave! SecurityKeyProvider is what is normally used to talk to FIDO2 devices (e.g. libfido2 can be used to talk to your Yubikey). However you can now use it to talk to your Secure Enclave instead!

@nickfrosty
nickfrosty / check-seeker-build-env.sh
Created October 1, 2025 01:07
Check and validate's your system to ensure you have the required tooling in order to sign APK builds of Android apps to be published on the Solana Mobile's dApp store (per this guide https://docs.solanamobile.com/dapp-publishing/building-expo-apk on Sept 30, 2025)
#!/bin/bash
# Colors for output
RED='\033[0;31m'
GREEN='\033[0;32m'
YELLOW='\033[1;33m'
NC='\033[0m' # No Color
echo "=== Android SDK Environment Check ==="
echo ""
@jjhiggz
jjhiggz / how-to-use.md
Last active November 19, 2025 17:13
Prisma Effect Generator

Prisma Effect Generator

  1. Put the above prisma-effect-generator.ts in your root of your project.

  2. Install "@prisma/generator-helper" and "@prisma/internals" as dev dependecies.

  3. Add this to your schema.prisma file

generator sqlSchema {
@hackermondev
hackermondev / research.md
Last active November 28, 2025 19:18
Unique 0-click deanonymization attack targeting Signal, Discord and hundreds of platform

hi, i'm daniel. i'm a 15-year-old high school junior. in my free time, i hack billion dollar companies and build cool stuff.

3 months ago, I discovered a unique 0-click deanonymization attack that allows an attacker to grab the location of any target within a 250 mile radius. With a vulnerable app installed on a target's phone (or as a background application on their laptop), an attacker can send a malicious payload and deanonymize you within seconds--and you wouldn't even know.

I'm publishing this writeup and research as a warning, especially for journalists, activists, and hackers, about this type of undetectable attack. Hundreds of applications are vulnerable, including some of the most popular apps in the world: Signal, Discord, Twitter/X, and others. Here's how it works:

Cloudflare

By the numbers, Cloudflare is easily the most popular CDN on the market. It beats out competitors such as Sucuri, Amazon CloudFront, Akamai, and Fastly. In 2019, a major Cloudflare outage k

@lucas-barake
lucas-barake / .md
Created January 18, 2025 17:59
Refresh Token Strategy w/ Effect

Code

import { HttpBody, HttpClient, HttpClientRequest, HttpClientResponse } from "@effect/platform"
import { Data, DateTime, Effect, Function, Option, Ref, Schedule, Schema, SubscriptionRef } from "effect"

class AuthTokens extends Schema.Class<AuthTokens>("AuthTokens")({
  accessToken: Schema.String.pipe(Schema.Redacted),
@arekmaz
arekmaz / prisma-effect.ts
Created October 27, 2023 14:59
prisma + effect-ts integration - client which returns effects instead of promises
import { db } from "../services/db.server";
import { Data, Effect } from "effect";
import type { PrismaClient } from "@prisma/client";
import type {
PrismaClientKnownRequestError,
PrismaClientUnknownRequestError,
PrismaClientRustPanicError,
PrismaClientInitializationError,
PrismaClientValidationError,
} from "@prisma/client/runtime/library";
@AmazingTurtle
AmazingTurtle / config.ts
Created July 7, 2021 11:17
openai client
export const DEFAULT_ENGINE = 'davinci';
export const ENGINE_LIST = ['ada', 'babbage', 'curie', 'davinci', 'davinci-instruct-beta', 'curie-instruct-beta'];
export const ORIGIN = 'https://api.openai.com';
export const DEFAULT_API_VERSION = 'v1';
export const DEFAULT_OPEN_AI_URL = `${ORIGIN}/${DEFAULT_API_VERSION}`;
@amatiash
amatiash / get-my-kin.js
Last active November 13, 2021 05:42
Convert Stellar KIN keys into Solana KIN keypair
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
var web3_js_1 = require("@solana/web3.js");
var hex_to_32_1 = __importDefault(require("hex-to-32"));
var atob_1 = __importDefault(require("atob"));
var bs58_1 = __importDefault(require("bs58"));
// ----------------------------------------------------

this is what i use so far, its obviously not a 100% replica of the typography plugin but looks good enough on my site

  /* replace typography plugin */
  .prose {
    @apply text-gray-700 dark:text-gray-300
  }
  .prose {
    & p {
published series title
false
{"series" => nil}
{"title" => nil}

Introduction

In this post, we will look at...