Command Line
Embedded Scripts in WordPress with GitHub Gist and Update Script
I asked at Stack Overflow recently if I could embed a text file into a webpage. My reason was basic: I wanted to be able to use my newly created GitHub script repository to be my source for scripts I posted on this blog. If I was able to do this, I reasoned, than my […]
YouTube from the command line
How to play YouTube videos became a question to me because flash in Linux is all but abandoned and knowing of flash security concerns. Good news is that most videos now are being converted to WebM (Firefox HTML 5 video) but for some unknown reason I find most of them that the sound won’t play. […]
Managing Scripts and Configurations on Github with a script
This post is a follow-up to Michael Smalley’s excellent post on how to manage your dotfiles. Use Git and Github to Manage Your Dotfiles. I wanted a way to regularly have my configurations and scripts updated on Github that didn’t require me remembering how to do it :). So I created a script that would […]
Sudoers Permissions as a File
I learned that for granting root permissions to certain programs that it is easer and more constructive to use a separate file. sudo must be told to look in a separate directory in its configuration to be able to do so. sudo visudo Likely all distributions have this available and it will be listed at […]
Allotting iotop
Recently, iotop has been moved to being only allowable to be viewed as root. iotop is a great program for measuring disk throughput and I am unable to figure the logic of why it has been moved to root-only. To be able to run iotop as regular user again root permission must be given to […]
Power Management from the Command Line
To be able to invoke commands like suspend and hibernate from the command line not so long ago required having root privileges or using the desktop environment built-in tools. Now to invoke suspend, hibernate, shutdown, or restart, D-Bus can be invoked as Regular user. I created a script called pwrman to ease the task (requires […]
The ABC’s of creating MP3s
Being content with GUI ripping software was something that didn’t happen to me using Linux. I had expected my music player software to handle `the task but I can’t remember any that did (not remembering to me is the same as working poorly I’m discovering). As for stand-alone rippers I haven’t heard any that were […]
A more Desirable rm
Update: Added mv option -t and –backup=t (thanks to Matt) to prevent file collisions from same-named files. Thanks Matt! A bashrc version and a bash script are both available. Warning: Currently I am not using this script. This script works good for most instances but I discovered it does have problems when compiling. During compiling […]
Setting Up a Scripting Environment
When first starting learning Linux, I didn’t realize lot of it lies beneath the surface. Linux still holds on to it’s developmental roots and a good deal of it’s power can be found directly from the command line. Windows doesn’t have this type of functionality, and though Mac OS X has some of it few […]
Command Line Calculator
I can usually type faster in the terminal than doing mouse click on a gui calculator, so I created this scipt to be able to do it quickly from the terminal. There are alot of command line calculators out there so use the one you are comfortable with but I like using bc because of […]
HTML Entities from the Command Line
While doing HTML work I tend to do my work with text editors. For this, I use Arachnophilia a Java HTML editor with easy, editable, customizable tags (Review here). Arachnophilia has support to convert characters to HTML entities but isn’t easy to get to (HTML > More Functions > Char to Entity. There are various […]