Bad Snippets

These might break things. Use at your own stupidity!

This is more of a placeholder for now. I'll be adding more when I can be bothered to hunt them out and sort them into some form of readable format. They're fun!

Fill the drive with gak - Python

from string import digits, ascii_uppercase
from random import choice

while 1:
    c += 1
    with open(str(c), 'w+') as f:
        f.write(''.join(choice(ascii_uppercase + digits) for x in range(999999)))

Remove all in current dir - Python

from shutil import rmtree


Windows update prank - Python

import webview

webview.create_window('', '', fullscreen=True, confirm_quit=True)

Fibinacci - Python

def fibonacci():
    a, b = 0, 1
    while True:
        yield a
        a, b = b, a + b

for x in fibonacci():