Skip to content

Instantly share code, notes, and snippets.

View Hacksore's full-sized avatar
🚀
shipping

Sean Boult Hacksore

🚀
shipping
View GitHub Profile
@Hacksore
Hacksore / instructions.md
Last active July 10, 2024 16:27
👁️‍🗨️ how to meme in Discord user list

what's stopping you from looking like this in VC?

image

Set your server name

̔

Set your avatar to this invisible image

@thesamesam
thesamesam / xz-backdoor.md
Last active July 25, 2024 09:00
xz-utils backdoor situation (CVE-2024-3094)

FAQ on the xz-utils backdoor (CVE-2024-3094)

This is a living document. Everything in this document is made in good faith of being accurate, but like I just said; we don't yet know everything about what's going on.

Background

On March 29th, 2024, a backdoor was discovered in xz-utils, a suite of software that

@aamiaa
aamiaa / RevertNewLayout.md
Last active July 7, 2024 14:56
Revert New Discord Layout

The original snippet no longer works!

On 02/09/2024 at around 8pm UTC, Discord flipped an experiment (2023-09_mobile_redesign_override_toggles) which ignores the layout toggle that this script relied on.

If you want to continue using the old layout, you can either use a modded mobile client (such as Vendetta) to disable that experiment, or downgrade to an old version of the app.

Method 1 - Downgrading (Android)

Tip

Use this one if you want a fast, beginner-friendly solution and don't mind using a version from November 2023

  1. Download version 205.15 of Discord mobile app from ApkMirror
@0atman
0atman / scoped_threads.rs
Last active March 13, 2024 11:05
Unlike non-scoped threads, scoped threads can borrow non-'static data, as the scope guarantees all threads will be joined at the end of the scope.
use std::thread;
struct User {
age: u16,
}
fn simple_thread() {
let user = User { age: 30 };
// thread::spawn(|| &user); // can't borrow `user` as thread may outlive current function
thread::spawn(|| user); // can only move into thread, then it's gone.
@dimitropoulos
dimitropoulos / pick.md
Last active October 7, 2023 21:25
Pick typehero example

The problem Pick solves

Pick is a very useful helper type that allows you to create a type by using an existing type as a starting point.

Say, for example, your codebase has a type that looks like this:

interface Pokemon {
  name: string;
  type: string;

[This portion of call begins at 25:47]

Me: I could make it really easy on you, if you think Apollo is costing you $20 million per year, cut me a check for $10 million and we can both skip off into the sunset. Six months of use. We're good. That's mostly a joke.

Reddit: Six months of use? What do you mean? I know you said that was mostly a joke, but I want to take everything you're saying seriously just to make sure I'm not - what are you referring to?

Me: Okay, if Apollo's opportunity cost currently is $20 million dollars. At the 7 billion requests and API volume. If that's your yearly opportunity cost for Apollo, cut that in half, say for 6 months. Bob's your uncle.

Reddit: You cut out right at the end. I'm not asking you to repeat yourself for a third time, but you legit cut out right at the end. "If your opportunity cost is $10 million" and then I lost you.

@deek042
deek042 / README.md
Last active February 19, 2022 02:15
DroneMobile

The following flow will create a dashboard so you remotely start, stop, lock, or unlock your Dronemobile equipped vehicle. You can set schedules and a temperature threshold. I have it set so my Suburban won't start in the morning if the outside temp is above 35(F) and only on weekdays.

You will also need the following API wrapper installed. I did not create the API wrapper and have nothing to do with it.

"drone-mobile" by Hacksore "An unofficial nodejs API wrapper for DroneMobile" https://github.com/Hacksore/drone-mobile

@kkrypt0nn
kkrypt0nn / ansi-colors-discord.md
Last active July 21, 2024 12:46
A guide to ANSI on Discord

A guide to ANSI on Discord

Discord is now slowly rolling out the ability to send colored messages within code blocks. It uses the ANSI color codes, so if you've tried to print colored text in your terminal or console with Python or other languages then it will be easy for you.

Quick Explanation

To be able to send a colored text, you need to use the ansi language for your code block and provide a prefix of this format before writing your text:

\u001b[{format};{color}m

\u001b is the unicode escape for ESCAPE/ESC, meant to be used in the source of your bot (see ). If you wish to send colored text without using your bot you need to copy the character from the website.

@ghostrider-05
ghostrider-05 / discord_app_protocols.md
Last active July 21, 2024 15:56
An unofficial list of discord app protocol routes

Discord app protocol routes

Home:

  • /: discord://-/
  • friends: discord://-/channels/@me/
  • nitro: discord://-/store
  • shop: discord://-/shop
  • message requests: discord://-/message-requests
  • family centre: discord://-/family-center
@creachadair
creachadair / chrome-encrypted-cookies.md
Last active June 27, 2024 14:09
Encryption format for Chrome browser cookies

Google Chrome Encrypted Cookies

Google Chrome stores browser cookies in an SQLite database. The database has two tables, meta containing format and version metadata, and cookies with the contents of the cookies. The cookies table uses this schema:

-- To reproduce: sqlite path/to/Cookies .schema
CREATE TABLE cookies (
   creation_utc     INTEGER  NOT NULL,  -- microseconds since epoch
   host_key         TEXT     NOT NULL,  -- domain
   name             TEXT     NOT NULL,