Skip to content

Instantly share code, notes, and snippets.

View glektarssza's full-sized avatar
🐍
Hisssssss!

G'lek Tarssza glektarssza

🐍
Hisssssss!
View GitHub Profile
@glektarssza
glektarssza / update-youtube-playlists.js
Created September 6, 2024 19:34
A little script to sync two YouTube Music playlists.
const { createInterface } = require('node:readline/promises');
const { request } = require('node:https');
/**
* The user agent to use when making requests to the YouTube API.
*/
const USER_AGENT = process.env['YOUTUBE_USER_AGENT'] ?? 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36';
/**
* The endpoint to call to perform operations on playlist items.
@glektarssza
glektarssza / main.lua
Last active September 27, 2024 15:14
A small helper for CC: Tweaked.
--- The block manipulator peripheral that will be used to work with the other
--- blocks.
local manipulator = nil
--- The RFTools Crafter Tier 3 peripheral.
local crafter = nil
--- The Storage Drawer peripheral that will store overflowing items.
local overflow_drawer = nil
@glektarssza
glektarssza / args.txt
Last active October 2, 2024 13:02
JVM Options
-XX:+UseG1GC -Dsun.rmi.dgc.server.gcInterval=2147483646 -XX:+UnlockExperimentalVMOptions -XX:G1NewSizePercent=20 -XX:G1ReservePercent=20 -XX:MaxGCPauseMillis=50 -XX:G1HeapRegionSize=32M --add-opens=java.base/sun.security.util=ALL-UNNAMED --add-opens=java.base/java.util.jar=ALL-UNNAMED -XX:+IgnoreUnrecognizedVMOptions
@glektarssza
glektarssza / bullshit-o-meter.html
Created November 12, 2024 03:09
A little speedometer-style gauge built in CSS and HTML.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>Bullshit-O-Meter</title>
<style>
.gauge {
width: 400px;
height: 200px;
background-color: #e7e7e7;
@glektarssza
glektarssza / .envrc
Last active May 4, 2025 02:00
Minecraft systemd files
#-- Put your environment variable overrides here!
@glektarssza
glektarssza / instructions.md
Created January 21, 2025 04:21
Setup instructions for Minecraft using itzg/minecraft-server
  1. Setup an environment file. Name it .env or something. More configuration options can be found here.
# Set the amount of RAM to max out at.
MEMORY=4G
# Required to access CurseForge APIs (you need to get this yourself😉)
CF_API_KEY=???
TYPE=AUTO_CURSEFORGE
# Link to the version of the mod pack you want to install (NOT THE SERVER FILES!)
CF_PAGE_URL=https://www.curseforge.com/minecraft/modpacks/all-the-mods-9/files/6045443
@glektarssza
glektarssza / gist:0387593d7eb50806ab9095d262f6379d
Created February 3, 2025 21:50
uBlock Origin Rules for hiding YouTube stuff
! Hide end cards on videos
www.youtube.com##.ytp-ce-element
! Hide playables button in sidebar
www.youtube.com##ytd-guide-section-renderer:has-text(Playables)
! Hide playables in search feed
www.youtube.com##.ytd-item-section-renderer span.ytd-rich-list-header-renderer:has-text(Playables):upward(9)
!www.youtube.com##ytd-horizontal-card-list-renderer:has-text(Playables)
! Hide shorts button in sidebar
www.youtube.com##ytd-guide-entry-renderer:has-text(Shorts)
! Hide shorts in home feed
@glektarssza
glektarssza / oh-my-posh.json
Created February 12, 2025 04:38
Oh My Posh Configuration
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"console_title_template": "{{.UserName}}@{{.HostName}} {{.Shell}} in {{.PWD}}",
"blocks": [
{
"type": "prompt",
"alignment": "left",
"segments": [
{
"type": "session",
@glektarssza
glektarssza / khinsider-dl.ps1
Created February 15, 2025 16:11
khinsider.com PowerShell One Line Downloader
# Replace "<ALBUM>" with the final path to the album to be downloaded.
(wget "https://downloads.khinsider.com/game-soundtracks/album/<ALBUM>" -O -).Split("\n") |
Select-String -Pattern 'playlistDownloadSong' -Raw -SimpleMatch |
%{
$_.TrimStart("<td class=`"playlistDownloadSong`"><a href=`"").TrimEnd("`"><i class=`"material-icons`">get_app</i></a></td>")
} |
%{
(wget "https://downloads.khinsider.com/$_" -O -).Split("\n")
} |
Select-String -Pattern 'eta.vgmtreasurechest.com' -Raw -SimpleMatch |
@glektarssza
glektarssza / blinks_custom.zsh-theme
Created April 1, 2025 01:30
Custom Blinks Oh My Zsh Theme