Skip to content

Instantly share code, notes, and snippets.

View rebane2001's full-sized avatar
🦊

Lyra Rebane rebane2001

🦊
View GitHub Profile
@rebane2001
rebane2001 / pdubhelper4.html
Last active September 4, 2024 22:58
For making ponydubs
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<script crossorigin="anonymous"
src="https://cdn.jsdelivr.net/npm/@ffmpeg/ffmpeg@0.10.1/dist/ffmpeg.min.js"></script>
<title>Pdubhelper4</title>
@rebane2001
rebane2001 / plot_discord_predictions.py
Last active September 3, 2024 14:30
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
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="icon" type="image/x-icon" href="/favicon.ico">
<title>Rebane's Discord Colored Text Generator</title>
<meta charset="UTF-8">
<meta name="description" content="Rebane's Discord Colored Text Generator">
<meta name="author" content="rebane2001">
<style>
/*
@rebane2001
rebane2001 / README.md
Last active June 29, 2024 01:01 — forked from corentinbettiol/README.md
Tiny js code that will simulate a 3D view of your elements, like firefox used to do.

example gif

Explanations

This script will get the computed background color of your body, and then will create shadows darker than your background (if you have a light background), or lighter than your background (if you have a dark background). If the body does not have a background, the script will take 160 as the default value for red, green and blue.

It will then add a border, a box-shadow, a padding and a margin to each element of your page, and will use the cool rotate3d css function to tilt your website.

Install

@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 / 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 / discord-pin-compressor.html
Last active May 2, 2024 23:01
This is a simple app that converts Discord pins to Discord messages, which is useful for example when you've reached the pin limit and wish to have more room for new pins.
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="icon" type="image/x-icon" href="/favicon.ico">
<title>Rebane's Discord Pin Compressor</title>
<meta charset="UTF-8">
<meta name="description" content="Rebane's Discord Pin Compressor">
<meta name="author" content="rebane2001">
<style>
/*

Hack.lu CTF 2023 - Safest Eval (Python jail escape)

Challenge by: realansgar
Writeup by: rebane2001

Overview

The challenge consists of a simple Flask webapp that lets you eval arbitrary Python code in a jail in order to evaluate your solution to a leetcode-style programming challenge. The flag can be retrieved by running the /readflag setuid program. The source code was provided.

Flash challenge website