Skip to content

Instantly share code, notes, and snippets.

View svin24's full-sized avatar
🏗️
You can just do things

svin svin24

🏗️
You can just do things
  • Greece
  • 13:22 (UTC +02:00)
View GitHub Profile
#!/usr/bin/env python3
import csv
from collections import defaultdict
from decimal import Decimal, InvalidOperation, ROUND_HALF_UP
from pathlib import Path
import argparse
def parse_args():
p = argparse.ArgumentParser(
description="Aggregate total received per recipient from each donor."
@svin24
svin24 / zen-install.sh
Created December 7, 2025 08:05
A local zen install script in case you don't like using flatpak browsers.
#!/usr/bin/env bash
set -euo pipefail
INSTALL_DIR="$HOME/.local/zen"
BIN_DIR="$HOME/.local/bin"
DESKTOP_FILE="$HOME/.local/share/applications/zen.desktop"
ICON_DIR="$HOME/.local/share/icons/hicolor/128x128/apps"
echo "Installing/Updating Zen Browser → $INSTALL_DIR"
echo
{ pkgs, ... }:
{
programs.waybar = {
enable = true;
settings = {
mainBar = {
layer = "top";
position = "top";
height = 26;
@svin24
svin24 / fdm.nix
Created March 15, 2025 16:24
Free Download Manager for Nix, dependencies missing,
{
lib,
stdenv,
fetchurl,
dpkg,
wrapGAppsHook,
autoPatchelfHook,
udev,
libdrm,
libpqxx,
@svin24
svin24 / update-vscodium.sh
Last active October 22, 2024 04:45
Download vscodium and install (tar.gz linux)
#!/bin/bash
# Variables
VSCODIUM_DIR="$HOME/.local/vscodium"
VSCODIUM_BIN="$HOME/.local/bin/codium"
REPO_URL="https://github.com/VSCodium/vscodium/releases/latest"
# you can also use arm64,armhf,riscv64
ARCH="x64"
# Find the latest version