Skip to content

Instantly share code, notes, and snippets.

View voidlynx's full-sized avatar
🎸
i listen to prog metal

Niko Shens voidlynx

🎸
i listen to prog metal
View GitHub Profile
@voidlynx
voidlynx / rbcoord.py
Created July 14, 2022 19:00
lil image generator
from PIL import Image
w,h = (256,256)
img = Image.new(mode="RGB", size=(w,h))
for i in range(w):
for j in range(h):
r,g,b = (i-1,128,j-1)
img.putpixel((i,j),(r,g,b))
img.save("./output.png")
@voidlynx
voidlynx / PyHasher24.py
Last active May 1, 2020 17:04
The text/file hasher on Python 3
import hashlib # Import the hashlib
htype = input("FILE or TEXT? ").upper()
if htype == "FILE":
filepath = input("Filepath: ") # Asking user for the path to the file
with open(filepath, 'rb') as file:
message = file.read() # Reading the contents to 'me'
file.close() # CLosing the reading
hashtype = input("Hashing? (SHA256, MD5) ").upper() # Ask user for hashing algorythm
elif htype == "TEXT":
#!/usr/bin/env python
import sys, os, time
import tweepy
keys = dict(
consumer_key='_YOUR_CONSUMER_KEY',
consumer_secret='_YOUR_SECRET_KEY',
access_token='_YOUR_ACCESS_TOKEN',
access_token_secret='_YOUR_ACCESS_TOKEN_SECRET'
)