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

WGET

Download everything excluding directory files. wget -r -np -R “index.html*” https://blah.com

APT

List Installed Packages #apt list –installed

Cryptsetup

As described on the following.https://www.crc.id.au/linux-and-usb-full-disk-encryption/ Flow # mkdir /etc/luks-keys# chmod 700 /etc/luks-keys# dd if=/dev/urandom of=/etc/luks-keys/new-key-file bs=1 count=4096# cryptsetup luksFormat /dev/sdb...

Cisco Voice

Testing voicehub# show dialplan number 5000 …. voicehub# csim start 5000 csim: called number = 5000, loop count = 1 ping count = 0 csim err csimDisconnected recvd DISC cid(5) csim: loop = 1, failed = 1 csim: call attempted = 1, setup failed = 1, tone failed = 0...

Karcher – G 2800 11073160

Karcher – G 2800 11073160 With zero information on the official website ( https://www.kaercher.com/au/home-garden/petrol-high-pressure-washers/g-2800-11073160.html ) here is some more information about the unit via the supplied manuals. Kaercher – Petrol...

Roland P-55 repair and its relationship to the SC-55

I acquired a P-55 from ebay that wasn’t working, Problem: No power to P-55 There was a dead short across the power pin (after blowing the transformer a few time before putting a meter across it) These Roland devices have reversed Negative Collar power inputs so...

Basic Install

webroot securecrt gog synergy winbox chrome kicad freecad sublime 3 expandrive steam office eagle teamspeak wireshark VLC

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