Tuesday, February 14, 2017

Linux terminal commands that will rock your world!

I was surprised at how not so overly hyperbolic this title turned out to be.

http://www.improgrammer.net/11-linux-terminal-commands-that-will-rock-your-world/

Right up front we get:

The following keyboard shortcuts are incredibly useful and will save you loads of time:
  • CTRL + U – Cuts text up until the cursor.
  • CTRL + K – Cuts text from the cursor until the end of the line
  • CTRL + Y – Pastes text
  • CTRL + E – Move cursor to end of line
  • CTRL + A – Move cursor to the beginning of the line
  • ALT + F – Jump forward to next space
  • ALT + B – Skip back to previous space
  • ALT + Backspace – Delete previous word
  • CTRL + W – Cut word behind cursor
  • Shift + Insert – Pastes text into terminal
Followed by a bunch more really useful tips.

Tuesday, January 17, 2017

Configuring TexStudio commands and fixing highlight for dark backgrounds

I recently re-installed TeXstudio in Arch Linux after not needing it for a few years and had to remember how to get things working again.
There were 2 issues, one it said I had no Latex distribution, which I did so I had to (ugh) manually configure all the commands (actually I only had to locate each command, the configuration was automatic for each one). I used this as a guide: http://tex.stackexchange.com/questions/246316/error-make-sure-that-you-have-installed-a-latex-distribution.

Then the background color of the current selected line was the same as the foreground color making the text invisible. There are a LOT of color options under settings, but the setting needed is "current line" background, which I figured out from  http://tex.stackexchange.com/questions/85038/current-line-highlighting-in-texstudio even though the option screen is not the same.

Wednesday, January 4, 2017

Fix flickering KDE Plasma display

My Plasma display flickers wildly between black and non-black whenever switching focus or other random interactions with the GUI, it has done this from time to time, but has recently gotten worse.

From https://bbs.archlinux.org/viewtopic.php?pid=1595276#p1595276

Create a file named 20-intel.conf on /etc/X11/xorg.conf.d with the following contents:

Section "Device"
   Identifier  "Intel Graphics"
   Driver      "intel"
   #Option      "AccelMethod"  "sna"
   Option      "TearFree"    "true" 
   Option      "DRI"    "3"