Skip to content

Instantly share code, notes, and snippets.

View hatkidchan's full-sized avatar
💭
¯\_(ツ)_/¯

Casey hatkidchan

💭
¯\_(ツ)_/¯
View GitHub Profile
@hatkidchan
hatkidchan / noise.frag
Created April 21, 2021 09:42
Some crappy noise
// Author: hatkidchan (https://github.com/hatkidchan)
// Title: noise?
// Open in: https://thebookofshaders.com/edit.php
#ifdef GL_ES
precision mediump float;
#endif
uniform vec2 u_resolution;
uniform vec2 u_mouse;
@hatkidchan
hatkidchan / download_all_photos.py
Created November 4, 2019 18:56
Python script for downloading all photos from VK
#!/usr/bin/env python3
import urllib3
import json
import getpass
from zipfile import ZipFile
import os
class API:
def __init__(self):
self._access_token = None
from collections.abc import Generator
from typing import Optional, Tuple, Union
from base64 import encodebytes, decodebytes
from re import findall
from Crypto.Cipher import AES
class VKCoffeeCypher:
DEFAULT_KEY = b"stupidUsersMustD"
KEY_PADDING = b"mailRuMustDie"
WRAPPERS = "(AP ID OG|PP|VK CO FF EE|VK C0 FF EE|II)"