Command Line

Vim colorscheme tuneup

I hadn’t thought about it for awhile but today I updated by Vim colorscheme for the first time in about two years. In the process I found a few that were notable: rdark-terminal link gruvbox link synic I think this one is based on neon. link kolor link jellybeans blueberry This is what I decided […]

Get down with getopt

What is getopt? getopt is a command used in scripts to parse their options and add a basic error checking ability. getopt is not getopts the bash built-in that has similiar functionality. Urban Vagabond explains: getopt and getopts are different beasts, and people seem to have a bit of misunderstanding of what they do. getopts […]

Numbered file backups – Easy as can beasy

When I’m about to edit a configuration file or a bash script, sometimes I don’t know if the edit will work. In these cases I create a backup of it in numbered order (to keep track of them if I need to revert the changes). Because this is something I regularly do, I decided to […]

gt – script to create a temp file in gedit

I am really lazy with my editors. I have aliases in my shell configuration for gedit and vim that are very basic: alias v=”vim -p” # open in tab alias sv=”sudo vim -p” alias g=”bgcmd gedit” alias sg=”bgcmd gksudo gedit” This is very nice for me because I use my editors quite a bit. One […]

WTFM (Write the Fine Manual) with Pod2man text-converter

Disclaimer: I am not an expert on creating man pages but from the research I did I discovered this method to be very easy. It also worked for me as well because github has rendering support for this format. For a more traditional approach nixCraft has a better article for that. Pod2man is an application […]

xuserrun – Run a command on the currently-active user’s X.org server display

xuserrun is a bash script to run a command on the active X.org server display.¬† This is primarily necessary if from within another environment¬† (different user, console, cron, boot script…).¬† xuserrun gathers DISPLAY and user environmental variables via systemd and passes them on to be able to dothis. xuserrun is designed for use with only […]

Encode an Audio file to Video file

I wanted to convert an mp3 file to an mp4 or avi file because I wanted to be able to use it on my PS3 ( the PS3 has a basic audio player that doesn’t save position [ particularly troubling for large audiobooks ] ). This although is good for audio posting on youtube… I […]

External monitor as Discrete

I use my laptop primarly at home with an external monitor as discrete, meaning that I have the laptop monitor turned off and I only use it. At times this is also called a dedicated monitor. GNOME can be set to disable the laptop monitor and enable the external but it wasn’t able to hotplug […]

The Beauty of rsync and Backup Script

rsync is a command-line tool used to copy/clone files (“fast incremental file transfer“). It is a great, simple backup tool. The basic rsync command is this: rsync -a src dest_dir Where src is the original directory or file and dest_dir is the destination directory. Because rsync does incremental backups it only adds the file to […]

Screencasting Done Easy (Desktop Recording)

I got to test out a good number of screencasting applications and I found a good one, and as usual the easiest was the best. I started with recordMyDesktop. recordMyDesktop recordMyDesktop is a basic program that works good. The GTK version has a simple UI that sets a border around the area to be recorded. […]

cVLC as Default Video Player

I love MPlayer. I’ve been using it for years. Whenever I needed to watch a video from my camera or downloaded something from YouTube it always did great. However, I revisited recently trying to play a DVD with MPlayer after having gone through a lengthy setup process a ways back and discovered MPlayer still cannot […]

Follow

Get every new post delivered to your Inbox.

Join 52 other followers