Pages
-
Recent Posts
- Revolving Door: MPAA Hires Chief USTR Negotiator Behind ACTA And TPP’s IP Chapter
- Copyright Maximalists’ Incredible Sense Of Entitlement: If It Challenges The Biz Model We Chose, It Must Be Illegal
- Turkey’s Prime Minister Sues His Own Country Over Twitter
- Picturefill 2
- Police File On Student ‘Bullied Into Committing Suicide’ Strangely Lacking In Evidence Of Bullying
Archives
- April 2014
- March 2014
- February 2014
- January 2014
- December 2013
- November 2013
- October 2013
- September 2013
- August 2013
- July 2013
- June 2013
- May 2013
- April 2013
- March 2013
- February 2013
- January 2013
- December 2012
- November 2012
- October 2012
- September 2012
- August 2012
- July 2012
- June 2012
- May 2012
- April 2012
- March 2012
- February 2012
- January 2012
- December 2011
- November 2011
- October 2011
- September 2011
- August 2011
- July 2011
- June 2011
- May 2011
- April 2011
- March 2011
- February 2011
- January 2011
- December 2010
- November 2010
- October 2010
- September 2010
- August 2010
- July 2010
- June 2010
- May 2010
- April 2010
- March 2010
- February 2010
- January 2010
- December 2009
- November 2009
- October 2009
- September 2009
- August 2009
- July 2009
- June 2009
- May 2009
- April 2009
- March 2009
- February 2009
- December 2008
- November 2008
- October 2008
Meta
Category Archives: one-liner
PHPHOST BLOG
Web Hosting Related Articles You May Need
[one-liner]: What options were used to boot my Linux Kernel?
Background
In newer versions of Linux distros the GRUB2 configuration file is often times locked down so that you need sudo rights to see what options the Linux Kernel was booted with. Using the following tip you can see these options as just a regular “joe” user.
Solution
This tip is pretty straightforward, since now the options are […]
Readers who viewed this page, also viewed:
Posted in kernel, linux, one-liner, Syndicated, tips & tricks
Comments Off on [one-liner]: What options were used to boot my Linux Kernel?
[one-liner]: Linux Runlevels
Background
Determining a systems runlevel can be useful when setting up a headless server or determining if a system is being used as a server or as a workstation. Thankfully it’s pretty easy, using a number of commands. But before we get started, a little background.
Runlevels are a concept from UNIX System V used by the […]
Readers who viewed this page, also viewed:
Posted in linux, one-liner, Syndicated, sysadmin, tips & tricks
Comments Off on [one-liner]: Linux Runlevels
[one-liner]: Improving the performance of SSH Tunnels using Alternative Ciphers; when displaying X11 Apps
Background
Have you ever used an ssh tunnel to try and remotely display an X windowed application and then wished you hadn’t, because the performance was so bad you’d be waiting till next week for the window to come up?
Read on because here’s how you can make this much more tolerable & usable.
Solution
There are 2 […]
Readers who viewed this page, also viewed:
Posted in one-liner, shell, ssh, Syndicated, tip, tips & tricks
Comments Off on [one-liner]: Improving the performance of SSH Tunnels using Alternative Ciphers; when displaying X11 Apps
[one-liner]: Securing your Subversion Password using GPG Agent
Background
If you’ve ever dealt with subversion on Unix, one of the annoyances is that it essentially stores it’s password in clear text under your $HOME/.subversion/auth/svn.simple directory in text files. Not a huge deal to a single developer or user but if you work in a large company or even a small one this is a […]
Readers who viewed this page, also viewed:
Posted in one-liner, Security, subversion, Syndicated, tips & tricks
Comments Off on [one-liner]: Securing your Subversion Password using GPG Agent
[one-liner]: Dealing with UEFI
Background
UEFI looks to be a major pain in the @$$, but like it or hate it everyone in the Linux community will need to learn to navigate it. Here’s a list of useful UEFI resources that I’ve come across as I’ve started to get smarter about how to deal with this beast.
Solution
Wikipedia
Unified Extensible Firmware […]
Readers who viewed this page, also viewed:
Posted in centos, fedora, one-liner, redhat, rhel, Syndicated, tips & tricks, UEFI
Comments Off on [one-liner]: Dealing with UEFI
[one-liner]: Debugging Bash Scripts
Background
From time to time it’s useful if you can turn up the debugging messages that come from Bash, when working out either interactive or shell script problems. Here are 2 methods that can help in getting down to the details.
Solution
There are essentially 2 methods.
Method #1: -x method
When writing a shell script you’ll sometimes want to […]
Readers who viewed this page, also viewed:
Posted in bash, one-liner, script, shell, Syndicated, tips & tricks
Comments Off on [one-liner]: Debugging Bash Scripts
[one-liner]: Why is Conky reporting a lower CPU frequency, when my CPU frequency is actually much higher?
Background
If you’ve every dealt with Conky you may have gotten a little confused when you’re trying to get it to display your CPU frequency like so:
1
${freq_g cpu0} Ghz
… and Conky is reporting your CPU frequency as 1.12GHz when in fact it’s actually much higher than that, say 2.67GHz. Most likely this is being caused by […]
Readers who viewed this page, also viewed:
Posted in conky, linux, monitoring, one-liner, performance, Syndicated, sysadmin, tips & tricks
Comments Off on [one-liner]: Why is Conky reporting a lower CPU frequency, when my CPU frequency is actually much higher?
[one-liner]: How do you capture the status of a command ($?) in Bash, when run through a pipe?
Background
While answering questions on the stackexchage website Unix & Linux I saw the following question which was about something I’d encountered, but until today never knew how to accomplish, so I’m posting it here for my own reference in the future.
The question?
How do you get the exit status ( $? ) from the command haconf […]
Readers who viewed this page, also viewed:
Posted in bash, one-liner, script, shell, Syndicated, tips & tricks
Comments Off on [one-liner]: How do you capture the status of a command ($?) in Bash, when run through a pipe?
[one-liner]: Checking out a HDD’s Health using the Command Line Tool udisk
Background
Here’s a quick tip for checking out the overall health of your computer’s hard drive. It makes use of a little known tool called udisks which provides access to information about storage devices from the D-Bus interface.
Solution
Before we jump into udisks here are some resources that might prove useful when dealing with the design/architecture of […]
Readers who viewed this page, also viewed:
Posted in HDD, linux, monitoring, one-liner, performance, Syndicated, sysadmin, tips & tricks
Comments Off on [one-liner]: Checking out a HDD’s Health using the Command Line Tool udisk
[one-liner]: Free Online Programming Courses
Background
This post is intended to capture various online resources for taking classes and/or getting training in anything. They’re predominately programming language and software engineering courses but their are other tracks that focus on history and chemistry, for example.
Solution
This is by no means meant to be an exhaustive list, it’s a clearinghouse of the different resources […]
Readers who viewed this page, also viewed:
Posted in one-liner, programming, Syndicated, tips & tricks
Comments Off on [one-liner]: Free Online Programming Courses