Skip to content

Instantly share code, notes, and snippets.

#!/bin/sh
#Prerequisites
sudo apt update && sudo apt -y upgrade
sudo apt-get install git curl wget \
libnewt-dev libssl-dev libncurses5-dev \
subversion libsqlite3-dev build-essential \
libjansson-dev libxml2-dev uuid-dev
#Download the latest release of Asterisk 15 to your local system for installation.

Tested 2024.07.28 Rasspberry Pi model 3B, Raspberry Pi OS (Legacy) Lite Release date: July 4th 2024, System: 32-bit Kernel version: 6.1 Debian version: 11 (bullseye)

All actions are performed from under root

sudo -i

Also works without token and entering the following command

TOKEN=Your TOKEN
def uniques(source, fmap=lambda x: x, restrictOn=lambda x: x):
"""Map a function over an iterable, and yield elements which are
unique according to the given restriction function.
An exception raised in the mapping or restriction function causes
that element to be silently skipped.
"""
seen = set()
for thing in source: