+1-323-909-4740 blog@hegars.com

DVB Broadcast script

#!/bin/bash #dvblast -a 2 -f 177500000 -c ch7.cfg -m QAM_64 -b 7 -e #$1 is the adaptor #$2 is the channel case $2 in ch2) freq=226500000 modu=QAM_64 ;; ch7) freq=177500000 modu=QAM_64 ;; ch9) freq=191625000 modu=QAM_64 ;; ch10) freq=219500000 modu=QAM_64 ;; ch28)...

Generate SSH keys

GENERATE NEW KEY PAIR This creates two files, A Private key (id_rsa) and Public Key (id_rsa.pub), back both up and keep secure $ ssh-keygen -t rsa -C “hegars@hegars.com”   ENABLE ACCESS TO EXISTING SERVER Create New User Create a user on the server #...

Apple mac generate voice and upload

#!/bin/bash # # to convert and upload voice prompts to asterisk using mac voice. # rate=200 voice=lee file=$1 words=$2 extype=/$3 user=root host=192.168.81.240 dst=/var/lib/asterisk/sounds/$voice$extype pem=/Users/hegars/ssh.pem #define the function to process files...

Console Plotting

Using GNUPLOT (feedgnuplot for pipe loading) and SHUF (for sample data) to generate graphs on a console shuf -r -n 50 -i 0-9 | feedgnuplot --lines --terminal 'dumb 160,40' --exit Links GNUPLOT...

FFMPEG

Pull in an iso and stream it ffmpeg -re -i MWC-D01.iso -map 0:1 -map 0:4 -c:v:1 copy -c:a:0 libmp3lame -b:a:4 192k -f mpegts udp://192.168.254.1:1234 fmpeg -re \ -i MWC-D01.iso \ -map 0:1 -map 0:4 \ -c:v:1 copy \ -c:a:0 libmp3lame -b:a:4 192k \ -f mpegts...