Skip to content

Instantly share code, notes, and snippets.

@evilchili
evilchili / s.bash
Created November 29, 2021 21:15
liquidsoap controller script
#!/bin/bash -e
#
# s -- stream controller
#
# Usage:
#
# s PLAYLIST -- Switch to the specified playlist file. Starts liquidsoap if it isn't running.
# s -- Skip to a random track from the current playlist.
# s stop -- Shutdown liquidsoap
#
@evilchili
evilchili / dnd.liq
Created August 22, 2021 05:24
dnd audio streaming command and control
set("server.telnet",true)
set("request.grace_time", 3.0)
set("init.daemon.pidfile.path", "run/liquidsoap.pid")
# deeebuggin
# set("log.file.path","<script>.log")
# set up the stream
stream = crossfade(normalize(playlist.safe(
@evilchili
evilchili / .vimrc
Created August 24, 2020 17:16
evilchili's .vimrc (2020)
" ======= DEFAULTS ======= "
set nocompatible
set textwidth=120
set nowrap
set tabstop=4
set softtabstop=4
set shiftwidth=4
set expandtab
set autoindent
@evilchili
evilchili / cli.py
Last active August 2, 2018 22:50
CLI with Fire
from fire import Fire as _Fire
import sys
def Fire(target):
"""
Changing Log Levels:
To manage the logging level, you can set the LOGLEVEL environment variable before running the command.
Supported values are DEBUG, CRITICAL, ERROR, WARNING, and INFO (the default). For example:
@evilchili
evilchili / campaign timeline.txt
Created June 25, 2018 06:26
campaign timeline
% python3 reckoning/campaign.py timeline list
3.2805.1.43 W43F Magnus Enters Servitude At The library
3.3132.7.41 S41R Ara Enters The Temple Of Rillifane
3.3204.6.13 W13L Ara Encounters The Skink In Riverbend
3.3204.8.12 M12B Levani Meets Yuna
3.3205.3.36 S36W Levani Leaves The Trajte Ur Flaschz
3.3206.5.05 F5S El Astrum Public Library Destroyed
3.3206.5.08 W8S Black Tack Goblin Tribe Discovers Residium Deposit
3.3206.5.44 T44S Keen Leaves The Spectacular Spectacular
@evilchili
evilchili / gist:2465006bc469cb1b13a3e26627a3cc15
Last active June 25, 2018 03:34
telisaran calendar cli
% python reckoning/calendar.py season
BEAR
Sy Mi Wo Th Fr
01 02 03 04 05
06 07 08 09 10
11 12 13 14 15
16 17 18 19 20
21 22 23 24 25
26 27 28 29 30
31 32 33 34 35
Gro-Shun The Persuader’s Journal
Posted December 12, 2011 @ 12:33 pm by evilchili
The bones of the great beast lay half-buried in the snow, ribcage split in a toothy grin.
Blood blackens the slope all around me. Is it mine? I can’t feel my shield arm. How
long has it been snowing?
I had just left the crumbling prison fort. When I came upon it, a necromancer tried to scare me off with a show
of lightning, so I crushed his skull, stripped him naked and tossed his corpse from the parapet. His companions
Gro-Shun The Persuader’s Journal
Posted December 12, 2011 @ 12:33 pm by evilchili
The bones of the great beast lay half-buried in the snow, ribcage split in a toothy grin. Blood blackens the slope all around me. Is it mine? I can’t feel my shield arm. How long has it been snowing?
I had just left the crumbling prison fort. When I came upon it, a necromancer tried to scare me off with a show of lightning, so I crushed his skull, stripped him naked and tossed his corpse from the parapet. His companions inside faired little better; conjurors are no threat if you strike quickly. I helped myself to the potions, gems and reagents, leaving the Jarl’s bootlick to gather armfuls of enchanted wizard robes. I knew a khajit trader who would give me a few coins for them; this Lydia was useless in a fight but a serviceable pack mule.
Mules are more pleasant. Her whining followed me up the hill away from the broken spires and coin or not I was about to rip the tiny head from her body when I saw it: A blood dragon,
@evilchili
evilchili / $0.02.txt
Last active November 14, 2016 23:29
so you want a job in tech...
Some ideas about how to break into tech, from someone who did this way a long time ago.
If your résumé will not get you an interview for a technical position today, but a job in tech is what you want,
I suggest you begin building a portfolio of work that you can put on your résumé under a catch-all title like
"Freelance Consultant." The specifics are going to depend on the kind of work you want to do, but here are some ideas:
1. Contribute to FOSS projects
This is a great way to get started. Find a FOSS project or three that is interesting to you, engage with the maintainers and
tell them you're looking to help out. I've never seen an FOSS project that doesn't need contributions on technical writing,
import pkg_resources
import os
import glob
import inrospect
import sys
import re
class PluginLoader(object):
"""This is such a silly thing"""