This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function randomId() { | |
let letters = 'abcdefghijklmnopqrstuvwxyz' | |
return ( | |
'aa'.split('').map(n => letters[Math.floor(Math.random() * 26)]).join('') + | |
'1111'.split('').map(l => Math.floor(Math.random() * 9)).join('') | |
) | |
} | |
function keydownHandler(e) { | |
if (e.key === 'ArrowRight') { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let dTimeout = null | |
function keydownHandler(e) { | |
if (e.key !== '>' && e.key !== '<') { | |
return | |
} | |
let video = document.querySelector('video') | |
if (e.key === '>') video.playbackRate += 0.5 | |
if (e.key === '<' && video.playbackRate > 0) video.playbackRate -= 0.5 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var e = document.querySelector('html body.houses div#page div#content div.section div'); | |
var f = document.createElement('div'); | |
f.setAttribute('style', 'margin: 0px 15px 10px; padding: 5px; border: 0.5px solid black;'); | |
var a = document.createElement('div'); | |
a.setAttribute('id', 'ints'); | |
a.innerHTML = 'Ints: '; | |
for (var i = 0; i < 14; i++) { | |
if (i < 13) { | |
var b = document.createElement('label'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# PowerShell.exe -ExecutionPolicy Bypass -File .\nvidia-update-cleaner.ps1 | |
Write-Host 'This script is going to clean up old Nvidia installer files.'; | |
Write-Host 'Press any key to continue...'; | |
$null = $Host.UI.RawUI.ReadKey('NoEcho,IncludeKeyDown'); | |
$paths = ('C:\Program Files\NVIDIA Corporation\Installer2\'), ('C:\ProgramData\NVIDIA Corporation\Downloader\'); | |
$total = 0; | |
foreach ($path in $paths) | |
{ |