Skip to content

Instantly share code, notes, and snippets.

@tanwald
tanwald / serenditree-loc.txt
Last active December 28, 2025 23:42
lines of code in github.com/serenditree
-------------------------------------------------------------------------------
Language Files Lines Code Comments Blanks
-------------------------------------------------------------------------------
YAML 173 237350 235934 229 1187
Java 152 9313 6589 1132 1592
TypeScript 126 20069 6485 12086 1498
XML 73 2437 2230 18 189
Shell 52 6078 4775 814 489
Sass 49 1747 1394 72 281
HTML 42 1405 1357 19 29
@tanwald
tanwald / bind.sh
Last active March 16, 2024 13:28
gnome mouse wheel hack for overview triggering and workspace switching without overview
#!/usr/bin/env bash
########################################################################################################################
# INSTALLATION
########################################################################################################################
BIND_SERVICE="[Unit]
Description=binding mouse events to keyboard shortcuts
After=display-manager.service
[Service]
@tanwald
tanwald / glacier.sh
Last active May 9, 2021 16:08
glacier cli - commandline interface for amazon glacier backups
#!/usr/bin/env bash
########################################################################################################################
# USAGE
########################################################################################################################
function usage() {
echo "usage: glacier.sh [backup [init]] [clean [all]] [delete-all] [delete-archive ID] [doctor] [get KEY] "
echo " [help] [last-backup] [list-archives [all]] [list-vaults] [log [all]] [restore-snapshot] "
echo " [set KEY VALUE] [tree-hash ARCHIVE]"
@tanwald
tanwald / darcula-color-scheme.xml
Last active June 15, 2020 14:56
darcula gtksourceview color scheme
<?xml version="1.0" encoding="UTF-8"?>
<style-scheme id="darcula" name="Darcula" version="1.0">
<author>Paul Neulinger</author>
<description>Darcula color scheme</description>
<!-- COLORS -->
<color name="orange" value="#cc7832"/>
<color name="yellow" value="#ffc66d"/>
<color name="purple" value="#9876aa"/>
<color name="text-fg" value="#a9b7c6"/>
<color name="text-bg" value="#2b2b2b"/>
@tanwald
tanwald / window.py
Last active December 15, 2021 22:18
window cli - manage windows from the command line
#!/usr/bin/env python3
import logging
import re
import shlex
import time
from argparse import ArgumentParser
from functools import reduce
from math import sqrt
from os import path, devnull as DEVNULL