Skip to content

Instantly share code, notes, and snippets.

View PSingletary's full-sized avatar
🔍
Search

PSingletary PSingletary

🔍
Search
View GitHub Profile
<!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 May 13, 2025 13:19
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 April 4, 2025 10:35
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 May 9, 2025 03:24
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)
@Nepherte
Nepherte / synology-import-ssl.sh
Last active May 30, 2024 17:17
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"
<#
.SYNOPSIS
Removes ghost devices from your system
.DESCRIPTION
This script will remove ghost devices from your system. These are devices that are present but have an "InstallState" as false. These devices are typically shown as 'faded'
in Device Manager, when you select "Show hidden and devices" from the view menu. This script has been tested on Windows 2008 R2 SP2 with PowerShell 3.0, 5.1, Server 2012R2
with Powershell 4.0 and Windows 10 Pro with Powershell 5.1. There is no warranty with this script. Please use cautiously as removing devices is a destructive process without
an undo.
.PARAMETER filterByFriendlyName
This parameter will exclude devices that match the partial name provided. This paramater needs to be specified in an array format for all the friendly names you want to be excluded.
@PSingletary
PSingletary / PSTemplate.ps1
Created January 11, 2020 19:30
Writitng a Powershell Script? Need a Template? Start Here
#Requires -version 2
#Requires -RunAsAdministrator
<#
.SYNOPSIS
<A brief description of the function or script. This keyword can be used only once in each topic.>
.DESCRIPTION
<A detailed description of the function or script. This keyword can be used only once in each topic.>
.PARAMETER <Parameter-Name>