Skip to content

Instantly share code, notes, and snippets.

View mja00's full-sized avatar

Mart mja00

View GitHub Profile
@mja00
mja00 / config.json
Created April 3, 2025 01:18
Snowblower config
{
"branches": {
"release": {
"type": "release"
},
"dev": {
"type": "dev"
},
"april-fools/2024": {
"type": "all",
@mja00
mja00 / bad-yt.css
Last active December 23, 2024 01:09
/* Just video player */
.ytp-cairo-refresh-signature-moments .ytp-play-progress {
background: #f03 !important;
}
/* Include thumbnail player */
.ytp-cairo-refresh .ytp-swatch-background-color, .YtProgressBarLineProgressBarPlayedRefresh, ytd-thumbnail-overlay-resume-playback-renderer[enable-refresh-signature-moments-web] #progress.ytd-thumbnail-overlay-resume-playback-renderer {
background: var(--yt-spec-static-brand-red, #f03);
}
@mja00
mja00 / tikfinity.ps1
Created February 20, 2023 19:54
This will install a Paper server with the ServerTap plugin into a folder of your choosing.
####################################################
# Author: mja00
# Version: 1.0
# Date: 2023-02-20
# Description: TikTok Tikfinity Server Installer
####################################################
# Check if winget is installed
$winget = Get-Command winget -ErrorAction SilentlyContinue
if ($winget -eq $null) {
@mja00
mja00 / swap_java.ps1
Created March 29, 2022 20:49
Powershell Java Swapper
# Create a list of java versions to pick from
$root_java = "C:\Program Files\Eclipse Adoptium" # This makes it easier to change the location of the java folder
$global:java_version_hashtable = [ordered]@{
"8" = "jdk-8.0.312.7-hotspot"
"11" = "jdk-11.0.13.8-hotspot"
"16" = "jdk-16.0.2+7"
"17" = "jdk-17.0.1.12-hotspot"
"18" = "jdk-18.0.0.36-hotspot"
}
@mja00
mja00 / oneliner.sh
Created November 25, 2021 16:08
Download latest Paper one liner
# Downloads latest version and zips it into a nice little package :)
latestVersion=$(curl -X GET "https://papermc.io/api/v2/projects/paper" -H "accept: application/json" --silent | jq '.versions[-1]' | sed 's/"//g'); versionURL=$(echo "" | awk -v latestVersion="$latestVersion" '{print $1"https://papermc.io/api/v2/projects/paper/versions/"latestVersion}'); buildnumber=$(curl -X GET $versionURL -H "accept: application/json" --silent | jq '.builds[-1]'); buildurl=$(curl -X GET "https://papermc.io/api/v2/projects/paper/versions/${latestVersion}/builds/${buildnumber}" -H "accept: application/json" --silent | jq '.downloads.application.name' | sed 's/"//g' | awk -v latestversion="$latestVersion" -v buildnumber="$buildnumber" '{print "https://papermc.io/api/v2/projects/paper/versions/"latestversion"/builds/"buildnumber"/downloads/"$1}'); curl -JO $buildurl; jarname=$(find . -name *.jar -exec basename {} .jar \;); zip -m $jarname.zip `find . -name *.jar -print`; sha256sum $jarname.zip
# Downloads latest and doesn'
@mja00
mja00 / paperdownload.bash
Last active June 21, 2021 01:27
Download latest Paper build on v2 api
latestVersion=$(curl -X GET "https://papermc.io/api/v2/projects/paper" -H "accept: application/json" --silent | jq '.versions[-1]' | sed 's/"//g'); versionURL=$(echo "" | awk -v latestVersion="$latestVersion" '{print $1"https://papermc.io/api/v2/projects/paper/versions/"latestVersion}'); buildnumber=$(curl -X GET $versionURL -H "accept: application/json" --silent | jq '.builds[-1]'); buildurl=$(curl -X GET "https://papermc.io/api/v2/projects/paper/versions/${latestVersion}/builds/${buildnumber}" -H "accept: application/json" --silent | jq '.downloads.application.name' | sed 's/"//g' | awk -v buildnumber="$buildnumber" -v latestVersion="$latestVersion" '{print "https://papermc.io/api/v2/projects/paper/versions/"latestVersion"/builds/"buildnumber"/downloads/"$1}'); curl -JO $buildurl