Skip to content

Instantly share code, notes, and snippets.

@rebane2001
rebane2001 / kazuma_kiryu_pfp_timestamps.txt
Created May 27, 2024 20:04
all timestamps from "Kazuma Kiryu pfp guy" comments across all fruit salad videos
[https://www.youtube.com/watch?v=UCjZiR3UsVk]
11:33
17:47
26:31
1:10:38
1:20:59
2:00:50
3:03:00
[https://www.youtube.com/watch?v=2VfxgT2b1QA]
@rebane2001
rebane2001 / discord_event_type_list.txt
Created May 18, 2024 13:20
List of event_types in discord data dump's activity folder. Based on my own data dump made 2024-05, so there could be events missing if my own account never had them happen.
accepted_instant_invite
account_link_step
ack_community_messages
ack_messages
active_channels_loaded
activities_center_control_tray_button_hovered
activities_mini_shelf_hovered
activities_whats_new_clicked
activities_whats_new_opened
activity_card_clicked
@rebane2001
rebane2001 / plot_discord_predictions.py
Last active October 15, 2024 07:55
Simple script to plot your Discord machine-learning predicted age and gender from the data dump.
"""
Simple script to plot your Discord machine-learning predicted age and gender from the data dump.
To use, simply put this script in your activity/analytics/ folder of your Discord data dump and run it.
You may need to install matplotlib first:
pip install -U matplotlib
thrown together by rebane2001
@rebane2001
rebane2001 / toggle_borderless.py
Created May 11, 2024 10:08
Toggle the border of a specific window using winuser.h calls in Python
import ctypes
target_window_class = "NotITG LowLevelWindow_Win32"
target_window_title = None
SWP_NOZORDER = 0x0004
SWP_FRAMECHANGED = 0x0020
SWP_NOMOVE = 0x0002
SWP_NOSIZE = 0x0001
SWP_NOOWNERZORDER = 0x0200
@rebane2001
rebane2001 / win_resize_example.py
Created May 11, 2024 09:29
Example of using some basic winuser.h calls to get info and resize a window in Python using ctypes
import os
import time
import ctypes
from ctypes import wintypes
def get_window_title(h_wnd):
max_length = 255
title = ctypes.create_unicode_buffer(max_length)
ctypes.windll.user32.GetWindowTextW(h_wnd, title, max_length)
return title.value
@rebane2001
rebane2001 / maalehe_mäng_lõputu.html
Created February 24, 2024 19:51
Pikem versioon Maalehe mängust
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" href="https://r.muu.ee/39109/73149/index.hyperesources/homoteerull_1.png">
<meta content="Maalehe Mäng Lõputu" property="og:title" />
<meta content="Pikem versioon Maalehe mängust" property="og:description" />
<meta content="https://lyra.horse/misc/maalehe_mäng_lõputu.html" property="og:url" />
<meta content="https://r.muu.ee/39109/73149/index.hyperesources/homoteerull_1.png" property="og:image" />
@rebane2001
rebane2001 / buganizer-embed-media.user.js
Last active February 6, 2024 20:37
Makes it possible to embed images/videos on Buganizer instead of downloading them
// ==UserScript==
// @name Buganizer Embed Media
// @namespace rebane
// @match https://issuetracker.google.com/issues/*
// @match https://issues.chromium.org/issues/*
// @grant none
// @version 1.1
// @author Rebane
// @description Makes it possible to embed images/videos on Buganizer instead of downloading them (2024-02-06)
// ==/UserScript==
@rebane2001
rebane2001 / gen_data.py
Created November 27, 2023 21:18
Source code for the Chromium Money Tree Browser (https://lyra.horse/misc/chromium_vrp_tree.html), very messy :p
import json
import os
import re
import git
import itertools
data_path = "data"
repo_paths = {
"chromium": "C:/depot_tools/chromium/src",
"v8": "C:/depot_tools/v8/v8",
@rebane2001
rebane2001 / facebook-private-everything.js
Created November 26, 2023 15:00
Facebook - Set everything to "Only me" (private)
/*
This script sets every post on your Facebook profile to "Only me".
It's very hastily thrown together and will most certainly break in the future, but it should at least provide a starting point for anyone else who wants to do this.
Make sure to change your name below before running.
Run by just pasting into the JS console.
*/
const targetName = "Your Name";
const actionDelay = 1500;
const scrollDelay = 500;
@rebane2001
rebane2001 / subredditpurge-helper.user.js
Last active November 7, 2023 18:07
Edits the SubredditPurge mail to have links and an "Open all" button, autofills SubredditPurge info on the ban page if SubredditPurge hasn't been banned yet
// ==UserScript==
// @name SubredditPurge helper - reddit.com
// @namespace Rebane
// @match https://*.reddit.com/r/*/about/banned/
// @match https://*.reddit.com/message/messages/*
// @grant none
// @version 1.0.1
// @author Rebane
// @description Edits the SubredditPurge mail to have links and an "Open all" button, autofills SubredditPurge info on the ban page if SubredditPurge hasn't been banned yet (2023-11-07)
// ==/UserScript==