Skip to content

Instantly share code, notes, and snippets.

View JacksonChen666's full-sized avatar
⌨️
⌥⇧⌘⎋

Jackson JacksonChen666

⌨️
⌥⇧⌘⎋
View GitHub Profile
@JacksonChen666
JacksonChen666 / stumbling.md
Last active July 3, 2022 13:19 — forked from tbiehn/stumbling.md
Faster Matrix Synapse - Debian - Nginx, Postgres, PyPy, & Workers

Faster Synapse (v0.33.0)

Quickstart guides get you a slow Synapse.

This is mostly a delta guide, unfortunately - you'll need to read all the other things to get this to work.

If you already have a Synapse server instance running, and you're going to switch from sqlite to postgres... Use Synapse's migration script. If you don't use the migration script Very Bad Things are supposed to happen.

Guide Assumptions

/etc/matrix-synapse/ Contains .yaml, homeserver.yaml, *.log.conf, etc.

@JacksonChen666
JacksonChen666 / README.md
Last active March 24, 2022 09:21
Leaked Discord Bot Token (this is a test)

Leaked Discord Bot Token

But why?

I wanted to test how fast the discord bot token detection is. I did it by creating a useless bot, and then just intentially leaked the token on gist of github on this account.

The token detection is too fast. It basically instantly found it, before I could even link my email with thunderbird.

I went on the developers site again, to see that the token hasn't changed. They claim that it has been reset (or invalidated), but no difference even after reloading.

The test has concluded. The bot has been deleted.

@JacksonChen666
JacksonChen666 / Replay Mod tmcpr.tcl
Last active December 10, 2020 12:56
This is a binary template file for HexFiend for replay mod tmcpr files.
# Replay Mod tmcpr format by JacksonChen666
# Format Specification: https://github.com/ReplayMod/ReplayMod/issues/49#issuecomment-447420151
big_endian;
requires 0 "00 00 00 00 00 00 00 2D 02";
move 9;
section "Player" {
ascii [uint8 "UUID Size"] "UUID";
sectionvalue [ascii [uint8 "Size"] "Username"];
@JacksonChen666
JacksonChen666 / Helps.py
Last active April 15, 2021 08:46
Replace discord.py default help with a better looking version of it.
# Find it here: https://github.com/JacksonChen666/Discords-Essentials/blob/master/Cogs/Helps.py
# This is used as a cog, and seprate from other files.
# From https://gist.github.com/InterStella0/b78488fb28cadf279dfd3164b9f0cf96 and I did it incorrectly.
# This also temporaily replaces any help command and reverts when unloaded.
import discord
from discord.ext import commands
class Helps(commands.MinimalHelpCommand):
async def send_pages(self):
@JacksonChen666
JacksonChen666 / Join Zoom.scpt
Last active December 8, 2023 22:30
Join zoom at the speed of computers (AppleScript)
# It is recommended that you save this script as an application, so you don't have to open Script editor.
(*
It all started when I wanted to join zoom faster than a human could do with no prompt like how I expected like this.
I first discovered zoom.us's URL scheme to join meeting, but when I found out it doesn't work, I started to make this program.
After this all of stuff, I finally have something that is constantly updated.
After this pandemic is over, development might slow down or become discontinued.
*)
global meetingNames, meetingIDs, meetingPwds, wname
# Compiling the app will reset all your saved meetings!
property meetingNames : {}