Skip to content

Instantly share code, notes, and snippets.

@rmueck
rmueck / downloads.txt
Created February 2, 2024 10:22 — forked from sistematico/downloads.txt
ShoutCast Scripts
Downloads 64 bits:
sc_serv: https://dl.dropbox.com/s/awj65gxyighz4ro/sc_serv2_linux_x64-latest.tar.gz?dl=1
sc_trans: https://dl.dropbox.com/s/ol88p5cwy9ivhvx/sc_trans_linux_x64_10_07_2011.tar.gz?dl=1
Downloads 32 bits:
sc_serv: [FALTANDO]
sc_trans: https://dl.dropbox.com/s/zfmfh0ahdv7mjx0/sc_trans_linux_10_07_2011.tar.gz?dl=1
Para baixar o último sc_serv vá até: https://www.shoutcast.com/BroadcastNow
@rmueck
rmueck / sc-mon.py
Last active August 19, 2023 08:56
Shoutcast monitoring for connected source using monit and M/monit
#!/usr/bin/python3
import requests
import xml.etree.ElementTree as ET
import subprocess
import sys
import datetime
import time
# Do not start sc_cast if in blackout timeframe - DSL connection is not up during this frame
@rmueck
rmueck / ssh-copy-id
Created March 11, 2020 12:16
ssh-copy-id script
#!/bin/bash
## VARIABLES
SSH_PUB_KEY=~/.ssh/id_rsa.pub
USER=$1
HOST=$2
# exit if no atributes were passed
if [ $# -eq 0 ]; then
multipleauth {
org.eclipse.jetty.jaas.spi.PropertyFileLoginModule sufficient
debug="true"
file="/etc/rundeck/realm.properties"
refreshInterval="60"
caseInsensitive="true";
com.dtolabs.rundeck.jetty.jaas.JettyCachingLdapLoginModule required
debug="true"
#### COLOUR (Solarized 256)
# default statusbar colors
set-option -g status-bg colour235 #base02
set-option -g status-fg colour166 #yellow
set-option -g status-attr default
# default window title colors
set-window-option -g window-status-fg colour244 #base0
set-window-option -g window-status-bg default
# Terminal
set -g default-terminal "screen-256color" # colors!
# History
set -g history-limit 10000
# Encoding
# set-option -g status-utf8 on
# set-option -g utf8 on
# set -g status-utf8 on
@rmueck
rmueck / check_shoutcast_v2
Created October 5, 2018 13:51 — forked from keijodputt/check_shoutcast_v2
Simple Nagios plugin to check on a SHOUTCast V2 server -- Based on 'Check SHOUTcast Server' by ChrisWi/Juliano Jeziorny
#!/bin/sh
# Nagios shoutcast plug-in
# By Juliano Jeziorny (djkadu@gmail.com)
# Rev 0.1
# 23/11/2010
# *********************************************************
# Modified and adapted for Shoutcast 2 to parse xml stats
# and detect unconnected source
# Rev 0.2 by Keijo D. Putt
# 07-Dec-2017
@rmueck
rmueck / gist:bdddc1da960db83378e92c481f6c34e0
Created August 29, 2018 16:33
Convert docbook to markdown
bundle exec asciidoctor -o - -b docbook5 doc.adoc | pandoc -f docbook -t markdown_github -o doc.md
##################################
### Custom tmux configuration ###
### by rumu ###
##################################
#
#
set -g default-terminal screen-256color
# Enable utf8
set-window-option -g utf8 on
@rmueck
rmueck / config.yaml
Created March 1, 2018 14:48
Hiera for sssd
sssd::config:
'sssd':
'domains': 'my.domain.com, ldap'
'config_file_version': 2
'services':
- 'nss'
- 'pam'
- 'ssh'
- 'autofs'
'domain/my.domain.com':