Skip to content

Instantly share code, notes, and snippets.

View EDM115's full-sized avatar
:electron:
busy with both studies and gf 🥹

EDM115 EDM115

:electron:
busy with both studies and gf 🥹
View GitHub Profile
@rebane2001
rebane2001 / plot_discord_predictions.py
Last active June 21, 2024 19: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
@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 June 15, 2024 09:00
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 July 18, 2024 15:23
Complete Recent Discord Quest

Complete Recent Discord Quest

Note

This no longer works in browser!

This no longer works if you're alone in vc! Somebody else has to join you!

Warning

There are now two quest types ("stream" and "play")! Pay attention to the instructions!

@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 July 22, 2024 08:58
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; // ¯\\_(ツ)_/¯
@jfeilbach
jfeilbach / ubuntu_22.04_motd.md
Last active July 14, 2024 07:47
Make Ubuntu 22.04 less annoying. Remove ESM Ubuntu Advantage

Ubuntu 22.04 Annoyances

Here are a few collected ways I like to customize Ubuntu 22.04 servers. I used to love Ubuntu, but I hate auto updates and snaps. They also put ads and other usless ads diguised as "news" in MOTD. ESM FUD is spread throughout the OS including simple apt functions. You do not need ESM and thus Ubuntu 22.04 has become super annoying. unattended-upgrade is an automatic installation of security (and other) upgrades without user intervention. Consider the ramifications of disabling this service.

Disable unattended upgrades

The Unattended Upgrades feature is enabled by default and it runs at system boot without the user's permission. The configuration is stored in /etc/apt/apt.conf.d/20auto-upgrades

Disable: sudo dpkg-reconfigure unattended-upgrades then a TUI will come up, select "No"

This will not permantently disable the function. After an update it will be enabled. In the file /etc/apt/apt.conf.d/20auto-upgrades change these values from 1 to 0. Even doing this it will

@SkyyySi
SkyyySi / youtube-vanced-alternatives.md
Last active July 18, 2024 02:57
A list of alternatives after the shutdown of Vanced

NONE OF THESE CLIENTS ARE VERIFIED BY ME FOR SECURITY OR ANYTHING ELSE! USE AT YOUR OWN RISK!

These are the current alternatives (with links when possible):

@blotus
blotus / log4j_exploitation_attempts_crowdsec.md
Last active December 29, 2023 12:24
IPs exploiting the log4j2 CVE-2021-44228 detected by the crowdsec community

This list is no longer updated, thus the information is no longer reliable.

You can see the latest version (from october 2022) here

@finxol
finxol / CSS_tips.md
Last active February 2, 2023 17:15
Web design tips