Skip to content

Instantly share code, notes, and snippets.

View noaione's full-sized avatar
🥐
ゆび!ゆび!

noaione

🥐
ゆび!ゆび!
View GitHub Profile
@noaione
noaione / discord_ui_view_paginator.py
Created September 16, 2021 04:16
A paginator generator based on Discord UI view (discord.py)
"""
MIT License
Copyright (c) 2019-2021 noaione
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
@noaione
noaione / discovery_category.json
Last active October 30, 2021 08:35
Discord discovery category | Fetched from API, might be useful later.
[
{
"id": 0,
"name": {
"default": "General"
},
"is_primary": true
},
{
"id": 1,
@noaione
noaione / tweetdeckenforcer.user.js
Last active November 11, 2021 11:40
Userscript to force yourself to use Tweetdeck. Click raw to install | If you want to keep using, either disable this script or add "?exempt=1" to your url.
// ==UserScript==
// @name TweetDeck Enforcer
// @namespace http://tampermonkey.net/
// @version 0.1.2
// @description Force using Tweetdeck instead of Twitter
// @updateURL https://gist.github.com/noaione/a405844de481f8aa1cefd41c8b70cc29/raw/tweetdeckenforcer.user.js
// @downloadURL https://gist.github.com/noaione/a405844de481f8aa1cefd41c8b70cc29/raw/tweetdeckenforcer.user.js
// @author noaione
// @match https://twitter.com/*
// @icon https://www.google.com/s2/favicons?domain=twitter.com
@noaione
noaione / mwstudio_mw75_default_layout
Created November 19, 2021 12:53
The default layout for MWStudio MW75 R1 board, load this into QMK Config since there is not default in it.
{
"version": 1,
"notes": "",
"documentation": "\"This file is a QMK Configurator export. You can import this at <https://config.qmk.fm>. It can also be used directly with QMK's source code.\n\nTo setup your QMK environment check out the tutorial: <https://docs.qmk.fm/#/newbs>\n\nYou can convert this file to a keymap.c using this command: `qmk json2c {keymap}`\n\nYou can compile this keymap using this command: `qmk compile {keymap}`\"\n",
"keyboard": "mwstudio/mw75",
"keymap": "default",
"layout": "LAYOUT",
"layers": [
[
"KC_ESC",
@noaione
noaione / mangadex-dl.py
Last active January 25, 2022 07:36
MangaDex v5 downloader
"""
Simple script to download MangaDex manga/titles.
It will download all chapters specified with selected languages.
Usage:
python mangadex-dl.py
You will then be asked to enter the title UUID.
@noaione
noaione / irc-bot-async.py
Last active February 26, 2022 12:08
A simple IRC bot client in async mode
"""
This is a simple IRC bot client that I made using asyncio.
Need Python 3.7+
No additional packages required
You can modify some variables at some part on the bottom of the file.
After that just run: python3 irc-bot-async.py
"""
from typing import TYPE_CHECKING, Optional
import disnake.state
from disnake import ApplicationCommandInteraction, ComponentType, MessageInteraction, ModalInteraction
if TYPE_CHECKING:
from disnake.types.interactions import (
ApplicationCommandInteraction as ApplicationCommandInteractionPayload,
)
@noaione
noaione / pdfsnap.py
Created March 21, 2022 05:16
Extract image and text from pdf
"""
A simple pdf image and text extractor.
This script will help you extract your pdf into a folder
where you can see all the image and "screenshoted" text of your pdf/ebooks.
This program use argparse, you can run it with the following command:
python3 pdfsnap.py -h
To see all the command.
@noaione
noaione / mangahot-descramble.py
Last active February 23, 2025 18:45
Descramble MangaHot image.
"""
This tool help descramble a single image from MangaHot website.
Make sure it has the proper filename kinda like this:
- content1_1647920106.2577.png
The important part is the digit behind the extension, it's being used to get the type.
Requirements:
- Python 3.6 or better
# This script will crawl nginx index page and return
# the list of valid files.
import os
import sys
from typing import Dict, List
from copy import deepcopy
from urllib.parse import unquote
import requests