Skip to content

Instantly share code, notes, and snippets.

View youmukonpaku1337's full-sized avatar

youmukonpaku1337 youmukonpaku1337

View GitHub Profile
@youmukonpaku1337
youmukonpaku1337 / shellfetch.sh
Last active February 14, 2022 03:45
shellfetch
#!/bin/bash
# Set the variables to get distro name, distro id, etc
source /etc/os-release
packages=0
# Use the package manager to get amount of installed packages
if [ -x "$(command -v apk)" ];
then
(( packages=packages+$(apk list --installed | wc -l) ))
elif [ -x "$(command -v apt)" ]; then

Minecraft 2nd stage optimization (after installing optimization mods)

I've been hosting a minecraft server for about 2 months now, and as every fabric server owner I like optimization, and a lot of it.
For servers I have tried the Shenandoah, C4, ZGC, Shenandoah IU, Shenandoah Generational and the G1 garbage collectors mainly serverside, but I did some clientside testing too.
All of them except G1GC sucked, and I've determined that by normal usage and a test of mine.

Testing

The test I've tried:

  1. Spawn about 20 players with carpet's /player command,
@youmukonpaku1337
youmukonpaku1337 / dacvolumefix.md
Created December 26, 2022 13:24
Fixing USB DAC volume on Android.

The issue

Some USB DACs on Android phones have a quite low volume compared to when used on a Windows or Apple device.
This is because Android has a set power limit on external DACs by default and the most common DAC to have this issue is the Apple USB-C to 3.5mm jack dongle.

Solving it

It's quite easy to solve this on a rooted device with some alsamixer commands.

Requirements

A rooted Android device and a USB DAC.

@youmukonpaku1337
youmukonpaku1337 / tinker.md
Last active August 5, 2023 23:33
Android Debian Sid chroot with hardware acceleration

WARNING: THIS MAY CAUSE ISSUES WITH YOUR DEVICE

Your warranty is now void.  
I am not responsible for bricked devices, dead SD cards,  
thermonuclear war, or you getting fired because the alarm app failed.  
Please do some research if you have any concerns.  
YOU are choosing to make these modifications, and if you point  
the finger at me for messing up your device, I will laugh at you.
@youmukonpaku1337
youmukonpaku1337 / aguide.md
Created January 28, 2024 14:30
A Guide To Damage and Elements in Gunfire Reborn

This guide is mostly for Reincarnation/Endless/Boundless players, so keep that in mind.

Elemental effects and damage

First off, elements are different types of damage, which are:

Damage Types

Fire: Deals 50% extra damage to Flesh (red bar), but -25% damage to Shields (blue bar), and -25% damage to Armor (yellow bar), i.e. with a base damage of 10, to Flesh a fire weapon would do 15 damage, but to Armor or Shields it would do 7.5 damage.

Corrosion: 50% extra damage to Armor, but -25% damage to Shields and -25% damage to Flesh, i.e. to Armor a Corrosion weapon with 10 base damage would deal 15 damage, but 7.5 to Shields or Flesh.

@youmukonpaku1337
youmukonpaku1337 / beginnerguide.md
Last active August 19, 2024 19:50
Beginner's Guide to Update Skipping

This guide serves as a beginner-friendly introduction to update skipping and how to use it.

Quick note

This guide assumes you have a basic understanding of redstone and block updates.

Quick glossary

Block update - an interaction that generally informs the game something physically changed. Block update detector - something that detects a block update. Quasi connectivity - the functionality of some redstone components to power like doors.