Skip to content

Instantly share code, notes, and snippets.

@1337cookie
1337cookie / learn-unreal-video-fix-1337cookie.user.css
Last active June 4, 2021 14:00
Userstyle to increase usability on learn.unreal.com/courses
/* ==UserStyle==
@name Unreal Engine Courses large video player and controls visible.
@namespace learn.unrealengine.com
@namespace cdnapisec.kaltura.com
@version 1.0.1
@description Large video player, always visible playback controls for learn.unrealengine.com courses
@author 1337cookie
==/UserStyle== */
@-moz-document domain("cdnapisec.kaltura.com") {
@1337cookie
1337cookie / DeleteDiscordCache.ps1
Last active March 2, 2024 04:22
DeleteDiscordCache.ps1
# Deletes some discord cache files which can cause video stream to be low quality, jittery or lowered bitrate.
# You can run this with discord running and it should restart discord afterwards.
$answer = [System.Windows.Forms.MessageBox]::Show("Do you want to clear discord cache files","Do you really want to been as far even as decided to use even go want to do look more like?", "YesNo", "Hand", "Button1")
if($answer -match 'No'){
Write-Output $answer
exit
}
# Self-elevate the script if required
if (-Not ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] 'Administrator')) {
if ([int](Get-CimInstance -Class Win32_OperatingSystem | Select-Object -ExpandProperty BuildNumber) -ge 6000) {
@1337cookie
1337cookie / agentrandom.ahk
Created August 9, 2020 16:14
AHK script for writing documents to https://www.twitch.tv/agent_random
;Stop start isnt working stop script manually.
#NoEnv
#Persistent
global KeepRunning := False
sendData(){
Loop, read, file.txt
{
if (KeepRunning = true){
Send {Text}!t %A_LoopReadLine%
Send {Enter}