Simple directory listing for sorting, easy reading

Ever run into one of those times when you need to get the filenames out of a directory. You only want the filenames, and not all that other junk that normally comes with the output of the “ls” command?

Introducing the “-1″ (that’s numeral one) option to ls. This will give you only what you want: filenames.

Example out put of ll or ls -la:
It’s kinda messy, right?

[root@HMUFUJNFS02 network-scripts]# ll
total 264
-rw-r–r– 1 root root 147 Apr 16 14:43 22APR2014-ifcfg-bond1.131
-rw-r–r– 1 root root 145 Apr 16 14:44 22APR2014-ifcfg-bond2.133
-rw-r–r– 1 root root 142 Apr 16 14:44 22APR2014-ifcfg-bond2.134
-rw-r–r– 1 root root 146 May 7 2013 ifcfg-bond0
-rw-r–r–. 1 root root 101 Apr 22 2013 ifcfg-bond0.129
-rw-r–r– 1 root root 145 Apr 29 2013 ifcfg-bond1
-rw-r–r–. 1 root root 147 Apr 22 2013 ifcfg-bond1.131
-rw-r–r– 1 root root 146 May 7 2013 ifcfg-bond2
-rw-r–r– 1 root root 145 Apr 29 2013 ifcfg-bond2.133
-rw-r–r– 1 root root 142 May 2 2013 ifcfg-bond2.134

—- —-

Now check out the ls -1 option:
Nice and clean. Now we can pipe that to a file or into another command.

[root@HMUFUJNFS02 network-scripts]# ls -1
22APR2014-ifcfg-bond1.131
22APR2014-ifcfg-bond2.133
22APR2014-ifcfg-bond2.134
ifcfg-bond0
ifcfg-bond0.129
ifcfg-bond1
ifcfg-bond1.131
ifcfg-bond2
ifcfg-bond2.133
ifcfg-bond2.134

Happy Linuxing!

K-Dog

When it rains, it pours

That’s both adapters in 24 hours. This one was hooked up to my laptop.

Dammit.

Dammit.

I knew I should have looked for monitors with DVI/HDMI connectors instead of HDMI/VGA so I wouldn’t need these damn adapters.

Wizards of the Coast- D&D Character Test

What type of D&D Character are you?
Play this test a couple of times to see what might be of interest to you:
http://www.wizards.com/dnd/class/index.asp


D&D Home PageWhat Class Are You?Build A CharacterD&D Compendium

Technically, it was still plugged in

My second monitor on my primary computer went out. Checked the cable on the monitor and it was attached. Checked the cable on the PC side and…

Uh…

…the plug had separated from the case and was hanging by one row of pins. Had to pull the plug out of the DisplayPort socket out with pliers.

Guess it’s time to find some better hardware.

FNL goes to Moab

Despite being a “nerd blog”, the FNL crew enjoys spending time outside. Last Saturday, naucum, nathanthefake, my girlfriend and I took my Jeep Cherokee XJ down to Moab for Easter Jeep Safari. We did the Seven Mile Rim trail with about 30 other Jeeps, one Land Cruiser, one Toyota truck, and an FJ Cruiser.

The entire Seven Mile Rim crew. Naucum is busy raiding my trail mix.

The entire Seven Mile Rim crew. Naucum is busy raiding the trail mix.

The trail had a little bit of everything – slickrock, sandy double track, creek crossings, and rocky terrain. Overall the trail was relatively mild – Red Rock 4-Wheelers (who organize the Easter Jeep Safari) claim it can be done with stock tires and no lockers, but having a mild lift definitely helped me get up some of the more interesting obstacles.

When all else fails, use more throttle.

After watching a TJ get a little tippy trying to climb this wall, naucum decided that when it was my turn, the best place to be was Not In The Jeep.

My favorite moment of the day was climbing through a narrow rocky section – I got up over one of the rocky shelves and paused for a second, and the spotter said “Just keep going”. What’s that? Use more throttle? DON’T MIND IF I DO.

A WK2 Grand Cherokee completed the entire trail, but unfortunately suffered some body damage – he clipped a rock, denting his rear quarter panel and knocking off the rear flare. Apparently he also smashed his front air dam trying to climb over a rock. Dude definitely earned the “Trail Rated” badge that adorned his Jeep.

All in all, a good day was had. I think I’ll plan on coming down for Easter Jeep Safari next year – but I’ll definitely be out in Moab before then.

Death and Taxes

“In this world nothing can be said to be certain except
death and taxes.”

 -Benjamin Franklin, in a letter to Jean-Baptiste Leroy 1789.

 

deathmtaxes11

Well, in order to motivate me to actually do my taxes (it’s about time, right?) I thought I would throw on some Metal and get to work! I always hate tax time and therefore put it off until I can’t any more.

So I went to the FreeFillableForms website to file my Federal taxes. I was able to log in quickly and start banging away, filling up the text boxes. God, remember when there was no online tax service and you had to use one of those ancient pencil things? So, everything was good and this wasn’t turning out to be the Spirit Crusher that I thought it would be. Even getting a refund.

