Skip to content

Instantly share code, notes, and snippets.

View PSingletary's full-sized avatar
🔍
Search

PSingletary PSingletary

🔍
Search
View GitHub Profile
@PSingletary
PSingletary / markdown-text-101.md
Created March 16, 2023 00:18 — forked from matthewzring/markdown-text-101.md
A guide to Markdown on Discord.

Markdown Text 101

Want to inject some flavor into your everyday text chat? You're in luck! Discord uses Markdown, a simple plain text formatting system that'll help you make your sentences stand out. Here's how to do it! Just add a few characters before & after your desired text to change your text! I'll show you some examples...

Sweet Styles

Italics *italics* or _italics_

Underline italics __*underline italics*__

@PSingletary
PSingletary / golive.cmd
Created November 12, 2022 16:09
OBS launch - Switch to single display and start streaming
displayswitch /internal && C:\Progra~1\obs-studio\bin\64bit\obs64.exe --startstreaming --scene "Starting" --disable-updater --disable-missing-files-check
@PSingletary
PSingletary / readme.md
Last active June 2, 2022 11:10
Gist of Gists
@PSingletary
PSingletary / synology-import-ssl.sh
Created April 22, 2022 18:11 — forked from Nepherte/synology-import-ssl.sh
Script to import an SSL certificate into a Synology NAS.
#!/usr/bin/env bash
# The id of the certificate to install.
CERT_ID="$1"
# The packages whose certificate to replace.
CERT_PKGS="${@:2}"
# The directory that holds to certificate to import.
CERT_IMPORT_DIR="/tmp/certificate/$CERT_ID"
@PSingletary
PSingletary / twitch-recorder.py
Created February 11, 2022 09:33 — forked from junian/twitch-recorder.py
Record Twitch Streams Automatically in Python
# This code is based on tutorial by slicktechies modified as needed to use oauth token from Twitch.
# You can read more details at: https://www.junian.net/2017/01/how-to-record-twitch-streams.html
# original code is from https://slicktechies.com/how-to-watchrecord-twitch-streams-using-livestreamer/
import requests
import os
import time
import json
import sys
import subprocess
@PSingletary
PSingletary / twitch-filter.txt
Last active June 13, 2024 12:34
uBlock Origin - Twitch Chat Text Only
www.twitch.tv##.chat-line__message--emote.chat-image
||static-cdn.jtvnw.net/*-reward-images/$image
||static-cdn.jtvnw.net/automatic-reward-images/$image
||static-cdn.jtvnw.net/badges/$image
||static-cdn.jtvnw.net/channel-points-icons/$image
||static-cdn.jtvnw.net/custom-reward-images/$image
||static-cdn.jtvnw.net/custom-reward-images/*/*/*/$image
||static-cdn.jtvnw.net/emoticons/$image
||static-cdn.jtvnw.net/emoticons/v2/*/static/dark/*.0
||static-cdn.jtvnw.net/jtv_user_pictures/$image
@PSingletary
PSingletary / profile.ps1
Created August 4, 2021 11:32 — forked from SteveL-MSFT/profile.ps1
PowerShell Prompt
#Requires -Version 7
# Version 1.2.10
# check if newer version
$gistUrl = "https://api.github.com/gists/a208d2bd924691bae7ec7904cab0bd8e"
$latestVersionFile = [System.IO.Path]::Combine("$HOME",'.latest_profile_version')
$versionRegEx = "# Version (?<version>\d+\.\d+\.\d+)"
if ([System.IO.File]::Exists($latestVersionFile)) {
@PSingletary
PSingletary / 12_Seasons.md
Created March 2, 2021 13:35
12 Seasons of Richmond

Richmond's 12 Seasons

  • Winter
  • Fool's Spring
  • Second Winter
  • Spring of Deception
  • Third Winter
  • The Pollening
  • Actual Spring
  • Summer
  • Hell's Front Porch
@PSingletary
PSingletary / Get-ADUserAudit.ps1
Created February 7, 2021 04:49 — forked from jdhitsolutions/Get-ADUserAudit.ps1
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 / gist:4b3380b2f76efda2e13dcbcefb653463
Created January 31, 2021 12:17 — forked from JT5D/gist:a2fdfefa80124a06f5a9
Google translate language codes
Eg. URL translating en page to es
http://translate.google.com/translate?hl=en&sl=en&tl=es&u=http://about.com
Define the web interface language to be English by adding
hl=en to the end of the URL and after the change the URL will look
like this:
http://www.google.com/search?hl=en
When you use more than one setting code in the URL, you need to use