Skip to content

Instantly share code, notes, and snippets.

View timelessnesses's full-sized avatar
💭
wahhhh

Rukchad Wongprayoon timelessnesses

💭
wahhhh
View GitHub Profile

How to setup reddit for a cobalt instance

Step 1

Create an app here: https://www.reddit.com/prefs/apps image

The information can be anything. Make sure to set it to web app and redirect uri to http://localhost:8080

Step 2

Copy the client ID and client secret tokens.

@kkrypt0nn
kkrypt0nn / ansi-colors-discord.md
Last active April 16, 2025 07:57
A guide to ANSI on Discord

A guide to ANSI on Discord

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.

Quick Explanation

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
@munehime
munehime / storybrew-on-linux.md
Last active March 9, 2025 23:28
storybrew-on-linux

Tested on Arch Linux with wine-staging 6.16

  1. Install wine-staging and winetricks
    • Arch Linux
    pacman -S wine-staging winetricks
    • Unbuntu
    # Install wine-staging
@ORESoftware
ORESoftware / cleanup.md
Last active September 27, 2024 20:27
Cleanup docker artifacts/items

Clean up docker images/containers/volumes/networks

#!/usr/bin/env bash


set +e;
@egordm
egordm / database_reader.py
Created July 31, 2017 18:34
Python osu!.db read and filter
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'}