Skip to content

Instantly share code, notes, and snippets.

View PSingletary's full-sized avatar
🔍
Search

PSingletary PSingletary

🔍
Search
View GitHub Profile
@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;
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="icon" type="image/x-icon" href="/favicon.ico">
<title>Rebane's Discord Colored Text Generator</title>
<meta charset="UTF-8">
<meta name="description" content="Rebane's Discord Colored Text Generator">
<meta name="author" content="rebane2001">
<style>
/*
@kkrypt0nn
kkrypt0nn / ansi-colors-discord.md
Last active October 31, 2024 21:33
A guide to ANSI on Discord

A guide to ANSI on Discord

Discord is now slowly rolling out the ability to send colored messages within code blocks. It uses the ANSI color codes, so if you've tried to print colored text in your terminal or console with Python or other languages then it will be easy for you.

Quick Explanation

To be able to send a colored text, you need to use the ansi language for your code block and provide a prefix of this format before writing your text:

\u001b[{format};{color}m
@jdhitsolutions
jdhitsolutions / Get-ADUserAudit.ps1
Last active February 18, 2024 05:18
A PowerShell function and format file for getting Active Directory user management events from the security event logs on domain controllers.
#requires -version 5.1
#requires -module ActiveDirectory
#you might need to increase the size of the Security eventlog
# limit-eventlog -LogName security -ComputerName dom2,dom1 -MaximumSize 1024MB
Function Get-ADUserAudit {
[cmdletbinding()]
Param(
[Parameter(Position=0,HelpMessage = "Specify one or more domain controllers to query.")]
@PSingletary
PSingletary / .stop-userprocesses.md
Last active February 10, 2021 11:02
What's running? Nevermind, I don't care. KILL ALL USER PROCESSES!!!!!

Sometimes you feel like you need a reboot, but don't want to lose minutes shutting down and starting back up. Both of these files do the same thing.

  • Finds all the things running the the context of the current accunt logged/running
  • Stops them

Need this? Here's how to setup

  1. Level 1 comfort - umm this is scary
    1. Click the Download .zip button in upper right
    2. Open Downloads folder
  2. Unzip to desktop
@LanceMcCarthy
LanceMcCarthy / UltimateListIds.md
Last active October 17, 2024 00:57
List of Package Ids
Name Package Id Version Source
7Zip 7zip.7zip 19.0.0 winget
Altap Salamander salamander choco
Alt-Tab Terminator alt-tab-terminator choco
AutoHotkey Lexikos.AutoHotkey 1.1.33.02 winget
AutoHotkey Store Edition HaukeGtze.AutoHotkeypoweredbyweatherlights.com Latest msstore (via winget)
Carnac
@b-ggs
b-ggs / chatterino_filters.md
Last active January 31, 2023 16:49
chatterino filters

partners mods vips staff broadcaster + timeouts - fossabot - streamlabs - nightbot

((author.badges contains "partner" || author.badges contains "moderator" || author.badges contains "vip" || author.badges contains "staff" || author.badges contains "broadcaster" || author.badges contains "admin") || (flags.system_message && !flags.sub_message)) && (author.name !== "Fossabot" && author.name !== "Streamlabs" && author.name !== "Nightbot" && author.name !== "AmazefulBot")

remove graynames

(!(author.no_color) || flags.system_message || flags.whisper || flags.highlighted || flags.points_redeemed || flags.sub_message)
@gempir
gempir / filters.md
Last active September 28, 2024 20:58
Chatterino Filter Collection
Filter out every user without color (greynames) 2.0
(!(author.no_color) || flags.system_message || flags.whisper || flags.highlighted || flags.points_redeemed || flags.sub_message)
Filter out every user without color (greynames)
!(author.no_color)