Then I went to the Utah State online tax site. This caused me some frustration. I couldn’t seem to log in at all. I double checked  my previous account info – “yup, that’s all correct, WTF? why can’t I log in?”  So I clicked around a bit and then I found some thing on the Utah state site referring to Silverlight.  What?!  Why is a state website using a proprietary, closed source program! Microsoft Silverlight! Damnit don’t the web-geeks at the state know this will cause issues? Even with Novell’s hearty attempts to clone it for Linux with “MoonLight“, it still is a PITA for Linux users everywhere. This made me want to “Scream Bloody Gore“.  The neighbors could probably hear me yelling my battle cry of “Open Standards For ALL!!!”

For a while I thought I was doomed. I keep looking though, determined. Eventually I stumbled onto some part of the Utah state site which allowed me to create a new account. So far, so good, I’m thinkin Chrome and Fedora, getting the job done. I get through the state site clickies, checkboxes and text boxes. All set, right? Wait, why does it say that I owe $3000 to Utah?! Bastards!!!    “Oh,  K-Dog, just double check your maths, alright?” Ok so I do. Whoops, looked like I skipped one section. Add that section… recalculate…  YES!  Utah Tax Owed is $0.00. Take that, Utah.

So, knowing that I’m getting money back from the US and not owing Utah (first time, ever) gave me a feeling of Spiritual Healing“. Alright, so that bloody ritual is over for one more year.

Happy Tax Time!

K-Dog

BoardGamer Rewards from Game Night Games in SLC

GNG-email_hed2_31

Yeah! I finally got my first payout from my Customer Loyalty account with Game Night Games in SLC!! Not only do I get to enjoy hours of fun with my friends, but I also get back a small percent of of the money I’ve spent on games, miniatures,  dice and paints at Game Night Games.

If only I could get back a percent of the money I’ve spent on beer for FNL game nights. Sigh…

Here’s my first reward letter:

Dear Kevin,

Game Gold is our way of thanking you for shopping with us. Your Game Gold Reward is equal to 5 percent of your game-related purchases with us for the previous quarter of the year (i.e. items purchased January 1 – March 31, 2014, excluding food/drink and event registration fees). To redeem your Game Gold on your next in-store purchase, tell us what your customer number is when you check out and we’ll look up the amount of your reward. If you don’t know your customer number, it’s “666not-really”. We can also look up your customer number and Game Gold amount for you by your first and last name at the register. You do not need to bring a printout of this email with you as we have your Game Gold amount for Q1 2014 on record in-store at the front desk. You have until June 30, 2014 to spend your Game Gold and it must be used on a single purchase.

Game Gold Amount:

$ CashMoneyBaby!!

Customer Rewards Card       
Game Night Games 2148 South 900 East, Suite 2, Salt Lake City, UT 84106
Phone: 801.467.2400
Please contact us if you have any questions. We really, really appreciate your friendship and your business. Let us know how we can make your experience in the store more fun!!!

Sh!t- Where’d my “Quick-Draft” go to?

Lost. Forever. That’s where.

1- Start a new Quick Draft.
2- Rant about the bash shell.
3- Click Save Draft.
4- Loose draft to the vortex which is the internet bit bucket.
5- Repeat.
6- Curse.
7- Google.

Apparently this is a bug which has appeared in the last few days when some people have been using v.3.8.x

More sadness details here:

https://wordpress.org/support/topic/quick-draft-doesnt-save-the-posts-all-lost

How’myGonna add to: http://www.fridaynightlinux.com

Thought I’d give, y’all a heads up.

K-Dog

Oops.

For some reason, I didn’t see the problem with releasing the IP of the machine I was connected to.

Setting Up A VPN (or: I’m an idiot)

Someone I know is going overseas and was looking for a way to secure his network connection – basically route his traffic to some US-based node that he knew was secure (well, more secure than some public AP).  And I thought, “I know! I’ll set up a VPN! It can’t be that hard!”

I’m not a network guy, nor am I a sysadmin. I’m just a software developer with enough working knowledge (and patience) to set up a JBoss server, make sure it works, and then start throwing .ear files on it. I don’t even use Linux like the rest of the FNL crew – all four of my home rigs run some form of Windows. This VPN was going on Win8.1, with the client being Win7.

So after trying and abandoning OpenVPN (read: I got tired of editing config files and ragequit), I ended up downloading the SoftEther VPN Server, which presents a nice GUI setup, easy certificate generation, a built-in dynamic DNS system if you’re hosting at home (like me), and some… other settings I don’t really understand (to be fair, the Virtual Layer 3 Switch Setting basically says “don’t touch this unless you know what you’re doing”, which sounds ominous). I got an L2TP/IPSec VPN running in 10 minutes or so, created a couple of test users, punched some holes in my firewall (ugh), and tried to test it. Which is where things went sideways.

Failure 1: I tried to test the DDNS… while on my own network. Doesn’t work like that. Took me like 20 minutes to figure that out.
Failure 2: Tried to get nathanthefake to connect to it to test. I don’t think I ever gave him the passkey. Probably why he got that “security error” message. (Sorry.)

Eventually, I realized I could set up a VPN connection on my phone, and that seemed to work. I also connected to the VPN through the built in Win7 VPN client (though connecting to your own LAN seems silly). The Win7 client doesn’t default to L2TP/IPSec, but SoftEther provides instructions.

And that’s how I spent my Sunday night.