Skip to content

Instantly share code, notes, and snippets.

View EDM115's full-sized avatar
:electron:
4 months internship

EDM115 EDM115

:electron:
4 months internship
View GitHub Profile
@rxri
rxri / spicetify_v8_explanation.md
Last active April 24, 2025 12:08
Technical explanation of V8 Snapshot in Spotify

Hi fellow reader,

I'm ririxi, core maintainer of spicetify. Some people asked me to do a technical explanation of what spotify shipped with macOS Intel versions. This would be my first time writing a post like this, so I apologize for any inscriptions.

What is V8 context snapshot?

Spotify under the hood uses CEF (Chromium Embedded Framework) which is a framework around chromium, essentially electron but for C++. Chromium uses a V8 which is a Javascript engine created by Google. V8 can generate serialized representation (bytecode) of the V8 engine's heap. It contains pre-initialized JavaScript objects and functions.

@rebane2001
rebane2001 / plot_discord_predictions.py
Last active March 8, 2025 05:47
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
@EDM115
EDM115 / sudo on PowerShell.md
Last active May 6, 2024 21:07
sudo on PowerShell

sudo on PowerShell

Microsoft plans on adding a sudo like command on windows (info and controversy)
But what if... you could already use it ? 🤭

Prerequisites

  • Have the newer version of powershell installed.
    If you plan on using the old one, replace pwsh with powershell
@EDM115
EDM115 / Discord on Linux : auto upgrade and auto install BetterDiscord.md
Last active March 26, 2025 09:19
Discord on Linux : auto upgrade and auto install BetterDiscord

Discord on Linux : auto upgrade and auto install BetterDiscord

If you've installed discord on Linux through apt, you know how much of a pain it is to manually download and install it every now and then. It's even worse if you're having to reinstall BetterDiscord every time
So here's 2 simple scripts to fix this :

launch-discord.sh

  • Versatile script to launch discord
  • Auto launches the upgrade script if needed (have to be in the same folder)
  • Detaches the Discord instance from the terminal once done
@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active April 30, 2025 01:03
Complete Recent Discord Quest

Complete Recent Discord Quest

Note

This does not works in browser for non-video, non-activity quests! For stream/play quests use the desktop app!

Note

When doing stream quests, you need at least 1 other account in the vc!

How to use this script:

  1. Accept a quest under Discover -> Quests
@EDM115
EDM115 / VS Code : install extensions from a file.md
Last active April 21, 2024 16:45
VS Code : install extensions from a file

VS Code : install extensions from a file

  • To export all installed extensions
code --list-extensions > extensions.txt
  • On linux, think to do
chmod +x vs-code-install-extensions.sh
@OrionReed
OrionReed / dom3d.js
Last active April 19, 2025 12:06
3D DOM viewer, copy-paste this into your console to visualise the DOM topographically.
// 3D Dom viewer, copy-paste this into your console to visualise the DOM as a stack of solid blocks.
// You can also minify and save it as a bookmarklet (https://www.freecodecamp.org/news/what-are-bookmarklets/)
(() => {
const SHOW_SIDES = false; // color sides of DOM nodes?
const COLOR_SURFACE = true; // color tops of DOM nodes?
const COLOR_RANDOM = false; // randomise color?
const COLOR_HUE = 190; // hue in HSL (https://hslpicker.com)
const MAX_ROTATION = 180; // set to 360 to rotate all the way round
const THICKNESS = 20; // thickness of layers
const DISTANCE = 10000; // ¯\\_(ツ)_/¯
@0xdevalias
0xdevalias / serum-changelog.md
Last active April 26, 2025 17:11
Xfer Records - Serum - Changelog / Release Notes

Xfer Records - Serum - Changelog / Release Notes

Note: This was originally extracted from the HTML returned from the https://xferrecords.com/api/update_check/serum API, converted to markdown, and then formatted manually / cleaned up a bit further. It probably won't be kept strictly up to date, but it should at least serve as a useful historical record.

Note: For releases that I had access to the *.exe/*.dmg/*.pkg files for, I have also included the SHA256 hashes of the official downloads; so that they can be used to verify the authenticity of any versions that you might come across. At time of writing, the first version below that includes the hashes is 1.36b8 (October 11 2023)

@Steveplays28
Steveplays28 / distant_horizons_shader_compatibility_information.md
Last active April 28, 2025 14:42
Distant Horizons shader compatibility info

Distant Horizons shader compatibility information

Distant Horizons v2.0.0 (and up) shader compatibility information.

v2

Install guide

Fabric

@irazasyed
irazasyed / outbound-email-with-cloudflare.md
Last active April 27, 2025 13:49
Using Gmail SMTP with Cloudflare Email Routing: A Step-by-Step Guide

Using Gmail SMTP with Cloudflare Email Routing: Step-by-Step Guide

Learn how to send emails through Gmail SMTP with Cloudflare Email Routing in this comprehensive guide.

Step 1: Enable 2-Factor Authentication

To proceed with this method, ensure that you have enabled two-factor authentication for your Google account. If you haven't done so already, you can follow the link to set it up → Enable 2FA in your Google account.

Step 2: Create an App Password for Mail