Skip to content

Instantly share code, notes, and snippets.

@PSingletary
PSingletary / Live_Channel.html
Created April 7, 2024 15:25
Show Twitch Channel Embed when live, hide when offline
<html>
<head>
<style>
.hide { display:none; }
/* Optional: The following css just makes sure the twitch video stays responsive */
#twitch {
position: relative;
padding-bottom: 56.25%; /* 16:9 */
padding-top: 25px;
@PSingletary
PSingletary / Bossett_copyList.js
Last active March 12, 2024 10:21
BlueSky list copy
// ORIGINAL https://gist.githubusercontent.com/Bossett/c012ed574d96114569af7ba3b25693f1/raw/copyList.js
// COPIES ALL MEMBERS OF A LIST TO ANOTHER LIST
// --------------------------------------------
// 1. Navigate from https://bsky.app/ to the list you want to copy TO and copy its url
// (e.g. https://bsky.app/profile/bossett.social/lists/3k22v6pbfk32t)
// 2. Change the value of DESTINATION_LIST to your value from 1.
// 3. Navigate from https://bsky.app/ to the list you want to copy FROM
// 4. Open the developer tools, and copy/paste this into the console tab & ENTER
// It may take a little while to run - the page will reload when finished
$dateTime = Get-Date -Format "yyyyMMdd_HHmmss"
$filename = "LoginDetails_$dateTime.csv"
# Prompt for a GitHub repository
$repo = Read-Host -Prompt 'Input your GitHub repository (format: owner/repo)'
# $repo = 'bluesky-social/social-app'
# Prompt for a GitHub token
$GitHubtoken = Read-Host -Prompt 'Input your GitHub token (with read-only permissions)'
# If no token is provided, prompt for GitHub credentials and retrieve a read-only token
@PSingletary
PSingletary / color.md
Created December 22, 2023 16:32
Twitch Colors from Brand Assets (publicly available)
@PSingletary
PSingletary / obsbackup.cmd
Last active December 10, 2023 21:30
Backup OBS
@echo off
set obs_path=C:\Program Files\obs-studio
set backup_path=C:\Users\%USERNAME%\Documents\OBS_Backup
mkdir %backup_path%
xcopy /E /I "%obs_path%\data" "%backup_path%\data"
xcopy /E /I "%obs_path%\obs-plugins" "%backup_path%\obs-plugins"
xcopy /E /I "%obs_path%\obs-plugins64" "%backup_path%\obs-plugins64"
xcopy /E /I "%obs_path%\obs-plugins-win64" "%backup_path%\obs-plugins-win64"
xcopy /E /I "%obs_path%\obs-plugins-win32" "%backup_path%\obs-plugins-win32"
xcopy /E /I "%obs_path%\obs-plugins-64bit" "%backup_path%\obs-plugins-64bit"
#!/usr/bin/env python3
"""
Script demonstrating how to create posts using the Bluesky API, covering most of the features and embed options.
To run this Python script, you need the 'requests' and 'bs4' (BeautifulSoup) packages installed.
"""
import re
import os
@PSingletary
PSingletary / LUL.json
Last active December 24, 2023 19:43
FFZ settings
{"action":"chat","appearance":{"type":"text","text":"LUL","tooltip":"LUL"},"ctx":"hover","options":{"command":"LUL @{{user.displayName}}"},"display":{}}
@PSingletary
PSingletary / obs_twitch_chat.css
Created November 10, 2023 23:11 — forked from Bluscream/obs_twitch_chat.css
Twitch chat transparent popout for OBS
/*
Twitch chat browsersource CSS for OBS
Just set the URL as https://www.twitch.tv/%%TWITCHCHANNEL%%/chat?popout=true
And paste this entire file into the CSS box
Original by twitch.tv/starvingpoet modified by github.com/Bluscream
General Settings
*/
body {
color: #FFFFFF!important;
@PSingletary
PSingletary / big-league-me.ts
Created September 30, 2023 14:57 — forked from nuklearfiziks/big-league-me.ts
big-league-me.ts
import dotenv from 'dotenv'
import { BskyAgent } from '@atproto/api'
import { ProfileView } from '@atproto/api/dist/client/types/app/bsky/actor/defs'
const bigLeagueMe = async () => {
dotenv.config()
// YOUR bluesky handle
// Ex: user.bsky.social
const handle = process.env.BSKYHANDLE || ''
@PSingletary
PSingletary / ybov_schedule.html
Created July 30, 2023 16:47
Carrd.co embed schedule with timezone adjustment
<style>
body {
color: #FFFFFF;
}
.schedule {
color: #FFFFFF;
font-family: 'Sora', sans-serif;
letter-spacing: 0.1rem;
width: calc(100% + 0.1rem);