Category Archives: one-liner

PHPHOST BLOG

Web Hosting Related Articles You May Need

[one-liner]: Running a Windows Program from a HTML Page in Internet Explorer

Background

We recently needed a way to launch executables on a Windows system, but wanted to run them from a web browser, locally. Turns out to be pretty easy with a little bit of VBScript.

Solution

Here’s a quick example on how to make a .html file that can be used to launch applications locally. This seems like [...] Continue reading

Posted in HTML, one-liner, script, Syndicated, tips & tricks, vbscript, web, windows | Leave a comment

[one-liner]: Using the Command lsb_release to Determine Linux Distro Version Info

Background

If you need to determine which version of Linux you’re using you can use the command lsb_release. It’s part of the Linux Standards Base which is a specification that was created by the Linux Foundation.

Solution

Obviously there are other ways to do this, for example, on a Redhat based system you can look for the file [...] Continue reading

Posted in linux, LSB, one-liner, Syndicated, sysadmin, tips & tricks | Leave a comment

[one-liner]: Redirecting an Already Running Program’s STDOUT to a File using dupx

Background

Recently I came across this really cool UNIX tool called dupx. I was looking for a way to connect to a program’s STDOUT and STDERR after I had already started it. This was a long running, think 30+ hours job, and I didn’t want to have to stop and restart it. As is the case [...] Continue reading

Posted in centos, fedora, linux, one-liner, rhel, shell, Syndicated, sysadmin, tips & tricks | Leave a comment

[one-liner]: Adding Git Repos to SparkleShare Doesn’t Appear to Work

Background

I’ve been using SparkleShare for almost a year now and it has impressed me with how well it’s able to act as my Dropbox replacement. It took a little coaxing, mainly around setting up a unique ssh key pair just for SparkleShare, so that I could allow it to run both when I’m at home [...] Continue reading

Posted in git, one-liner, sparkleshare, Syndicated, tips & tricks | Leave a comment

[one-liner]: Adding Git Repos to SparkleShare Doesn’t Appear to Work

Background

I’ve been using SparkleShare for almost a year now and it has impressed me with how well it’s able to act as my Dropbox replacement. It took a little coaxing, mainly around setting up a unique ssh key pair just for SparkleShare, so that I could allow it to run both when I’m at home [...] Continue reading

Posted in git, one-liner, sparkleshare, Syndicated, tips & tricks | Leave a comment

[one-liner]: Using tcprobe to Detect a DVD’s Video Format, PAL or NTSC, via the Command Line

Background

Having kids I’m always dealing with DVDs, either backing them up or repairing them. Recently we received a bunch of DVDs from a friend of various kid movies. Some of them just refused to play in our DVD player and being a geek who’s curious I wanted to better understand why. Turns out the DVDs [...] Continue reading

Posted in DVD, fedora, one-liner, redhat, Syndicated, tips & tricks | Leave a comment

[one-liner]: Getting Started with Object Oriented Perl, Moose, and MooseX

Background

I’ve started to focus on getting more proficient with Object Oriented programming, specifically using Perl. I’ve used the more traditional approaches of OO in Perl and find them way too wordy, compared to a more modern language such as Ruby. So when I came across Moose and MooseX and was intrigued. They seemed to really [...] Continue reading

Posted in one-liner, OOP, perl, programming, Syndicated, tips & tricks | Leave a comment

[one-liner]: Opening CAD/CAM .dwg/.dxf Files under CentOS/Fedora/RHEL

Background

A co-worker of mine handed me some .dwg & .dxf files which I’d never seen before. Turns out they’re AutoCAD/AutoDesk files, but I had a hard time finding a decent viewer under Linux.

.dwg – a binary file format used for storing two and three dimensional design data and metadata
.dxf – Drawing Interchange Format, or [...] Continue reading

Posted in CAD, centos, fedora, one-liner, redhat, rhel, Syndicated, tips & tricks | Leave a comment

[one-liner]: Chatting on Facebook using Pidgin

Background

Here’s a quick tip on how to setup Pidgin so that you can use it to chat on Facebook, instead of the crappy web interface Facebook provides.

Solution

In case you didn’t know this, Facebook just uses the XMPP protocol for their chat server, so any XMPP chat client can do this. Here’s how I setup Pidgin. [...] Continue reading

Posted in chat, facebook, one-liner, pidgin, Syndicated, tips & tricks, XMPP | Leave a comment

[one-liner]: Getting Networking Info from the Command Line using NetworkManager’s nm-tool Command

Background

This is just a quick post to capture a pretty useful networking command line tool, nm-tool, that’s included with NetworkManager.

Solution

nm-tool is really nice in the sense that it takes information from a lot of other command line tools, (such as ifconfig, iwconfig, iwlist, etc.) and integrates it into a single command. For example:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# output from [...] Continue reading

Posted in centos, fedora, networking, one-liner, redhat, rhel, Syndicated, tips & tricks | Leave a comment