Script

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

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

Follow

Get every new post delivered to your Inbox.

Join 51 other followers