Script
Apple Trailers Fix
As some of you may have found out or read about, Apple trailer downloads for Linux are currently broken. Apple has implemented a Quicktime user agent check prior to downloading. Personally I agree with the decision because Apple is concerned about the quality of reproduction (though Apple trailers still play with an odd hue on […]
Installing Perl Modules Manually
If you do Perl programming or if a program you have needs a perl module, you could download and compile it manually but the easier way would be to use CPAN (the Comprehensive Perl Archive Network). CPAN First thing you should do is see if your distribution has it in it’s packages repository so that […]
A Better Link
Warning: This script needs help, don’t use it :) I started on this thinking this would be an easy task. See, I can never remember the order I have to do a link (ln -s file/folder location-to), so I decided to build a script that would give me usage and display the link once it’s […]
Week of bash scripts – rps and commentstrip
These two scripts will respectively: find if a program is running, and strip-comments from text files. The first is useful if you need to see if the program is running or if you need to kill the process with it’s id, comment strip is a good tool to use if posting configurations on forums as […]
Week of bash scripts – grok and cdf
These two scripts are two different find commands. The first (grok) will list all files in a directory recursively that contain a matched string; the second will locate a file/folder and the change to it’s directory. Neither of these are mine (though slightly edited), I’ve gotten them from the Arch forums where they have a […]
Week of bash scripts – Unpack
As the antithesis of yesterdays pack command there is unpack. Unpack This script was originally written by brisbin33 in the Arch forums (beautiful work man) and is slightly-modified. It will unpack most compressed file formats. Syntax is: unpack <archive.ext>
A week of bash scripts – Pack
Hello blogweb, this week I’ll be posting some of my bash scripts that I use on a regular basis. To begin: Pack I tend to do quite a bit of compressing files for uploading and I cannot always seem to remember the options and order of those options that tar needs. So I built a […]
Backup Configurations with tar Helpers
Update: This article has been supplanted by The Beauty of rsync and Backup Script. When I have to do a reinstall, sometimes I have to install from scratch – doing a clean install is just sometimes necessary. My configurations are priceless to me and after my reinstall I restore them from a backup copy. Here’s […]
Restore Settings on a Broken Firefox
Update: 09-29-11 – Using script to automate process, see end of post. When people have a issue with Firefox I’ve seen many people will resort to deleting their old profile (or folder) and creating a new one. This works but doing this will get rid of any passwords, history, bookmarks… therein. Having used Firefox quite […]
Color Output on Bash Scripts (Advanced)
I talked in a previous post about basic bash script colored output using the tput command. The tput command works for basic coloring (providing seven colors to choose from) but ANSI also provides a 256 color palette. Note: Not all terminals support ANSI, but most do. ANSI color coding is in this form: \033[01;38;5;160m The […]
Color Output on Bash Scripts
Users who have been using Linux for awhile often learn that creating a basic script is a good way to run multiple, often-repeated commands. Adding a little color to scripts can additionally provide nice feedback. This can be done in a fairly straight-forward way by using the tput command. A common way of doing this […]