#!/usr/bin/env bash
set +e;
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from struct import unpack_from | |
class DatabaseReader: | |
def __init__(self, file): | |
self.cursor = 0 | |
self._db = file.read() | |
def read_num(self, length): | |
type_map = {1: 'B', 2: 'H', 4: 'I', 8: 'Q'} |
Tested on Arch Linux with wine-staging 6.16
- Install wine-staging and winetricks
- Arch Linux
pacman -S wine-staging winetricks
- Unbuntu
# Install wine-staging
Discord is now slowly rolling out the ability to send colored messages within code blocks. It uses the ANSI color codes, so if you've tried to print colored text in your terminal or console with Python or other languages then it will be easy for you.
To be able to send a colored text, you need to use the ansi
language for your code block and provide a prefix of this format before writing your text:
\u001b[{format};{color}m
Create an app here: https://www.reddit.com/prefs/apps
The information can be anything. Make sure to set it to web app
and redirect uri to http://localhost:8080
Copy the client ID and client secret tokens.