Skip to content

Instantly share code, notes, and snippets.

@CodeBrauer
CodeBrauer / mc.sh
Last active October 14, 2024 09:14
simple minecraft server status / running script for local/lan server
#!/bin/bash
# === Configuration Variables ===
SCREEN_NAME="mc" # Screen session name for Minecraft
SERVER_JAR="server.jar" # Minecraft server jar file
MEMORY="-Xmx1024M -Xms1024M" # Java memory allocation for the server
SERVER_PATH="/root/services/minecraft" # Path to your Minecraft server directory
BACKUP_PATH="/root/services/minecraft-backups" # Path to store backups
BACKUP_RETENTION_DAYS=14 # Number of days to retain backups
@CodeBrauer
CodeBrauer / t9-decoder.php
Created August 17, 2023 09:39
For a german t9 keypad. currently no checking for breaks between pressed characters.
<?php
declare(strict_types=1);
/* german T9 */
$str = '9335552224433 "2" 8444833555 4222 337777 9999886 5552886622244 3337777 6644466833663666 "64" 44466 3338887777222445552663?';
$chars = range('a', 'z');
$fourCharKeys = [7,9];
@CodeBrauer
CodeBrauer / jira-kanban-user-cards.user.js
Created August 9, 2023 11:22
In Jira Kanban boards own cards are highlighted yellow-ish to find your cards faster!
// ==UserScript==
// @name Jira highlight my kanban cards
// @namespace Violentmonkey Scripts
// @match https://*.atlassian.net/jira/software/c/projects/*/boards/*
// @grant none
// @version 1.0
// @author CodeBrauer
// @description In Jira Kanban boards own cards are highlighted yellow-ish to find your cards faster!
// @icon https://www.google.com/s2/favicons?sz=64&domain=atlassian.net
// ==/UserScript==
@CodeBrauer
CodeBrauer / paybackhelper.user.js
Last active August 2, 2023 12:59 — forked from nakami/paybackhelper.js
Turbocharge your savings! Activate all Payback coupons instantly with just one click.
// ==UserScript==
// @name Activate All Payback Coupons
// @namespace http://tampermonkey.net/
// @version 0.2
// @description Turbocharge your savings! Activate all Payback coupons instantly with just one click.
// @author nakami, CodeBrauer
// @copyright 2022 nakami
// @license GNU General Public License v2.0
// @icon https://www.google.com/s2/favicons?sz=64&domain=payback.de
// @match https://www.payback.de/coupons*
@CodeBrauer
CodeBrauer / gitlab.com-mr-diff-mark-viewed.user.js
Last active July 19, 2023 09:46
GitLab.com UserScript - Add keyboard shortcut to mark file as "Viewed".
// ==UserScript==
// @name GitLab Code Review Keyboard Shortcut mark as "Viewed" with a keyboard shortcut
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Conquer code review challenges with "v" key! - In diff view, use "v" to mark/toggle as "Viewed".
// @author CodeBrauer
// @match https://gitlab.com/*/-/merge_requests/*/diffs
// @icon https://www.google.com/s2/favicons?sz=64&domain=gitlab.com
// @source https://gist.github.com/CodeBrauer/2d5814262e53fafb4228ebcda08154d9
// @grant none
@CodeBrauer
CodeBrauer / lieferando.foodtracker.user.js
Created June 27, 2023 10:27
Lieferando Foodtrack time left in tab/document title
// ==UserScript==
// @name Lieferando show foodtracker time left in tab title
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Adds a sprinkle of excitement to your food tracking experience on Lieferando by displaying the remaining time in the tab title. Never lose track of your eagerly awaited meal again!
// @author CodeBrauer
// @match https://www.lieferando.de/foodtracker/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=lieferando.de
// @grant none
// ==/UserScript==
@CodeBrauer
CodeBrauer / datadog.user.js
Last active June 27, 2023 10:28
datadog Show organization in page title
// ==UserScript==
// @name Datadog Show organization in page title
// @namespace http://tampermonkey.net/
// @version 0.3
// @description Elevate your Datadog experience by displaying your organization in the page title. Join forces with your team and conquer the monitoring world!
// @author CodeBrauer
// @match https://app.datadoghq.eu/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=datadoghq.com
// @grant none
// @run-at document-idle
@CodeBrauer
CodeBrauer / gitlab.com-mr-approvals.user.js
Last active June 20, 2023 14:33
GitLab Userscript - Adds the count of approvals to the list view of merge requests. If more than 2, MR is
// ==UserScript==
// @name GitLab MR approval count
// @namespace http://tampermonkey.net/
// @version 0.6
// @description GitLab show merge request approvals count and own status in list view
// @author CodeBrauer
// @match https://gitlab.com/*/-/merge_requests*
// @run-at document-idle
// @icon https://www.google.com/s2/favicons?sz=64&domain=gitlab.com
// @grant none
@CodeBrauer
CodeBrauer / lieferbär.de.user.js
Last active July 24, 2023 07:33
Lieferbär Userscript - Sort by Price, add 30% discount
// ==UserScript==
// @name Sort by Price, add 30% discount
// @namespace http://tampermonkey.net/
// @version 0.3
// @description Unleash laughter and savings with Lieferbär! Discover coupon savings and sort by price for a magical food delivery experience that will leave you delighted and your wallet happy.
// @author You
// @match https://lieferbaer.de/productListing/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=lieferbaer.de
// @source https://gist.github.com/CodeBrauer/0b5056cd28e27d9f614d5328234d3ebe
// @run-at document-idle