Skip to content

Instantly share code, notes, and snippets.

@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active May 6, 2024 19:54
Complete Recent Discord Quest

Complete Recent Discord Quest

Note

This no longer works in browser!

Note

This no longer works if you're alone in vc! Somebody else has to join you!

How to use this script:

  1. Accept the quest under User Settings -> Gift Inventory
@echo off
DISM > nul 2>&1 || echo error: administrator privileges required >&2 && exit /b 1
where xperf.exe > nul 2>&1
if not %errorlevel% == 0 (
echo error: xperf not found in path. install "Windows Performance Toolkit" in the ADK from the link below >&2
echo https://learn.microsoft.com/en-us/windows-hardware/get-started/adk-install
exit /b 1
)
@Aetopia
Aetopia / Get-SCEWIN.ps1
Created August 16, 2023 13:46
Get the latest version of SCEWIN.
& {
Add-Type -AssemblyName System.Web.Extensions
Add-Type -AssemblyName System.IO.Compression.FileSystem
[System.Web.Script.Serialization.JavaScriptSerializer]$JavaScriptSerializer = New-Object System.Web.Script.Serialization.JavaScriptSerializer
[System.Net.WebClient]$WebClient = New-Object System.Net.WebClient
$WebClient.Headers.Add("user-agent", "request")
$WebClient.DownloadFile(($JavaScriptSerializer.DeserializeObject(
$WebClient.DownloadString(
"https://api.github.com/repos/dscharrer/innoextract/releases/latest"
@amitxv
amitxv / XHCI-IMOD-Interval.ps1
Last active April 28, 2024 13:21
Configure the IMOD Interval for XHCI controllers with RWEverything
param(
[switch]$verbose
)
# The variables starting with $GLOBAL store values that should be applied to all XHCI controllers by default.
# To override this default value on a per-controller basis, specify the DEV_XXXX hardware ID value for the XHCI controller along with its data
# See the example below.
#
# $globalInterval = 0x0
# $globalHCSPARAMSOffset = 0x4
@mkze
mkze / xqc_twitch_kick_embed.user.js
Last active June 18, 2023 05:36
Simple userscript to embed xqc's kick stream on his twitch channel, for viewing twitch chat while he is live on kick
// ==UserScript==
// @name xqc Twitch/Kick Embed
// @version 0.4
// @description Embed xqc's kick stream on his twitch channel, for viewing twitch chat while he is live on kick
// @author /u/mkze
// @match *://*.twitch.tv/xqc
// @match *://twitch.tv/xqc
// @icon https://www.google.com/s2/favicons?sz=64&domain=twitch.tv
// @grant none
// ==/UserScript==
@xaizone
xaizone / !pop
Last active September 11, 2023 18:49
# Fetches the amount of currently online APB:R players from will.io/apb/
$(eval
try {
response = `$(urlfetch json https://will.io/apb/stats.php)`;
json = JSON.parse(response);
euPop = json['3103']?.slice(-1)[0]; naPop = json['3002']?.slice(-1)[0];
euPop == null && naPop == null ? "Servers are offline" : "EU: " + euPop + ", NA: " + naPop;
}
catch(e) {
<!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 April 24, 2024 09:14
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

\u001b is the unicode escape for ESCAPE/ESC, meant to be used in the source of your bot (see ). If you wish to send colored text without using your bot you need to copy the character from the website.

@WiBla
WiBla / README.md
Last active August 11, 2022 15:21
Add YouTube videos to plug.dj without having to search them.

What is this?

It's a script (think of it as mod) for plug.dj which will allow you to add YT (YouTube) videos to your playlists with one button.

Why is this necessary?

Plug.dj is having some trouble with their YT API Key (the thing that allows you to make YT related actions throughout the site, like searching for a song and adding the results to your playlists). Using this script, you will be able to add YT videos to your playlists again, even while plug.dj is dealing with YouTube's support to get this issue fixed.

How to use

@AveYo
AveYo / .. MediaCreationTool.bat ..md
Last active May 4, 2024 15:47
Universal MediaCreationTool wrapper for all MCT Windows 10 versions - MOVED TO github.com/AveYo/MediaCreationTool.bat