Skip to content

Instantly share code, notes, and snippets.

@alexcr-telecom
alexcr-telecom / wav-to-mp3.sh
Created June 11, 2024 16:05 — forked from jmpinit/wav-to-mp3.sh
Bash script to find and convert WAV files to MP3s to reduce space.
#!/bin/bash
# Converts every WAV file found to MP3 and deletes the original WAV file
set -o errexit
SAMPLE_RATE=44100
BITRATE=192k
WAVS=$(find . -name "*.wav")
@alexcr-telecom
alexcr-telecom / gist:73e91ae02cd049364360515bcb551513
Created June 14, 2023 14:16 — forked from wheezydial/gist:687685e4a0c28d507f1b
Install A2billing on Debian Wheezy Status Alpha Tutorial
install realtime Kernel and Kernel Headers:
apt-get install -y linux-image-rt-amd64 linux-headers-rt-amd64
remove the old kernel
apt-get remove -y linux-image-3.2.0-4-amd64 linux-headers-3.2.0-4-amd64
update-grub ##reconfigure the bootloader for the new Kernel
A2BILLING INSTALLATION GUIDE
0. Sypnosis
A2Billing is a voip billing software licensed under the AGPL 3. Copyright (C) 2004-2015 - Star2billing S.L. http://www.star2billing.com/
This document focuses on the installation of A2Billing system for the Asterisk open source PBX. The document covers the installation and basic configuration of A2Billing. A2billing is an open source implementation of a telecommunication billing and added value services platform.
A2billing is a LAMP (Linux/Apache/Mysql/PHP) application that interfaces with Asterisk using both the AMI and AGI interfaces.
This documentation has been tested using Ubuntu 12.04.
@alexcr-telecom
alexcr-telecom / Documentation.md
Created September 23, 2021 18:26 — forked from KartikTalwar/Documentation.md
Rsync over SSH - (40MB/s over 1GB NICs)

The fastest remote directory rsync over ssh archival I can muster (40MB/s over 1gb NICs)

This creates an archive that does the following:

rsync (Everyone seems to like -z, but it is much slower for me)

  • a: archive mode - rescursive, preserves owner, preserves permissions, preserves modification times, preserves group, copies symlinks as symlinks, preserves device files.
  • H: preserves hard-links
  • A: preserves ACLs
@alexcr-telecom
alexcr-telecom / scammerJammer.sh
Created June 30, 2020 10:01 — forked from jarogers/scammerJammer.sh
bash script to generate asterisk call files. Used to congest scammers inbound trunks.
#!/bin/bash
asteriskSpoolPath=/var/spool/asterisk/outgoing
slow ()
{
if [ -z "$2" ]
then
@alexcr-telecom
alexcr-telecom / install-freepbx.sh
Created February 14, 2020 09:03 — forked from tomfanning/install-freepbx.sh
FreePBX installation script for CentOS 7 / AWS - two short non-interactive parts
#!/bin/bash -e
# set up a swapfile
dd if=/dev/zero of=/1GB.swap bs=1024 count=1048576
mkswap /1GB.swap
chmod 0600 /1GB.swap
swapon /1GB.swap
echo "
/1GB.swap none swap sw 0 0" >> /etc/fstab
echo "
apt-get -y autoremove
apt-get -y update
apt-get -y upgrade
# Some Utils
apt-get install -y curl vim-nox
# PJSIP
#!/bin/bash
yum install -y wget tcl
########
OLD_PWD="${PWD}"
########
@alexcr-telecom
alexcr-telecom / convert.sh
Created February 1, 2018 10:42 — forked from akost/convert.sh
Bash script for recursive file convertion windows-1251 --> utf-8
#!/bin/bash
# Recursive file convertion windows-1251 --> utf-8
# Place this file in the root of your site, add execute permission and run
# Converts *.php, *.html, *.css, *.js files.
# To add file type by extension, e.g. *.cgi, add '-o -name "*.cgi"' to the find command
find ./ -name "*.php" -o -name "*.html" -o -name "*.css" -o -name "*.js" -type f |
while read file
do
#!/usr/bin/env python
# -*- coding: utf-8 -*-
#
# asterisk.py
#
# Copyright 2014 James Finstrom<jfinstrom at gmail>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or