Skip to content

Instantly share code, notes, and snippets.

View Jackenmen's full-sized avatar
👀

Jakub Kuczys Jackenmen

👀
View GitHub Profile
@Jackenmen
Jackenmen / github-load-all-comments.js
Created May 22, 2026 03:06
Load all comments on a GitHub discussion page
function clickLoadMore() {
let node = document.querySelector(".ajax-pagination-btn");
if (node === null) {
return
}
if (!node.disabled) {
node.click();
}
setTimeout(clickLoadMore, 1000);
}

Red 3.5.25 will introduce a new redbot-update command that guides you through the update process and will be the documented way of updating Red.

You can see a terminal recording showing how this works for major Red update at: https://asciinema.org/a/iC9iu3XOLotS5okc
Below, you'll find a text description with screenshots.

When running redbot-update, if there is an update available, the following happens:

  1. In the terminal, user is presented with the changelog between current and latest version with a merged "Read before updating" section at the top.
@Jackenmen
Jackenmen / README.md
Last active November 2, 2024 03:10
Rocket League title dump from 2024-11-02

This title dump has been created using CodeRed's console with the following command:

database_dump_titles database_title_id database_title_category database_title_text database_title_color database_title_glowcolor

To open the console, hit the F5 key.

WARNING: CodeRed is NOT open-source (unlike BakkesMod).

@Jackenmen
Jackenmen / PlaylistDump.json
Created October 30, 2024 22:50
Rocket League playlist dump from 2024-10-30
[
{
"Playlist Id": 24,
"Playlist Name": "LANMatch",
"Playlist Title": "None",
"Playlist Description": "None",
"Playlist Badge Title": "None",
"Playlist Player Count": 10,
"Playlist Standard": false,
"Playlist Ranked": false,
@Jackenmen
Jackenmen / aw_summarize_time_spent.py
Last active October 11, 2023 17:44
ActivityWatch - summarize time spent into CSV file. Requires aw-client library
# Copyright 2023 Jakub Kuczys (https://github.com/Jackenmen)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
@Jackenmen
Jackenmen / generate_apk.yaml
Last active June 1, 2023 06:08
A GitHub Actions workflow file for building signed Android APKs
# NOTE: This workflow needs to be adjusted in places marked with '# TODO: ' comments
#
# Use this command to generate a keystore and a key if you don't already have one:
# $ keytool -genkey -v -keystore my-key.p12 -alias my-key -keyalg RSA -keysize 4096 -validity 50000 -keypass android -storepass android
#
# You can use this command to create base64 string of the file for later use in KEYSTORE_BASE64:
# $ base64 my-key.p12 > my-key.p12.base64
name: Build signed Android APK
on:
@Jackenmen
Jackenmen / download_fb_post_images.py
Created October 2, 2022 15:58
Download images from the given Facebook posts
import operator
import requests
API_URL = "https://graph.facebook.com/v15.0/"
TOKEN = ""
PAGE_ID = ""
# {"post_id": "folder name"}
POST_IDS = {}
@Jackenmen
Jackenmen / 0_version_list.csv
Last active August 11, 2022 11:12
Get versions of bundled pip and setuptools in ensurepip. Requires `packaging`. Run in the root of the CPython repository after pulling tags.
Python version pip version setuptools version
3.11.0rc1 22.2.2 63.2.0
3.11.0b5 22.2 63.2.0
3.11.0b4 22.0.4 58.1.0
3.11.0b3 22.0.4 58.1.0
3.11.0b2 22.0.4 58.1.0
3.11.0b1 22.0.4 58.1.0
3.11.0a7 22.0.4 58.1.0
3.11.0a6 21.2.4 58.1.0
3.11.0a5 21.2.4 58.1.0
@Jackenmen
Jackenmen / fix_po_files_from_pre_redgettext_3.3.py
Created July 17, 2022 02:30
A script that fixes po files that were generated by redgettext<3.3. See https://github.com/Cog-Creators/redgettext/issues/1
from pathlib import Path
from typing import Dict
import polib
from lxml import etree
def _str_field(self, *args, **kwargs):
ret = _str_field_orig(self, *args, **kwargs)
if len(ret) > 1:
@Jackenmen
Jackenmen / fetch_ubuntu_repos.py
Last active July 13, 2022 21:54
Little script for fetching metadata from ALL Ubuntu repositories and search for available Python versions.
import gzip
import os
import sys
from io import BytesIO
from pathlib import Path
import requests
from debian import deb822
cwd = Path("processed")