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 / 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 / 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 / deno.json
Last active February 7, 2025 01:10
Deno Configuration
{
"bench": {
"include": ["./bench/*.ts", "./bench/**/*.ts"]
},
"compilerOptions": {
"allowUnreachableCode": false,
"allowUnusedLabels": false,
"exactOptionalPropertyTypes": true,
"noErrorTruncation": true,
"noFallthroughCasesInSwitch": true,
@glektarssza
glektarssza / odinfmt.json
Last active March 27, 2025 19:39
odinfmt Configuration
{
"$schema": "https://raw.githubusercontent.com/DanielGavin/ols/master/misc/odinfmt.schema.json",
"brace_style": "_1TBS",
"character_width": 80,
"convert_do": false,
"exp_multiline_composite_literals": false,
"indent_cases": false,
"inline_single_stmt_case": false,
"newline_limit": 1,
"newline_style": "LF",
@glektarssza
glektarssza / Makefile
Last active July 5, 2024 18:56
Odin Makefile Template
#-- Project Settings
PROJECT_NAME := # TODO: Fill this in
PROJECT_DESCRIPTION := # TODO: Fill this in
PROJECT_VERSION := # TODO: Fill this in
SOURCE_DIR := ./src/
TESTS_DIR := ./tests/
BUILD_DIR := ./build/
#-- Target Configuration
EXE_NAME := # TODO: Fill this in
@glektarssza
glektarssza / cleanup-merged-branches.sh
Last active December 15, 2023 15:42
One-line Cleanup Merged Git Branches
git remote prune origin && git branch --merged | sed -rne '/(^\*|main$)/d;p' | xargs -n1 git branch -d
@glektarssza
glektarssza / rustfmt.toml
Last active April 26, 2024 15:45
rustfmt Configuration
unstable_features = true
edition = "2021"
newline_style = "Unix"
error_on_line_overflow = false
error_on_unformatted = false
brace_style = "SameLineWhere"
control_brace_style = "AlwaysSameLine"
max_width = 80
comment_width = 80
format_code_in_doc_comments = true
@glektarssza
glektarssza / mods.json
Last active August 8, 2023 13:07
Oxygen Not Included Mod List
{
"version": 1,
"mods": [
{
"label": {
"distribution_platform": 1,
"id": "2493100777",
"title": "Pip Plant Overlay",
"version": 1645431313
},
@glektarssza
glektarssza / .clang-format
Last active August 8, 2023 13:05
clang-format Configuration
---
Language: Cpp
# BasedOnStyle: LLVM
AccessModifierOffset: -4
AlignAfterOpenBracket: Align
AlignArrayOfStructures: None
AlignConsecutiveMacros: None
AlignConsecutiveAssignments: None
AlignConsecutiveBitFields: None
AlignConsecutiveDeclarations: None
@glektarssza
glektarssza / .prettierrc.js
Last active June 18, 2024 13:49
Typescript + ESlint Configs
module.exports = {
arrowParens: "always",
bracketSameLine: true,
bracketSpacing: false,
endOfLine: "lf",
htmlWhitespaceSensitivity: "css",
jsxSingleQuote: true,
overrides: [
{
files: [