18 September 2023

3 Easy Ways to Download YouTube Videos in Ubuntu and Other Linux Distributions 3. Command line tool for downloading YouTube videos

https://itsfoss.com/download-youtube-videos-ubuntu/


1. Download YouTube Videos using Firefox Add-on ‘Video DownloadHelper’

2. GUI applications to download YouTube videos on Linux

3. Command line tool for downloading YouTube videos

17 September 2023

How to copy from vim to system clipboard on ubuntu?

https://superuser.com/questions/1559544/how-to-copy-from-vim-to-clipboard-on-ubuntu-20-04


You need to make sure clipboard is activated (which is probably not the case).

Run : vim --version | grep 'clipboard'

if you get "-clipboard" then you would have to install vim again with the "clipboard" functionality.

You can do it it by installing "vim-gtk3" or "gvim".

Solution

sudo apt-get install vim-gtk3 -y

With that, you will be able to copy into clipboard by typing (including the plus) "+y

How to delete content in the system clipboard on ubuntu?

Install xsel -

$ sudo apt install xsel

 

Run 

$ xsel -bc

How to set up a command for toggling line wrapping in vim?

In .vimrc, add a line -

map <C-a> :set wrap!<CR>

Thus you press Ctrl-A and toggle between line wrapping and unwrapping

16 September 2023

Copy text from pictures on Linux with Textsnatcher

https://www.addictivetips.com/ubuntu-linux-tips/copy-text-from-pictures-on-linux-with-textsnatcher/

$ sudo apt install flatpak

$ sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo

$sudo flatpak install flathub com.github.rajsolai.textsnatcher


Step 1: With Textsnatcher open, find the “Snatch Now!” button and click on it with the mouse. After selecting this button, Textsnatcher should open up the default screenshot tool for your Linux desktop.

Note: if you use Gnome or a Gnome-based desktop environment, it will launch the Gnome screenshot tool.

Step 2: With the screenshot tool open, find the “Select an area to grab” option and click on it with the mouse. When you select this button, the screenshot tool will allow you to take a screenshot of a selected area on the desktop.

Step 3: After you’ve selected the “select an area to grab” option, your mouse cursor will become a cross icon. Click and drag over the area you wish to extract text from.

Step 4: Once you’ve selected an area on the desktop with the cursor, the screenshot tool will take a picture. It will open up a dialog box that says, “Share this screenshot with TextSnatcher?”

Select the “Share” button to share the screenshot to Textsnatcher so that it can extract the text contents of the image.

Step 5: With the screenshot exported to Textsnatcher, you should see a message that says “Checkout Clipboard.” From here, go to a text editor (or any other text field) and press Ctrl + V hotkey to paste the text.

15 September 2023

How to clone a git repository from GitHub?

$ git clone https://<githubUserName>:<githubPersonalToken>@github.com/<githubUserName>/<repositoryName>.git