This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" ======= DEFAULTS ======= " | |
set nocompatible | |
set textwidth=120 | |
set nowrap | |
set tabstop=4 | |
set softtabstop=4 | |
set shiftwidth=4 | |
set expandtab | |
set autoindent |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
input { | |
file { | |
path => "/var/log/jenkins/*" | |
type => "jenkins-server" | |
start_position => "beginning" | |
} | |
} | |
# The first filter munges the logs into discrete events. | |
filter { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# define a transport for mail you want to deliver | |
echo "$VALID_DOMAIN smtp:[$VALID_RELAYHOST]" > /etc/postfix/transport | |
postconf -e transport_maps = hash:/etc/postfix/transport | |
# everything else goes to a bogus relayhost, which causes a bounce | |
postconf -e relayhost = 169.254.0.0 | |
# immediately throw away all bounces | |
postconf -e maximal_queue_lifetime = 0 | |
postconf -e bounce_queue_lifetime = 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import hudson.model.* | |
// extract the version tag from the console log | |
def version_pattern = ".*\\[\\s*INFO\\s*\\]\\s+VERSION=(.*)\\s*\$" | |
def matcher = manager.getLogMatcher( version_pattern ) | |
if ( matcher?.matches() ) { | |
// add the version string to the job summary | |
def ver = matcher.group(1) | |
manager.addInfoBadge( "Version: $ver" ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
USER=$1 | |
# get the shadow hash from the user entry | |
dscl . read /Users/$USER dsAttrTypeNative:ShadowHashData | tail -1 \ | |
# remove everything but hex data and spaces | |
| tr -dc '0-9a-f ' \ |
NewerOlder