Skip to content

Instantly share code, notes, and snippets.

#! /usr/bin/python
print("*********************************************************************")
print("Cisco IOU License Generator - Kal 2011, python port of 2006 C version")
print("Modified to work with python3 by c_d 2014")
import os
import socket
import hashlib
import struct
# get the host id and host name to calculate the hostkey
@furriest
furriest / test.liq
Created November 13, 2023 09:51 — forked from gilou/test.liq
Liquidsoap script for a simple webradio
socket = "/home/ubuntu/demo/liq.sock"
logfile = "/home/ubuntu/demo/liq.log"
set("log.level", 4)
set("log.file.path", logfile)
# Print log messages to the console,
# can also be done by passing the -v option to liquidsoap.
set("log.stdout", log_stdout)
# Use the telnet server for requests