Skip to content

Instantly share code, notes, and snippets.

@DamianPala
DamianPala / Monokai Pro Dusk
Created January 20, 2026 15:09
Ghostty Theme: Monokai Pro Dusk
palette = 0=#222222
palette = 1=#fc618d
palette = 2=#7bd88f
palette = 3=#fce566
palette = 4=#fd9353
palette = 5=#948ae3
palette = 6=#5ad4e6
palette = 7=#f7f1ff
palette = 8=#69676c
palette = 9=#fc618d
@DamianPala
DamianPala / ghostty-theme-picker.sh
Created January 20, 2026 15:04
Ghostty Terminal Theme Picker
#!/usr/bin/env bash
set -euo pipefail
# Pick a Ghostty theme using fzf, strip "(resources)"-style suffixes,
# write it to the config, then tell the user to reload Ghostty.
#
# Requirements:
# - fzf: sudo apt install fzf
# - ghostty in PATH (unless using --user-only)
# - perl (for in-place config edits)
@DamianPala
DamianPala / vidconv.py
Last active January 8, 2026 12:07
Video Converter
#!/usr/bin/env python3
# PYTHON_ARGCOMPLETE_OK
import argparse
import json
import math
import os
import pty
import re
import shutil
import subprocess
@DamianPala
DamianPala / disk_benchmark.sh
Last active December 9, 2024 14:13
Disk benchmark script using FIO
#!/bin/bash
# This script is based on https://unix.stackexchange.com/revisions/480191/9
RUNTIME=30 # Single test duration
is_installed() {
dpkg -s "$1" &> /dev/null
}
@DamianPala
DamianPala / wsl_as_a_service.md
Last active February 8, 2026 17:05
WSL as a service with SSH access

WSL as a service with SSH access

In this tutorial, we will configure a Windows Linux subsystem that will automatically start when the system boots without requiring a user to log in. WSL is started like a daemon, without opening a terminal. It will be easily accessible via SSH.

Features

  1. WSL started as a service
  2. No user login needed
  3. No WSL terminal visible after login
#!/usr/bin/env python3
import sys
import subprocess
import argparse
from datetime import datetime
from pathlib import Path
def parse_cli_arguments():
parser = argparse.ArgumentParser(description="Calculate statistics of Quil mining.")
@DamianPala
DamianPala / setup_wireguard.sh
Last active March 9, 2026 08:46
Setup a WireGuard connection on Linux
#!/bin/bash
#
# WireGuard Setup Script
#
# Usage: setup_wireguard.sh [options] [interface]
#
# First run: Interactive setup (server or client mode)
# Next runs: Peer management menu (add/remove/list/uninstall)
#
# Arguments:
import "@stdlib/deploy";
import "@stdlib/ownable";
import "./messages.tact";
import "./jetton.tact";
contract MemeJettonLite with Jetton, Deployable {
totalSupply: Int as coins;
owner: Address;
content: Cell;