Skip to content

Instantly share code, notes, and snippets.

View PSingletary's full-sized avatar
🔍
Search

PSingletary PSingletary

🔍
Search
View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@mary-ext
mary-ext / bsky-annoyances.txt
Last active April 17, 2025 21:34
custom scriptlet for removing Bluesky's annoyances
bsky.app##+js(user-bsky-annoyances.js)
main.bsky.dev##+js(user-bsky-annoyances.js)
||go.bsky.app/redirect$urlskip=?u
@mary-ext
mary-ext / bsky-regional-labeler-block.txt
Last active February 14, 2025 06:22
block Bluesky's regional moderation (currently on Germany and Brazil)
bsky.app##+js(user-bsky-regional-labeler-block.js)
main.bsky.dev##+js(user-bsky-regional-labeler-block.js)
@mary-ext
mary-ext / bsky-suggestions-block.txt
Last active February 14, 2025 06:22
block Bluesky's trending and suggestions
bsky.app##+js(user-bsky-suggestions-block.js)
main.bsky.dev##+js(user-bsky-suggestions-block.js)
@b0o
b0o / 0.md
Last active February 18, 2025 02:40
Bluesky Starter Pack List Adder

Install UserScript Follow Me

2024-12-18_21-22-05_region_re.mp4
@parsingphase
parsingphase / bluesky-replies-only.css
Created November 14, 2024 22:47
User Stylesheet to only view replies on your Bluesky notification page (no follows, likes, reposts)
/*
This stylesheet can be used to hide all but reply notifications on your Bluesky notifications page (https://bsky.app/notifications)
You'll generally need a plugin such as https://addons.mozilla.org/en-US/firefox/addon/styl-us/ on firefox -
other plugins or ways of adding a user stylesheet are available for other browers.
You'll probably only want to enable it on the one page, and you'll have to turn it off to see any other notification types.
This stylesheet will work until something critical changes on the Bluesky notifications page.
If it breaks, the [data-testid="notificationsScreen"] line is the most likely culprit - you can just remove it & the matching {}s
*/
@mackuba
mackuba / bsky_user_stats.rb
Created September 6, 2024 22:40
Script to check how much given Bluesky users post daily on average
#!/usr/bin/env ruby
begin
require 'minisky'
rescue LoadError
puts "Install minisky: '[sudo] gem install minisky'"
exit 1
end
require 'time'
@mary-ext
mary-ext / delete-follow-orphans.ts
Last active June 14, 2024 13:32
bluesky delete orphaned follows
import { Agent } from '@externdefs/bluesky-client/agent';
import type { Records, RefOf } from '@externdefs/bluesky-client/atp-schema';
const BSKY_USERNAME = '';
const BSKY_PASSWORD = '';
const agent = new Agent({ serviceUri: 'https://bsky.social' });
await agent.login({ identifier: BSKY_USERNAME, password: BSKY_PASSWORD });
const did = agent.session!.did;
@rondhi
rondhi / README.md
Last active May 11, 2025 01:12
How to stream games from OBS directly from Steam Deck's Gaming Mode

How to stream games from OBS directly from Steam Deck's Gaming Mode (as of 2023-02-26)

DISCLAIMER: As with any guide, please make sure to read through and understand everything before following the steps in this guide. I'm not responsible for you breaking anything on your own device. This guide assumes you have a little background with the linux command line as well as the text editor nano. If not, please educate yourself


Description: It's possible to stream Vulkan and OpenGL games from Gaming Mode on your Steam Deck. This guide is heavily based on robertkirkman's guide, which is linked multiple times throughout this guide. Much thanks to them


@jeremieflrnt
jeremieflrnt / regex.ts
Created August 9, 2022 14:54
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/\-._~:/?#[\]@!$&'()*+,;=.]*)?)?$/;
};