Skip to content

Instantly share code, notes, and snippets.

Verifying I am +jtsage on my passcard. https://onename.com/jtsage
@jtsage
jtsage / DateboxHelper.php
Last active November 14, 2019 01:53
jtsage-datebox CakePHP (3.x) Helper Class - has multiple dependencies.
<?php
/* src/View/Helper/DateboxHelper.php (using other helpers - specifically, friendsofcake bootstrap form) */
namespace App\View\Helper;
use Cake\View\Helper;
use BootstrapUI\View\Helper\FormHelper as FormHelper;
use Cake\I18n\Time;
@jtsage
jtsage / sendmail.asterisk
Created March 21, 2020 21:14
Asterisk Voicemail --> MP3 w/ IBM bluemix trasnscription
#!/bin/sh
# Asterisk Voicemail -> MP3 And IBM Bluemix Transscription
#
# Based on multiple peoples work:
# Asterisk voicemail attachment conversion script
# Revision history :
# 22/11/2010 - V1.0 - Creation by N. Bernaerts
# 07/02/2012 - V1.1 - Add handling of mails without attachment (thanks to Paul Thompson)
# 01/05/2012 - V1.2 - Use mktemp, pushd & popd
# 08/05/2012 - V1.3 - Change mp3 compression to CBR to solve some smartphone compatibility (thanks to Luca Mancino)