Exporting your Pocket List Data
The links you save to your Pocket are stored on Pocket’s servers. In other words, they’re stored “in the cloud”.
This means that your List will be available on any computer or mobile device (phone or tablet) that is connected to your Pocket account. To log in to Pocket, please visit our website or download any of our mobile apps, then log in with your Pocket username and password.
Because your List is stored in the cloud, you do not need to create special backups of your saved Pocket items. However, If you wish to download your list for other uses you can use our export tool which creates a downloadable HTML file with your List and Archive.
Parsing Bitwarden CLI
If you use the excellent Bitwarden app for you password storage you may not be aware that they also have a command line version on Linux. It outputs data using the JSON format. You can install the jq JSON parser and pipe the output of the CLI’s query to it in order to extract the username and password for a specific site in your search:
$ bw list items --search accounts.google.com | jq '.[] | .login.uris[].uri,.login.username,.login.password'"https://accounts.google.com""john.doe@gmail.com""** password1 **""https://accounts.google.com""jdoe@gmail.com""** password2 **"
Export VirtualBox VDI using CLI
Sometimes you may want to move a virtual machine in VirtualBox from one server to another. Once way of doing that is to export it from the command line.
- Locate the virtual machine that you want to export (I’ll use the name UbuntuServer for the one to be exported and name the new one UbuntuServerNew), and then
- Run the export command as follows:
$ vboxmanage export UbuntuServer -o UbuntuServerNew.ova
Install mimic Text-To-Speech on Slackware 15
Per the manpage: Mimic is a command line tool for synthesizing speech from text. If outfile.wav is omitted mimic will output the utterance using the computer sound card.
Mimic is based on flite and strives to extend functionality and add more languages while keeping the application fast and light.
Mandatory arguments to long options are mandatory for short options too.
$ git clone https://github.com/MycroftAI/mimic1.git$ cd mimic1/$ ./dependencies.sh --prefix="/usr/local"$ ./autogen.sh$ ./configure --prefix="/usr/local"$ make$ make check$ su -c "make install"
Install svox Package on Slackware 15.0 for Better Text-to-Speech
I was having issues finding a good voice synthesis for Foliate to read my books to me. I have always had issues with the sound of the espeak and espeak-ng voices. So I was searching for an alternative. I couldn’t find a way to build festival on Slackware (yet) but while searching around found a package called svox that had a SlackBuild so I thought I’d give it a try.
Rename Files Downloaded Using youtube-dl
If you have used youtube-dl to download content from YouTube then you know that the file names can get to be rather long. In addition to the video’s title there is a dash followed by what appears to be a random sequence of characters just before the file extension. If you find this to be annoying then here is a code snippet that you can use to remove it.
This will remove the last field separated by a ‘-’ and replace it with the file extension of your choice, .mp4 is used in this example:
Unable to Burn .ISO File to DVD With K3B
If you’re having a problem as a ‘regular’ Slackware user burning an ISO file to a blank DVD, this may resolve your issue:
# chown root:cdrom /usr/bin/cdrecord /usr/bin/cdrdao# chmod 4750 /usr/bin/cdrecord /usr/bin/cdrdao
LXC in Slackware
Following directions from: lxc for Slackware 14.2. I haven’t tested on Slackware 15 yet. You will have to set this up while running as root.
-
Create the file
'/etc/default/lxc-net'and add the lineUSE_LXC_BRIDGE="true"to it. -
Create the directory
'/var/lib/misc' -
Start the service:
# /usr/libexec/lxc/lxc-net start -
Create a config file:
# cat >slac-xlc.con «“EOF” lxc.network.type = veth lxc.network.flags = up lxc.network.link = lxcbr0 EOF
Sending Email from the Command Line with mutt
If you prefer using mutt as your command line email tool, then here are a couple of examples of using mutt to send emails which can be automated quite easily to use in scripts.
Sending a file attachment (-a) and an empty message body:
$ mutt -s "System Logs" -a /var/log/somelog.log -- username@example.com < /dev/null
Sending a message body using redirection:
$ mutt -s "Email Subject" username@example.com < email.html
Sending a file attachment along with a message body:
Sending Email from the Command Line with cURL
Let’s assume that you had a RFC 5822 formatted file named mail.txt as follows:
From: Some Sender <some.sender@gmail.com>
To: Some Recipient <some.recipient@example.com>
Subject: Saying Hello
Date: Tue, 6 Jun 2023 04:15:06 -0100
Message-ID: <1234@local.machine.example>
This is a message just to say hello.
So, "Hello".
You can forward this to a email recipient using Google’s SMTP with the following curl command provided you have a Google app password:
$ curl --url 'smtps://smtp.gmail.com:465' --ssl-reqd \
--mail-from 'some.sender@gmail.com' \
--mail-rcpt 'some.recipient@example.com' \
--upload-file mail.txt \
--user 'some.sender@gmail.com:your-gmail-app-password'
Output should be something like this: