Skip to content

Instantly share code, notes, and snippets.

View PSingletary's full-sized avatar
๐Ÿ”
Search

PSingletary PSingletary

๐Ÿ”
Search
View GitHub Profile
@PSingletary
PSingletary / bluesky-osa.md
Last active December 9, 2025 01:20 — forked from mary-ext/bluesky-osa.md
Bluesky's age assurance sucks, here's how to work around it.

Bluesky's age assurance sucks, here's how to work around it.

Bluesky has implemented age verification measures in response to regional laws that restrict access:

  • UK users are shown a banner for attempting identity verification through Epic Games' Kids Web Services before they could access adult content, following the Online Safety Act.

  • Mississippi users are completely blocked from acccessing Bluesky due to

@PSingletary
PSingletary / atproto-example.ts
Created September 28, 2025 20:39 — forked from jacob-ebey/atproto-example.ts
An ATProto OAuth client for cloudflare workers.
const oauthClient = new AtprotoOAuthClient({
AtpBaseClient,
callbackPathname: oauthCallbackPathname,
clientMetadataPathname: oauthClientMeatadataPathname,
clientMetadata: {
client_name: "AtprotoTest",
client_uri: new URL("/", request.url).href,
scope: "atproto transition:generic",
},
namespace: env.OAUTH_STORAGE,
@PSingletary
PSingletary / EventBasedServer.ps1
Created June 4, 2025 02:41 — forked from StartAutomating/EventBasedServer.ps1
Gist a small event-based HTTP server in PowerShell
$JobName = "http://localhost:$(Get-Random -Min 4200 -Max 42000)/"
$httpListener = [Net.HttpListener]::new()
$httpListener.Prefixes.Add($JobName)
$httpListener.Start()
Start-ThreadJob -ScriptBlock {
param($MainRunspace, $httpListener, $SourceIdentifier = 'http')
while ($httpListener.IsListening) {
$contextAsync = $httpListener.GetContextAsync()
while (-not ($contextAsync.IsCompleted -or $contextAsync.IsFaulted -or $contextAsync.IsCanceled)) {}
@PSingletary
PSingletary / streamplace.json
Created May 22, 2025 22:53 — forked from iameli/streamplace.json
Graze custom feed for Streamplace
{
"order": "new",
"manifest": {
"filter": {
"and": [
{
"or": [
{
"regex_matches": [
"text",
@PSingletary
PSingletary / gist:cf257d54265f8b6b2cc5099ea1ade15b
Created May 19, 2025 17:07 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: ๐Ÿ˜„ :smile: ๐Ÿ˜† :laughing:
๐Ÿ˜Š :blush: ๐Ÿ˜ƒ :smiley: โ˜บ๏ธ :relaxed:
๐Ÿ˜ :smirk: ๐Ÿ˜ :heart_eyes: ๐Ÿ˜˜ :kissing_heart:
๐Ÿ˜š :kissing_closed_eyes: ๐Ÿ˜ณ :flushed: ๐Ÿ˜Œ :relieved:
๐Ÿ˜† :satisfied: ๐Ÿ˜ :grin: ๐Ÿ˜‰ :wink:
๐Ÿ˜œ :stuck_out_tongue_winking_eye: ๐Ÿ˜ :stuck_out_tongue_closed_eyes: ๐Ÿ˜€ :grinning:
๐Ÿ˜— :kissing: ๐Ÿ˜™ :kissing_smiling_eyes: ๐Ÿ˜› :stuck_out_tongue:
@PSingletary
PSingletary / graze_node_uncommon.json
Created May 17, 2025 13:55
JSON for a graze.social node - uncommon words
{
"order": "new",
"manifest": {
"filter": {
"or": [
{
"regex_any": [
"embed.external.description",
[
"Abomasumย ",
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@PSingletary
PSingletary / regex.ts
Created February 20, 2025 11:31 — forked from jeremieflrnt/regex.ts
Ultimate regex specific domain
export const getValidUrlRegex = (domainName?: string) => {
return domainName
? RegExp(
/^(?:https?:\/\/)?(?:www\.)?(?:(?<subdomain>[a-z0-9-]+)\.)?/.source +
RegExp(domainName).source +
/\.(?:(?<tld>[a-z]{1,63}))?(?::(?<port>[0-9]{1,5}))??(?:[/#](?<path>[\w/\-._~:/?#[\]@!$&'()*+,;=.]*)?)?$/
.source,
)
: /^(?:https?:\/\/)?(?:www\.)?(?:(?<subdomain>[a-z0-9-]+)\.)?(?<domain>[a-z0-9-]+)\.(?:(?<tld>[a-z]{1,63}))?(?::(?<port>[0-9]{1,5}))??(?:[/#](?<path>[\w/\-._~:/?#[\]@!$&'()*+,;=.]*)?)?$/;
};
@PSingletary
PSingletary / bsky-annoyances.txt
Created February 14, 2025 06:22 — forked from mary-ext/bsky-annoyances.txt
custom scriptlet for removing Bluesky's annoyances
bsky.app##+js(user-bsky-annoyances.js)
main.bsky.dev##+js(user-bsky-annoyances.js)