Skip to content

Instantly share code, notes, and snippets.

View PSingletary's full-sized avatar
🔍
Search

PSingletary PSingletary

🔍
Search
View GitHub Profile
@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)
@PSingletary
PSingletary / macOS.js
Last active January 10, 2025 13:06
tampermonkey scripts for streamlink
// ==UserScript==
// @name Launch Terminal and Streamlink
// @namespace http://tampermonkey.net/
// @version 0.1
// @description button for twitch that launches terminal and streamlink
// ==/UserScript==
(function() {
'use strict';