To use docker without sudo, you need to be in the group docker.
Read the Docker docs: https://docs.docker.com/engine/install/linux-postinstall/#manage-docker-as-a-non-root-user
Here's what to do:
If it doesn't, you'll need it anyway, so just run:
| package net.marcloud.knockit.methods; | |
| import org.bukkit.Material; | |
| import org.bukkit.enchantments.Enchantment; | |
| import org.bukkit.inventory.ItemFlag; | |
| import org.bukkit.inventory.ItemStack; | |
| import org.bukkit.inventory.meta.ItemMeta; | |
| import org.bukkit.inventory.meta.SkullMeta; | |
| import java.util.ArrayList; |
| package net.marcelektro; | |
| public class Main { | |
| public static void main(String[] args) { | |
| String pog = "HELLO THERE ARE WAYYYYY TOOO MANY SPACES RIP OOF SAD"; | |
| System.out.println(trimSpaces(pog)); | |
| } |
| import json | |
| from mitmproxy import http | |
| # A script for Mitmproxy to make RocketChat client apps always work with old server versions. | |
| # by Marcelektro | |
| API_VERSION_URL = "https://your-rocket-chat/api/info" | |
| #!/bin/bash | |
| DESKTOP_FILE="/var/lib/flatpak/exports/share/applications/dev.vencord.Vesktop.desktop" | |
| # check if vesktop .desktop file exists | |
| if [[ ! -f "$DESKTOP_FILE" ]]; then | |
| echo "Error: Desktop file '$DESKTOP_FILE' not found. Are you sure you installed Vesktop via Flatpak?" | |
| exit 1 | |
| fi |
To use docker without sudo, you need to be in the group docker.
Read the Docker docs: https://docs.docker.com/engine/install/linux-postinstall/#manage-docker-as-a-non-root-user
Here's what to do:
If it doesn't, you'll need it anyway, so just run:
Having set up my (Gnome) system years ago, I took screenshots almost daily.
The ~/Pictures/Screenshots directory had over 9k items. Browsing thru them was pain.
This simple script lets you quickly organize all loose files in given directory (-d flag) into a ./<year>/<month>/<day>/<filename> structure.
| #!/bin/bash | |
| # idea: https://discord.com/channels/420877260447285259/553996465211572235/1449764195561115760 | |
| # time wasted by: Marcelektro ^_^ | |
| # if u end up using this script, comment below your funniest prompts ^_^ | |
| set -e | |
| PROMPT="$1" |