Loops…..

#!/bin/sh
#
# Convert Music On Hold to native codecs.
#
for y in ulaw alaw
do
    for x in /var/lib/asterisk/moh/*.gsm;
    do
        asterisk -rx "file convert $x /var/lib/asterisk/moh/`basename $x .gsm`.$y";
    done
done

Pi External rootfs

Using a GPT partition table.

apt-get install gdisk rsync parted
parted  /dev/sda mklabel gpt 
parted  --align optimal /dev/sda mkpart primary ext4 0% 100% 
mkfs -t ext4 -L rootfs /dev/sda1
mount /dev/sda1 /mnt 
rsync -axv / /mnt
blkid /dev/sda1 | awk '{print $6}'
nano /boot/cmdline.txt 
root=PARTUUID=.......    rootdelay=5
reboot

 

Using a MBR partition table.

apt-get install gdisk rsync parted
parted  /dev/sda mklabel msdos
parted  --align optimal /dev/sda mkpart primary ext4 0% 100%
mkfs -t ext4 -L rootfs /dev/sda1
mount /dev/sda1 /mnt
rsync -axv / /mnt
blkid /dev/sda1 | awk '{print $3}'
nano /boot/cmdline.txt
root=UUID=.......    rootdelay=5
mkinitramfs -o /boot/initrd.sda
nano /boot/config.txt
initramfs initrd.sda followkernel
reboot

 

Source

Posted in Pi

SQL

SELECT 
 FIRSTNAME, 
 LASTNAME, 
 TO_CHAR((SELECT SYSDATE FROM dual)) AS NOW, 
 TO_CHAR(DATEOFBIRTH) AS DATEOFBIRTH, 
 trunc(((SELECT SYSDATE FROM dual) - DATEOFBIRTH)/365) AS AGE
FROM 
 CUSTOMER;

Reset Cyberlink Recovery Manager

I’m wondering if this will reset the media creation tool on a HP AIO.

 

My simplified method is first to show hidden files and folders, then find the following files:

  1. C:\ProgramData\Hewlett-Packard\Recovery\hpdrcu.prc
  2. C:\Program Files\Hewlett-Packard\Recovery\hpdrcu.sys
  3. D:\hpdrcu.prc

Add .bak to the ends of each of these files eg: hpdrcu.prc.bak

 

Details from here… http://superuser.com/a/774685

Uniden DSS 7855

After some googling, trial and error and an email or two to Uniden I have found my answer.

The handset/base keeps a record of who it’s registered to. The base also keeps a record of how many handsets are registered to it.

Using the de-register function on the handset deletes the handset from the base (decrements the count) and deletes the base info from the handset. All this requires that the base and handset can communicate with each other.

To remove the base data from a handset when out of range of the base, press and hold the ‘end’ button and the ‘#’ button simultaneously until the phone beeps. It will now be de-registered from the base.

However, the base will still have this handset in it’s record.

To de-register all handsets from the base, remove power and the base handset. Press and hold the ‘flash/find hs’ button while applying power. Wait for the beep and release the button. The charge light will now flash. Sit any handset in the cradle. When the flashing stops, all handsets are inhibited from connecting.

However, the handset still appears to be connected to the base unit. Pressing talk will give an ‘Unable to connect’ message. To re-register the handsets to the base, you have to de-register the handset first with the two button method.

Of interest, pressing ‘*’ and ‘#’ on the handset while reconnecting the battery is suppose to reset the handset. Doing the same on the base unit puts you in some sort of diagnostic mode. Press speaker to exit.

Whirlpool Forum

DSS 7855