Okay, so. I have a #PDF and a #DOCX file. And I’d like to compare them. And since I’m a programmer, I don’t want to compare them visually, but with a #diff. But how?
Like this.
alias pdfcat='gs -q -sDEVICE=txtwrite -o-'
alias doccat='pandoc -t plain'
pdfcat a.pdf > a.txt
doccat b.docx > b.txt
git diff --no-index --word-diff a.txt b.txt
And since we’re using --word-diff, it doesn’t matter that the two files use wildly different line wrapping.
cd - goes back to your previous directory. Also see pushd, popd if you want to treat the directory history as a stack. Nevertheless, excessively typing commands for navigating just gets you repetitive strain injury. I use ranger as a TUI file manager. Hopping in/out of the shell is as easy as S or Ctrl+D.
vim has an inbuilt diffing tool, vimdiff. It opens the two files side by side with color highlighting. It might not be provided by your default vim package. On Arch it's provided by gvim.
git rebase -i HEAD~5 is imo a better way to hack at your last 5 commits than (rebase, reorder, squash, edit, etc) than what I've seen GUI git tools do.
git add -p, git checkout -p(for "patch") runs the command on one chunk at a time, allowing you to inspect each one before doing anything. It's useful if you want to commit or undo only part of yout work. -p works for other commands too.
• provides a standard 16(! not 8!) set of ANSI colors that actually correspond to the standard colors (i.e. green looks green, blue looks blue etc.)
• has good contrast between most of these colors, so that if a CLI tool decides to use gray-on-blue status bars, it’s still readable (this is actually the most important feature)
• uses neutral or warm colors (no blue-ish tint)
• optionally: has a 256-color variant for #Vim or #Neovim
Problem is: it takes forever, but the main issue is that my laptop goes to 100% processor use and the cooler fans go nuts, looks like it will take off or set my house on fire.
Is there any app that is more efficient for this? I can't use a cloud service, I have lots of videos to convert, it's not practical
Anyone with a recommendation for a #TUI (aka #terminal) file manager with split (mc-style) or multiple window interface that supports #WebDAV and/or #SFTPon its own?
I know that I could just use FUSE to mount remote folders locally – except that I can’t use FUSE on one of the machines that I need this file manager on (because it’s running WSL1 – please refrain from commenting on that).
So, it needs to be able to talk to WebDAV or SFTP without FUSE.
Although it's mostly known as a file transfer protocol, it can do so much more. This article describes Kermit's main features and provides examples of typical uses.
The latest version of #JetBrainsRider has our new terminal implementation. It has some real smarts, like command completion. Check it out in the new #EAP. #dotnet#terminal
Given the importance placed on CLI usage by many in the Linux community it's weird that a terminal isn't open by default on many Distros. Today I remembered that while on Antergos a few years ago I'd installed a terminal that you could call simply by pressing a hotkey.
Yakuake smoothly drops down from the top of your screen in response to the hotkey (the default is F12) and voila!: a ready to use terminal! Add it to Autostart and it'll run whenever you run a session of Linux, forever saving you having to load Konsole (or whatever) every time you want to use it.
And as I'm running KDE the fact it uses Konsole tech means it has that familiar look and feel, but shows Session tabbing by default foregrounding the ability to run separate terminal sessions and putting it within easy reach of GUI users and a mouse-click.
On the #Linux#Terminal, is there a way to list all #systemctl issues? For example, show the number of and which #services have issues, the same way cockpit does in the web interface?
For quite a while now, I have relied on terminal into my Windows Subsystem for Linux on my main workstation, as my daily driver. While it works all right for most cases, there are certain compatibility issues that requires a "... in WSL" search term for documentations/issues.
Close to a month now I have been using a #Ubuntu#terminal only VM on my #homelab#Proxmox cluster. For ones who can roll this out, this seems the best approach.