Skip to content

Instantly share code, notes, and snippets.

@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) {
; Google Drive API test
#NoEnv
SetWorkingDir %A_ScriptDir%
SetBatchLines, -1
; http://www.howtosolvenow.com/how-to-create-your-google-drive-api-keys/
; http://www.howtosolvenow.com/how-to-get-refresh-token-for-google-drive-api/
client_id := "xxxxxxxxxxx"
client_secret := "xxxxxxxxxxx"
@alirobe
alirobe / reclaimWindows10.ps1
Last active April 20, 2025 23:02
This Windows 10 Setup Script turns off a bunch of unnecessary Windows 10 telemetery, bloatware, & privacy things. Not guaranteed to catch everything. Review and tweak before running. Reboot after running. Scripts for reversing are included and commented. Fork of https://github.com/Disassembler0/Win10-Initial-Setup-Script (different defaults). N.…
###
###
### UPDATE: For Win 11, I recommend using this tool in place of this script:
### https://christitus.com/windows-tool/
### https://github.com/ChrisTitusTech/winutil
### https://www.youtube.com/watch?v=6UQZ5oQg8XA
### iwr -useb https://christitus.com/win | iex
###
### OR take a look at
### https://github.com/HotCakeX/Harden-Windows-Security
@jazzido
jazzido / index.html
Last active November 8, 2024 00:42
Webcam barcode reading (zbar, emscripten)
<!DOCTYPE html>
<html>
<head>
<title>JS in-browser barcode reader</title>
<style type="text/css">
body > div {
position: relative;
width: 320px; height: 240px;
}
video { position: absolute; top: 0; left: 0; width: 320px; height: 240px; }