Skip to content

Instantly share code, notes, and snippets.

View PSingletary's full-sized avatar
🔍
Search

PSingletary PSingletary

🔍
Search
View GitHub Profile
@PSingletary
PSingletary / bsky_user_stats.rb
Created September 7, 2024 19:19 — forked from mackuba/bsky_user_stats.rb
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'
@PSingletary
PSingletary / Bootstrap-OBS.ps1
Last active October 19, 2024 17:31
OBS-bootstrapper
# Function to check and install Python
function Install-Python {
if (-not (Get-Command python -ErrorAction SilentlyContinue)) {
Write-Output "Python not found. Installing..."
$pythonInstaller = "https://www.python.org/ftp/python/3.10.2/python-3.10.2-amd64.exe"
$installerPath = "$env:TEMP\python-installer.exe"
Invoke-WebRequest -Uri $pythonInstaller -OutFile $installerPath
Start-Process -FilePath $installerPath -ArgumentList '/quiet InstallAllUsers=1 PrependPath=1' -NoNewWindow -Wait
Remove-Item $installerPath
Write-Output "Python installed."
@PSingletary
PSingletary / chatterino_calling_streamlink.md
Last active August 17, 2024 10:31
Streamlink in chatterino
@PSingletary
PSingletary / minimal BRB.json
Created July 30, 2024 03:52
OBS Scene - BRB
{
"sources": [
{
"prev_ver": 503447554,
"name": "Twitch Gradient",
"uuid": "1f296c6e-bd5b-480d-968e-e47c8d2a3176",
"id": "gradient_source",
"versioned_id": "gradient_source",
"settings": {
"width": 1920,
@PSingletary
PSingletary / chatterino-UMBRA.json
Last active July 15, 2024 04:13
Cyberpunk Themes
{
"colors": {
"accent": "#00aeef",
"messages": {
"backgrounds": {
"alternate": "#1e1d43",
"regular": "#0f0d22"
},
"disabled": "#352A6060",
"highlightAnimationEnd": "#00e6e6e6",
@PSingletary
PSingletary / SimCity4.md
Last active June 17, 2024 22:32
Sim City 4 Deluxe reference

Commandline options

-w -intro:off -CustomResolution:enabled -r1600x1200x32 -CPUCount:2 -CPUPriority:high -Cursors:fullcolor

  • -AllowMultipleInstances
  • -audio:off : Turns all the audio output off
  • -BackgroundLoader:on/off : Background Loading
  • -CodePage:id : Sets the code page portion of the locale for the C runtime library. Normally, the code page is determined by the language the application runs in (see the -l command line option)
  • -ConfigLog:server | off : Sets the destination of where to write the computer configuration log specified by the -WriteLog command line option. By default, the server is "studiotech.max.ad.ea.com".
  • -CPUCount:X
  • -CPUPriority:low
  • -Cursors:disabled/bw/color16/color256/fullcolor : Sets the color depth of the game cursors. Some hardware doesn't like some cursor color depths.
@PSingletary
PSingletary / delete-follow-orphans.ts
Created June 14, 2024 13:32 — forked from mary-ext/delete-follow-orphans.ts
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;
@PSingletary
PSingletary / Set-Recording.ps1
Last active June 9, 2024 20:11
Schedule recordings with streamlink
.<#
.SYNOPSIS
Creates a Scheduled task for recording a stream a specific time with Streamlink
.DESCRIPTION
Inputs:
URL
Date and Time
Directory for Recording
Directory for Logging
Outputs:
@PSingletary
PSingletary / policies.md
Last active May 10, 2024 11:19
template of Content Creator (streamer focus) polices for online and offline moderation

Mod Team: Guidelines + Policies

Attendance

Attendance is never considered mandatory, however moderators who are incommunicado for an extended period may be unmodded so that individuals who are able to be present can be given moderation privileges. This is not considered a poor reflection on the individual but a necessity in order to keep a healthy moderator presence in chat. If you are unable to attend a stream that you normally attend or will be absent for an extended period, please use the moderator channel in discord to let the team know so that others with availability know to be present Emergency Contact In the event of an emergency, please contact the broadcaster or Mod Manager, to alert them of the issue immediately so that they can handle the situation. A ____ message is the best way to get ahold of Streamer yourself. Examples of an emergency include: Stream did not end automatically after a raid Bulk bot follows Hate raids

@PSingletary
PSingletary / chatterino_regex.md
Last active July 21, 2024 14:37
helpful chatterino regex

Chatterino

Greetings
/^(hi.*|hello|hey.*|yo|salutation.*|greeting.*|whatup|welcome|(morning|afternoon|evening|timezone))
Show mods, vips, staff, broadcasters, admins only