# text

## January 24, 2022

Use pastebin from command line

Use pastebin from command line

Quite often, when you have a problem where, in order to get help you need to paste the contents of a file,or command output so that it can be shared, for example on IRC (Chat) or a forum, this can be challenging to begin with.

As it is depreciated that you paste more than 2 lines in to IRC chat. The way round this is to use a service called pastebin. Debian [1] has it's own service for this [2]. There is a tool called pastebinit which is really helpful from the command line.

The first step is to switch to the root user. Sear for and install the package pastebinit as per below.

Search

root@Desktop:/home/user# apt search pastebinit
Sorting... Done
Full Text Search... Done
pastebinit/stable 1.5.1-1 all
command-line pastebin client


Install

root@Desktop:/home/user# apt install pastebinit
Building dependency tree... Done
The following packages were automatically installed and are no longer required:
linux-image-5.10.0-7-amd64 linux-image-5.10.0-8-amd64
Use 'apt autoremove' to remove them.
The following NEW packages will be installed:
pastebinit
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 46.6 kB of archives.
After this operation, 342 kB of additional disk space will be used.
Get:1 http://deb.debian.org/debian bullseye/main amd64 pastebinit all 1.5.1-1 [46.6 kB]
Fetched 46.6 kB in 0s (342 kB/s)
Selecting previously unselected package pastebinit.
(Reading database ... 190310 files and directories currently installed.)
Preparing to unpack .../pastebinit_1.5.1-1_all.deb ...
Unpacking pastebinit (1.5.1-1) ...
Setting up pastebinit (1.5.1-1) ...
Processing triggers for man-db (2.9.4-2) ...
root@Desktop:/home/user#


Once complete switch back to normal user (usually type exit)

user@Desktop:~$cat /etc/apt/sources.list > pastebinit user@Desktop:~$ cat /etc/apt/sources.list | pastebinit
https://paste.debian.net/1228146/


In this example I have used the cat command and piped the contents in to pastebinit, this has given me a url to paste in to chat, (or copy manually)

Open this in a browser and you and others can see the contents, and people can help you further.

This is really useful too if you are stuck at the command prompt, without a graphical interface.

## January 22, 2022

Tilde – text editor

Tilde is a nice, curses based text editor. It is useful for if you are at the console or terminal in Linux and want a menu driven editor.

While other tools are more command driven (nano, emacs, vi, vim and joe to name a few). Tilde is being mentioned for those of you who may find it useful

As you would expect with a modern editor, tilde has support for syntax highlighting.

Which is really useful for programming or editing website code for example.

REFERENCES

TAGS

## May 8, 2021

Translate Science

Another interesting project that I found on Mastodon. This is translating academic and science texts to different languages.

I have replied to their Mastodon post and also mentioned the Africa Wiki project / contest. As the two projects could complement each other if there are articles on Wikipedia about African Scientists and contributors to science. Ensure these articles on Wikipedia are also translated. But also perhaps translate associated Science texts too.

Of course it is all down to the number of people who have the skills are willing to share these skills.

From a personal viewpoint, I really feel employers MUST recognise these contributions. They are valuable to the projects but also help people develop important skills such as remote collaboration.

REFERENCES

TAGS

## February 8, 2021

Sed

In my first ansi weather post I was looking at using sed to strip colour codes from the program output. It turns out and covered in the second post that all that is needed is the -a false argument to the program.

Nevertheless, sed is still worth learning. To this end, the following resources may be useful.

Sed video tutorial

If you save this in to a text file you can follow along with the video. It is similar to the text from the video.

10 Tiny Toes
this is That
One two Three
tree twice


REFERENCES

TAGS

## February 1, 2021

A look at some of the features of the Rich Text Editor that comes with the recently released, version 4 of CryptPad.

This is a really nice package, and service, Cryptpad also comes as part of Disroot, which is also linked below. The best feature of course is the privacy.

REFERENCES

TAGS

## December 26, 2020

Mastodon toot client

Tip of the day

if using the toot command line client, you can toot the contents of a file.

Lets say 'text.txt' contains the following

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam


If you login to toot, then type

toot post < text.txt then the contents of that file will be posted to Mastodon.

## December 16, 2020

Liberoffice 7 Impress – Text formatting tool bar

By default libreoffice 7 impress does not display tools for text formatting on the toolbar.

To fix this, you need to

Click View —> Tool bars —> Text Formatting

And the tool will be displayed

Video below illustrates process

#libreoffice7,#impress,#display,#text,#formatting,toolbar, #help,#support.

## November 19, 2020

LibreOffice Learning Resources

As digital skills are an essential part of everyday life. I have created, a new blog, to host information to help people out tasks using LibreOffice.

So far this is blog has covered just the Writer component. This may be extended later, as I have some videos for the Calc Spreadsheet.

The new blog can be found here.

## July 4, 2020

Writefull

Writefull is a plug-in for Google Chrome designed to complement the cloud based Overleaf LaTeX editor by facilitating the checking of your document for errors such as grammar and spelling.

This is a really valuable tool if you are involved in writing academic texts, as it designed for that level of text processing in mind. However it is a welcome tool if you're using Overleaf in general.

References

## February 16, 2020

CEEFAX on the Pi

CEEFAX was a text based TV information service provided by the BBC back in the 80 to 90's. It may have started earlier, not sure.

Fast forward to 2020 and we have working version on the Raspberry Pi computer.