+1-323-999-6135 blog@hegars.com

Adtran Netvanta 838

  Built a custom patch cable with two 50 pin champ connectors (set for pairs 1 thur 8) and krone disconnect modules in the middle which allows you to manually busyout/fault a line using a small slice of plastic It could be used to tap into and out of the line using...

Websites Suppliers

https://www.machineryhouse.com.au/ https://www.toolspareparts.com.au/ http://www.fastenersgalore.com.au/ https://shop.duxtel.com.au/ http://www.mektronics.com.au/ https://www.rewatechnology.com/ https://www.labdirect.com.au/...

Twilio – Delete recordings

from this https://www.twilio.com/blog/2016/05/bulk-delete-your-twilio-recordings-with-python.html but updated for new API from twilio.rest import Client from datetime import datetime import os # Your Account SID from twilio.com/console account_sid = "SID" #account_sid...

FiberChannel Rescan

#!/bin/bash SLEEP_INTERVAL=300 echo "Scanning all fibre channel host adapters" for i in `ls /sys/class/fc_host` do echo "Rescanning /sys/class/fc_host/${i}:" echo " Issuing a loop initialization on ${i}:" echo "1" >...

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 #...

IPv6 – Multicast

it needs multicast to find the ll route   https://www.iana.org/assignments/ipv6-multicast-addresses/ipv6-multicast-addresses.xhtml

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...

CentOS basic setup

CentOS Install and basic setup   Install from CD   Install Xentools # mkdir /media/cdrom # mount /dev/xvdd /media/cdrom # /media/cdrom/Linux/install.sh # reboot   Set Hostname # vim /etc/sysconfig/network Edit HOSTNAME= to hostname.domain   Enable Network at boot # vi...

Asterisk Source Build

Installation of Asterisk AMI https://wiki.debian.org/Cloud/AmazonEC2Image/Jessie   PREREQS apt-get install vim screen -y apt-get install build-essential apt-get install linux-headers-$(uname -r) apt-get install libxml2 libxml2-dev openssl libssl-dev libncurses5...

YubiKey PIV Manager

Importing a SSH key to the PIV smartcard. https://developers.yubico.com/PIV/Guides/SSH_with_PIV_and_PKCS11.html PS C:\Program Files (x86)\Yubico\YubiKey PIV Manager> .\yubico-piv-tool.exe -a import-key -s 9a -i hegars.key.pem -k Enter management key: Successfully...

OpenSSL

OpenSSL Convert PEM Convert PEM to DER openssl x509 -outform der -in certificate.pem -out certificate.der Convert PEM to P7B openssl crl2pkcs7 -nocrl -certfile certificate.cer -out certificate.p7b -certfile CACert.cer Convert PEM to PFX openssl pkcs12 -export -out...

Ser2net Serial Server

apt-get install ser2net lsusb Bus 001 Device 010: ID 0557:2011 ATEN International Co., Ltd UC-2324 4xSerial Ports [mos7840] Bus 001 Device 009: ID 9710:7840 MosChip Semiconductor MCS7820/MCS7840 2/4 port serial adapter Bus 001 Device 008: ID 9710:7840 MosChip...

SSH Find fingerprint

To find the finger print of the publickey hegars@hegars:~$ ssh-keygen -lf ~/.ssh/id_rsa.pub 2048 SHA256:TE………………………………………………………9I6k...

Iproute2 – Route Tables

https://www.thomas-krenn.com/en/wiki/Two_Default_Gateways_on_One_System Add new route table /etc/iproute2/rt_tables + 1 rt2 Add the routes and rules to the route table ip route add 1.2.3.0/24 dev ens7 src 1.2.3.4 table rt2 ip route add default via 1.2.3.254 dev ens7...

Zimbra

Catch All https://wiki.zimbra.com/wiki/Managing_Domains Adding multiple catchalls zimbra@zimbra:~$ zmprov modifyAccount catchall@user.com zimbraMailCAtchAllAddress @domain1.com zimbra@zimbra:~$ zmprov modifyAccount catchall@user.com +zimbraMailCAtchAllAddress...

ACME.SH SSL

https://github.com/Neilpang/acme.sh   acme.sh –issue -d test.com -w /httpd/test.com/www/ [Wed Mar 14 14:56:37 UTC 2018] Single domain=’test.com’ [Wed Mar 14 14:56:37 UTC 2018] Getting domain auth token for each domain [Wed Mar 14 14:56:37 UTC 2018]...

Cisco IEEE Bridging

    ! controller E1 0/0/0 clock source internal channel-group 0 timeslots 1-31 ! controller E1 0/1/0 channel-group 0 timeslots 1-31 ! ip ssh version 2 ! ! ! bridge irb ! ! ! ! interface FastEthernet0/0 no ip address duplex auto speed auto bridge-group 1 ! interface...