vim background cheatsheet

I wanted a quick and convenient cheatsheet to use with Vim. Additionally, it needed to be dynamic such that it only included the things I was trying to learn. And once those things were ingrained in my fingertips, there should be a way to remove the tips (the cheatsheet tips, not my fingertips) from my cheatsheet. And ideally, adding and deleting tips from my cheatsheet should be quick and relatively effortless. That’s when I came upon the idea of having my screen background become my cheatsheet.

Continue reading

bash error redirection

Clarifying bash redirection for stdout and stderr

I sometimes forget some of the simplier things that I actually use quite frequently in the bash shell. Error redirection involving stdout and stderr seems to be one of them. Below are a few examples that explain things better than I can put in words. But first, note the following givens and assumptions:

  • stdout == standard output == file descriptor 1
  • stderr == standard error == file descriptor 2
  • & indicates that what follows is a file descriptor and not a file name
  • /not is a non-existent directory
  • /tmp is an existing directory

Continue reading

bootstrap overriding

How do I override bootstrap.css so that I remove the style for an anchor/class? For example, if I want to remove some or all the styling rules for legend: legend { display: block; width: 100%; padding: 0; margin-bottom: 20px; font-size: 21px; line-height: inherit; color: #333333; border: 0; border-bottom: 1px solid #e5e5e5; } Would you use !important like this: legend { display: inherit !important; width: 100%; padding: 0; margin-bottom: inherit !

Continue reading