Skip to content

Instantly share code, notes, and snippets.

View viral32111's full-sized avatar
🏳️‍⚧️
Creating awesome projects!

viral32111 viral32111

🏳️‍⚧️
Creating awesome projects!
View GitHub Profile
@eemunni
eemunni / paper-startup-parameters.md
Last active April 26, 2021 16:57
Paper undocumented startup parameters

Undocumented Paper startup parameters

I didn't find any website of these parameters so I decided to document these on my own. I don't know if there's more of them but atleast there are some now... Idfk why some of these are prefixed -DPaper instead of -Dpaper but I don't care enough tbh.

-Dpaper.explicit-flush Explicit Network Manager flushing (default: false)

Disables explicit network manager flushing. By default as it seems to work fine without flushing. You should only enable this if issues arise. Uses improved logic of doing the flushing on netty event loop instead on the main thread.

-DPaper.maxSignLength Limit Client Sign Length (default: 80)

Limits data that can be sent to signs as modified clients can send much more data compared to vanilla clients. Only impacts data sent from the client.

@Speedy37
Speedy37 / userChrome.css
Last active October 28, 2025 07:38
[Proton] button to tabs, sound icon, menu padding
#tabbrowser-tabs {
min-height: 33px !important;
}
.tab-label-container {
height: 29px !important;
}
/** Add small space at the top */
.tab-stack {
@Obydux
Obydux / Fabric-Quilt-Server-Optimization.md
Last active February 19, 2026 12:14
Fabric/Quilt Server Optimization

Fabric/Quilt Server Optimization

This has updated for 1.20.4, all of the optimization mods mentioned here are compatible with each other and don't affect vanilla behaviour by default.

Mods

@stonar96
stonar96 / Anti-Xray.md
Last active February 22, 2026 06:48
Recommended Paper Anti-Xray settings by stonar96

❗ This has been moved to the official PaperMC docs ❗

Link: https://docs.papermc.io/paper/anti-xray

Help: https://discord.gg/papermc






Recommended Paper Anti-Xray settings by stonar96

General

Anti-Xray can be configured per world in the paper.yml configuration file. To understand how per world configuration works please read this first. Note that after changing any settings for Anti-Xray you have to restart your server. Executing the /reload command (you should never do this) won't apply the settings to worlds that are already loaded.

@kevinoid
kevinoid / .bashrc
Created July 31, 2019 16:31
GnuPG pinentry script for terminal or graphical interface based on $PINENTRY_USER_DATA.
# ~/.bashrc: executed by bash(1) for non-login shells.
# If file exists (likely) copy fragment below into existing script:
# If stdin is a terminal
if [ -t 0 ]; then
# Set GPG_TTY so gpg-agent knows where to prompt. See gpg-agent(1)
export GPG_TTY="$(tty)"
# Set PINENTRY_USER_DATA so pinentry-auto knows to present a text UI.
export PINENTRY_USER_DATA=USE_TTY=1

How to squash an image with multiple layers in a single new one (losing history).

Enable experimental features in Docker

Using --squash requires a Docker with and API version greater than 1.13 (can be checked with docker version).

Edit /etc/docker/daemon.json adding:

  {

"experimental": true

@fnky
fnky / ANSI.md
Last active March 17, 2026 21:10
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27
@krisleech
krisleech / renew-gpgkey.md
Last active February 25, 2026 11:17
Renew Expired GPG key

Renew GPG key

Given that your key has expired.

$ gpg --list-keys
$ gpg --edit-key KEYID

Use the expire command to set a new expire date:

@MathOliveira
MathOliveira / Creating your start and stop script
Last active August 29, 2024 13:05
Creating your shell script to start/stop a Java application on Linux
With this script you can turn your jar file into a service on linux.
Change the MATH constant to the name of your application and make sure you are correctly specifying
the locationsof the files used in the variables.
For the correct operation of the script install it in the directory init.d and release its access as below:
chmod 755 *your_script*
@F21
F21 / signing-gpg-keys.md
Last active February 5, 2026 15:02
Signing someone's GPG key

This is a quick guide of the commands we use to sign someone's GPG key in a virtual key signing party.

Note: The steps cover only the technical aspects of signing someone's key. Before signing someone's key, you must verify their identity. This is usually done by showing government-issued ID and confirming the key's fingerprint

The commands will work for both GPG and GPG2.

I use Julian's key for the examples. His key id is 2AD3FAE3. You should substitute with the appropriate key id when running the commands.

Signing the key

  1. List the keys currently in your keyring: gpg --list-keys.