Skip to content

Instantly share code, notes, and snippets.

View Gladuin's full-sized avatar
🚯

luuk Gladuin

🚯
View GitHub Profile
@Gladuin
Gladuin / futaba_vfd.py
Created November 29, 2022 20:58
Simple MicroPython demo of a cheap AliExpress Futaba 8-MD-06INKM display module on a RPi Pico
from machine import Pin
import time
# Futaba 8-MD-06INKM datasheet @ https://davll.me/posts/2021/05/22/futaba-vfd-1/data/008MD006INKM_A.pdf
# DIN -> GP3 (SPI0 TX)
# CLK -> GP2 (SPI0 SCK)
# CS -> GP1 (SPI0 CSn)
# RESET -> GP4
# EN -> 5V (VBUS)
@Gladuin
Gladuin / tutorial.md
Last active January 19, 2024 11:04
This is a tutorial on how you can backup and restore your Discord favorite gifs (on windows)

This won't work anymore because Discord moved to cloud storage for the gifs

Backup

  1. Open Discord.
  2. Press CTRL, SHIFT and I on your keyboard at the same time.
  3. In the newly opened window, at the top, click the >> button, and then click on Application.
    Image 1
  4. Once in the Application tab, click the little triangle next to Local Storage, and then click on https://discordapp.com.
    Image 2
import json
import io
import sys
json = json.load(open(sys.argv[1], "r"))
for patch_info in json:
print("# " + patch_info["name"])
#print("# " + patch_info["description"])
for patches in patch_info["patches"]: