Skip to content

Instantly share code, notes, and snippets.

View Jackenmen's full-sized avatar
👀

Jakub Kuczys Jackenmen

👀
View GitHub Profile
@Jackenmen
Jackenmen / get_session_id_and_token.py
Last active August 17, 2021 04:25
Get Revolt Session ID and Token (Python 3.7+)
from __future__ import annotations
import cgi
import json
import logging
import urllib.parse
import urllib.request
import webbrowser
from http.server import BaseHTTPRequestHandler, HTTPServer
from typing import Any
@Jackenmen
Jackenmen / open-discord-message-links-in-desktop-client.user.js
Last active January 29, 2021 00:30
Replace Discord message links with links using discord:// protocol so that the messages open in the desktop client.
@Jackenmen
Jackenmen / cleanup.py
Created September 8, 2020 17:55
Targetted cleanup bot.
#!/usr/bin/env python3
"""
This is free and unencumbered software released into the public domain.
Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means.
In jurisdictions that recognize copyright laws, the author or authors
of this software dedicate any and all copyright interest in the
software to the public domain. We make this dedication for the benefit
# list26s
from datetime import date
from collections import Counter
from redbot.core.utils.chat_formatting import box, pagify
from tabulate import tabulate
@commands.command()
async def list26s(ctx):
/* ==UserStyle==
@name Stop GitHub from rounding every single thing in their interface
@namespace jack1142
@version 1.0.11
@homepageURL https://gist.github.com/jack1142/a099527205dc5c2216566f32d7fca17d
@updateURL https://gist.github.com/jack1142/a099527205dc5c2216566f32d7fca17d/raw/github-stop-rounding.user.css
@license MIT License
@author jack1142
==/UserStyle== */
@-moz-document domain("github.com") {
May 12 17:38:26 lucifer-bot python[13512]: [2020-05-12 17:38:26] [ERROR] red: Exception in command 'leaderboard'
May 12 17:38:26 lucifer-bot python[13512]: Traceback (most recent call last):
May 12 17:38:26 lucifer-bot python[13512]: File "/home/ubuntu/red-venv/lib/python3.8/site-packages/redbot/core/utils/menus.py", line 92, in menu
May 12 17:38:26 lucifer-bot python[13512]: react, user = await ctx.bot.wait_for(
May 12 17:38:26 lucifer-bot python[13512]: File "/usr/lib/python3.8/asyncio/tasks.py", line 490, in wait_for
May 12 17:38:26 lucifer-bot python[13512]: raise exceptions.TimeoutError()
May 12 17:38:26 lucifer-bot python[13512]: asyncio.exceptions.TimeoutError
May 12 17:38:26 lucifer-bot python[13512]: During handling of the above exception, another exception occurred:
May 12 17:38:26 lucifer-bot python[13512]: Traceback (most recent call last):
May 12 17:38:26 lucifer-bot python[13512]: File "/home/ubuntu/red-venv/lib/python3.8/site-packages/discord/ext/commands/core.py", line 83, in wra
from typing import NamedTuple, Optional, Union
import asyncio
import json
import time
import aiohttp
class RedditException(Exception):
"""Base exception class for Reddit API."""
@Jackenmen
Jackenmen / github-dark-zenhub.user.css
Last active April 22, 2019 21:06
Zenhub addition to Github Dark
/* ==UserStyle==
@name Zenhub addition to Github Dark
@namespace jack1142
@version 1.0.1
@homepageURL https://gist.github.com/jack1142/e8f1cb483f109240658cca8a324605b0
@updateURL https://gist.githubusercontent.com/jack1142/e8f1cb483f109240658cca8a324605b0/raw/github-dark-zenhub.user.css
@license Public Domain
@author jack1142
==/UserStyle== */
@-moz-document regexp("^https?://((gist|guides|help|launch-editor|raw|resources|status|developer)\\.)?github\\.com/((?!generated_pages/preview).)*$") {
@Jackenmen
Jackenmen / Update-AUPackages.md
Created September 19, 2018 19:35
Update-AUPackages Report #powershell #chocolatey
@Jackenmen
Jackenmen / Update-AUPackages.md
Created September 19, 2018 19:32
Update-AUPackages Report #powershell #chocolatey