Skip to content

Instantly share code, notes, and snippets.

View Noorquacker's full-sized avatar
👀
FOLLOW FOR FOLLOW

Noorquacker Noorquacker

👀
FOLLOW FOR FOLLOW
View GitHub Profile
@Noorquacker
Noorquacker / teams-map.ipynb
Created February 24, 2023 03:10
Microsoft Teams recursive hierarchy downloader
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@Noorquacker
Noorquacker / dalle-dl.py
Created August 13, 2022 01:49
Repeatedly spams DALL-E Mini to force it to respond (THIS IS EVIL DON'T USE THIS)
import base64, requests, time
prompt = 'hatsune miku fishing in a lake'
print('Waiting for good response...')
resp = 503
while resp >= 500:
r = requests.post('https://bf.dallemini.ai/generate', json={'prompt': prompt})
resp = r.status_code
@Noorquacker
Noorquacker / thesaurus-legacy-orange.user.css
Created June 24, 2022 15:17
Light orange legacy theme for thesaurus.com
/* ==UserStyle==
@name Thesaurus Legacy Orange Theme
@namespace ThesaurusLegacy
@version 0.0.1
@homepageURL https://gist.github.com/Noorquacker/
@updateURL https://gist.github.com/Noorquacker/55dd99c60b6d2220126ec3fa607cbe09/raw/b478143cf2a8aa5482b320a5299efb16b0bcd7ab/thesaurus-legacy-orange.user.css
@license WTFPL License
@author Noorquacker
==/UserStyle== */
@-moz-document regexp("https:\\/\\/[0-9A-Za-z]*\\.?thesaurus\\.com.*") {
@Noorquacker
Noorquacker / vin-duplicator.py
Created August 12, 2021 23:35
Duplicate your car's VIN to create fake VINs (and get arrested)
import random
basevin = 'JTJHK31U182' # replace this with the first 11 digits of your own VIN if you want to generate your own car
random.seed()
vinserialno = random.randint(0, 1000000)
newvin = f'{basevin[:8]}1{basevin[9:11]}{vinserialno:06}'
def checksum(vin):
chkweight = [8, 7, 6, 5, 4, 3, 2, 10, 0, 9, 8, 7, 6, 5, 4, 3, 2]
chkvalues = {'A': 1, 'B': 2, 'C': 3, 'D': 4, 'E': 5, 'F': 6, 'G': 7, 'H': 8, 'J': 1, 'K': 2, 'L': 3, 'M': 4, 'N': 5, 'P': 7, 'R': 9, 'S': 2, 'T': 3, 'U': 4, 'V': 5, 'W': 6, 'X': 7, 'Y': 8, 'Z': 9}
@Noorquacker
Noorquacker / quacker-canvas-dark.user.css
Last active May 19, 2021 18:05
Canvas dark theme, works on my machine
/* ==UserStyle==
@name QUACKER Canvas Dark
@namespace CanvasDark
@version 0.0.1
@homepageURL https://www.nqind.com/
@updateURL https://gist.githubusercontent.com/Noorquacker/bce9abd8694cc40d6e980607d088b673/raw/quacker-canvas-dark.user.css
@license WTFPL License
@author Noorquacker
==/UserStyle== */
@-moz-document regexp("https:\\/\\/[0-9A-Za-z]*\\.?instructure\\.com.*") {
@Noorquacker
Noorquacker / fourier-demo-pygame.py
Created October 14, 2019 02:04
Pygame demo of the Fourier series
import pygame, time, sys, pygame.gfxdraw, math
print("Fourier Example thingy by Noorquacker. https://www.nqind.com")
pygame.init()
clock = pygame.time.Clock()
w = pygame.display.set_mode((1500,1000))
pygame.font.init()
pygame.display.set_caption("fourier example thingy")
font = pygame.font.SysFont("Times New Roman", 18)
iter = 5
circ_outs = [0]*500