Skip to content

Instantly share code, notes, and snippets.

View kamack38's full-sized avatar
⌨️
Coding

Kamack38 kamack38

⌨️
Coding
  • Poland, Wrocław
  • 02:53 (UTC +01:00)
View GitHub Profile
@nikoheikkila
nikoheikkila / README.md
Last active December 14, 2025 01:16
Fish Shell function for sourcing standard .env files

envsource

⚠️ NOTE (20.5.2023): I don't really use this function at all anymore since there are now tools such as Taskfile, which reads the .env file for me sparing me the need to pollute my session with environment variables.


I've been using Fish shell for years which is great and all, but one thing that has got me frustrated is using it with .env files.

When attempting to run source .env in a project, I usually encounter this problem:

@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.

#!/bin/sh
# mihion.dk automatical Minecraft plugin update v.1.0.3.
# a shell script used to download several specific plugins, extract the archived files, move them to a specific directory.
# remove unwanted files, delete the old plugins in several server coppy the new pluginst to the respective directories.
# clean all the downloaded files and run serverl server updates scripts wich stopse the servere and update the minecraft server.
#Dir variebles
DIR1=/home/zen/pluginsupdate/
DIR2=/home/zen/pluginsupdate/files/
@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
@f3l3gy
f3l3gy / download-latest-release.ps1
Last active June 23, 2025 17:55 — forked from MarkTiedemann/download-latest-release.ps1
Download latest GitHub release via Powershell
# Download latest dotnet/codeformatter release from github
$repo = "dotnet/codeformatter"
$file = "CodeFormatter.zip"
$releases = "https://api.github.com/repos/$repo/releases"
Write-Host Determining latest release
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
$tag = (Invoke-WebRequest -Uri $releases -UseBasicParsing | ConvertFrom-Json)[0].tag_name
@qdequele
qdequele / gpg_resign.sh
Created February 24, 2018 10:33
Resign all my old commits with GPG key
#!/bin/sh
cd $1
git filter-branch --commit-filter '
if [ "$GIT_COMMITTER_EMAIL" = "[email protected]" ]
then
git commit-tree -S "$@";
fi
@umidjons
umidjons / youtube-dl-download-audio-only-on-best-quality.md
Last active January 17, 2026 17:32
Download Audio from YouTube with youtube-dl

Download Audio from YouTube

-i - ignore errors

-c - continue

-t - use video title as file name

--extract-audio - extract audio track

@matthewjberger
matthewjberger / instructions.md
Last active January 8, 2026 16:15
Install a nerd font on ubuntu

1.) Download a Nerd Font

2.) Unzip and copy to ~/.fonts

3.) Run the command fc-cache -fv to manually rebuild the font cache

@egmontkob
egmontkob / Hyperlinks_in_Terminal_Emulators.md
Last active March 1, 2026 16:31
Hyperlinks in Terminal Emulators
@MarkTiedemann
MarkTiedemann / download-latest-release.ps1
Last active July 1, 2025 17:06
Download latest GitHub release via Powershell
# Download latest dotnet/codeformatter release from github
$repo = "dotnet/codeformatter"
$file = "CodeFormatter.zip"
$releases = "https://api.github.com/repos/$repo/releases"
Write-Host Determining latest release
$tag = (Invoke-WebRequest $releases | ConvertFrom-Json)[0].tag_name