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 […]

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

xuserrun is a bash script to run a command on the active 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 […]

No-think link (redone)

When I first used ln, I expected the behavior of ln source link to work. But ln is slightly more complicated than that. While learning it from the beginning, I discovered it does not always resolve the path correctly; additionally, it doesn’t not error if the source is non-existence. I discovered that this was necessary […]

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 […]

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. […]

Disk and Memory Usage Scripts

At times I like to check my levels of disk and memory usage and it’s more convenient for me to do it from the command line. So, I created a couple scripts for them: devtop Filesystem Size Used Avail Use% Mounted on /dev/sda5 9.8G 6.4G 2.9G 69% / /dev/sda6 166G 38G 121G 24% /home memtop […]

Convert Videos to PSP

I’m a TED video junkie. I always have videos on my PSP ready to watch. I also like to put YouTube videos on there. I did this enough that I created a script for it that makes putting videos on my PSP real easy: pspvidconv <d*> <video(s)> – Convert videos to PSP (d to use […]

Markdown to WordPress Format

When I discovered MarkDown I was in love, it was very nice to discover an easy, clean, well-thought-out markup language. I wanted a way to be able take my detailed notes, have them easy to read, and then to be able post them here on the blog that would be in a nice WordPress format. […]

Download Package Source Files

I wanted a way to easily download source files for quick editing. Sure abs and numerous AUR-helpers do it but I wanted a simple all-together program/script that could do it, and it turned out to be pretty easy. I wanted to be able to define the repository, and then the package and I did it! […]


Get every new post delivered to your Inbox.

Join 51 other followers