Skip to content

Instantly share code, notes, and snippets.

View x86-39's full-sized avatar

🌸 Jasmijn Emilia Rosalina x86-39

View GitHub Profile
@x86-39
x86-39 / LinuxDistros.md
Last active June 30, 2021 02:59
Linux Distro Recommendations & Notes

Linux Distros

Desktop

Ubuntu
= GNOME desktop installed by default
(+) Is almost always supported, very widespread
(+) Pretty easy to get started with
(+) Feels polished and stable
(-) Pretty bloated with stuff you probably won't use

@x86-39
x86-39 / Powercord-Plugins-Install.sh
Last active August 13, 2021 14:40
My Powercord plugins
#!/bin/bash
## Execute from `powercord/src/Powercord`
## Plugins
git clone https://github.com/BenSegal855/webhook-tag plugins/webhook-tag
git clone https://github.com/Vap0r1ze/vpc-shiki plugins/vpc-shiki
git clone https://github.com/RazerMoon/vcTimer plugins/vcTimer
git clone https://github.com/powercord-community/rolecolor-everywhere plugins/rolecoler-everywhere
git clone https://github.com/GriefMoDz/scrollable-autocomplete plugins/scrollable-autocomplete
@x86-39
x86-39 / .bashrc
Created August 17, 2021 14:34
Useful bash/zsh functions
# Create a directory and enter it
# Usage:
# mkcd dirname
mkcd ()
{
mkdir -p -- "$1" && cd -P -- "$1"
}
# Resursively run sed on files
# Usage:
@x86-39
x86-39 / .bashrc
Created September 7, 2021 18:08
Minecraft get profile shell command
# Add this to your .bashrc/.zshrc, or wherever you keep functions!
mc-get ()
{
LENGTH=$(echo ${1} | awk '{print length}' )
if [[ $LENGTH -le 20 ]] || [[ $LENGTH -eq 32 ]] || [[ $LENGTH -eq 36 ]]; then
if [[ $(echo ${1} | sed 's,-,,g' | awk '{print length}' ) -eq 32 ]]; then
MCUUID=${1}
MCUSERNAME=$(curl -s https://api.mojang.com/user/profiles/${1}/names | jq ".[-1].name" | sed 's,",,g')
else
@x86-39
x86-39 / deepfry.sh
Created September 15, 2021 16:59
ImageMagick command to deep fry an image
convert ${INPUT} \
-sharpen 0x5.0 \
-modulate 100,150 \
-resize 50% \
-resize 200% \
-contrast \
+noise poisson \
-equalize \
-sharpen 0x4.0 \
-fill red -tint 90 \
@x86-39
x86-39 / Animate.md
Last active October 2, 2021 23:38
Stitch together PNG files to an animated GIF with ffmpeg

Create GIF

This takes files in the current directory named like 1.png 2.png 3.png ... and creates a gif out.gif.

ffmpeg -i ./%001d.png -vf palettegen=reserve_transparent=1 -f apng pipe:1 \
| ffmpeg -framerate 3 -i ./%001d.png -i - -lavfi paletteuse=alpha_threshold=128 -gifflags -offsetting out.gif

Change the framerate by changing -framerate 3 to your desired value.
Change the directory by changing the ./%001d.png in both parts of the command.
Change the output location by changing out.gif at the end of the command.

@x86-39
x86-39 / AlarmConfig.md
Last active October 2, 2021 23:33
Home Assistant Morning Alarm

Home Assistant Card & Automation for a script at a specified time, the time can be configured through a card and be disbabled. A different automation can automatically re-enable it if it would have ran but was disabled.

configuration.yaml

input_boolean:
  alarm_enabled:
    name: "Enable Alarm Tomorrow"
    initial: on
    icon: mdi:theme-light-dark
@x86-39
x86-39 / OpenSourceAndroidApps.md
Last active September 29, 2023 17:21
Open Source Android Apps I use

Open Source Android Apps

@x86-39
x86-39 / FirefoxExtensions.md
Last active October 12, 2021 11:09
Firefox Extensions I use

Firefox extensions

@x86-39
x86-39 / MinecraftMods.md
Last active July 16, 2024 00:25
Minecraft Mods for vanilla servers I use
Current Tested Version: 1.19.2

Requirements

Mod Launcher

Libraries

Check the mods description for if these dependencies are needed!