Jarinheit

Jarin Udom's blog for programming and other nerd shit

Git shortcut to remove all unstaged deleted files

Type this in a terminal window:

Now you can just type git rma and it will stage all unstaged deleted files!

Note: this may not work if your version of xargs doesn't support the -0 flag. It works on OS X Lion, that's all I can guarantee.

Filed under  //   git  

2011 Veterans Day Discounts and Freebies (or: How to Stuff Your Face For Free)

Much of this information comes from my pal Beverly, who used to be a lowly Information Systems Technician like me but is now a big shot division officer. :)

IMPORTANT: For most of these, you should bring your military ID or DD-214.

If you know of any more or have any corrections, please put them in the comments and I'll update the post. Otherwise, share this, tweet it, and send it to any active duty or veterans you may know!

 

 

Restaurants

Abuelo’s Mexican Food — Abuelo’s offerings vary by region, be sure to call ahead to see what the discounts or freebies are.

Applebees — All veterans and active duty military eat free from a limited menu at Applebee’s on Veterans Day. http://www.applebees.com/menu/vetsday

Chili’s — Veterans and active duty dine for free from a special limited six item menu on Veterans Day. (unconfirmed)

Golden Corral — Golden Corral Restaurants’ Military Appreciation Monday free dinner will be available on November 14, from 5 p.m. to 9 p.m. Military retirees, veterans, active duty, National Guard and Reserves are all welcome. http://www.goldencorral.com/military/

Hooters — All Veterans and active duty get 10 free boneless or traditional wings with a drink purchase. List of participating Hooters restaurants here: http://www.hootersveteransday.com/

Krispy Kreme — All active-duty, retirees & veterans get a free doughnut on Veterans Day. Be sure to call ahead to verify your local Krispy Kreme is participating.

McCormick & Schmick’s Seafood Restaurants — Participating McCormick & Schmick’s Seafood Restaurants offer a complimentary entree to vets from a special menu on a space available basis, online reservations are highly recommended. http://www.mccormickandschmicks.com/featured-promotion/Veterans-Appreciation-...

Spaghetti Warehouse — This offer is open to everyone to celebrate Veterans Day. Print the coupon here and you can get a serving of lasagna, spaghetti and meatballs, or any original recipe spaghetti entree for just 11¢ on November 11, 2011.

Outback Steakhouse — Veterans and active-duty military get a complimentary Bloomin’ Onion and non-alcoholic beverage from Nov 7th—11th. http://www.outback.com/companyinfo/veteransday.aspx

UNO's Chicago Grill — Get 19.43% off your purchase (excluding alcohol) from Nov 7—Nov 11th. https://www.facebook.com/UnoChicagoGrill?sk=app_142479139186668

Texas Roadhouse — Free lunch for military members and vets on Veterans day, between 11 am and 2 pm. ID or proof of service required. http://www.texasroadhouse.com/landing-pages/veterans-day

T.G.I. Friday’s — Active duty and veterans buy one get one entree free on Nov 11th. http://www.tgifridays.com/home/welcome.aspx

 

 

 

Retail

The Dollar General — 10% discount on entire purchase on Veteran’s Day. Offer good for all active-duty military, retirees, veterans, Guard/Reserve, & immediate family members. The coupon can be found in the store circular, or by asking an employe. Also good online from Nov 11-13, use Coupon Code VETERANSDAY. http://www2.dollargeneral.com/Ads-and-Promos/Salute-the-Troops/Pages/index.aspx

Home Depot — 10% discount for active duty and veterans EVERY DAY.

Lowe’s — 10% discount for active duty and veterans EVERY DAY.

Sam’s Club — Sam's Club is giving away 36,000 Hugo collapsible canes Nov 9th—11th for veterans in need of mobility assistance. Sam's Club membership is not required, but proof of military service may be required. http://www.hugosalutes.com/

Cabela’s Outdoor Store — Offers their employee discount to all veterans, active-duty military and reserves, law enforcement, fire and EMS personnel November 11-12. Discounts vary from 5% to 50%, depending on the item. (Unconfirmed, so call ahead)

Build-a-Bear Workshop – Members of the armed services including the Army, Navy, Marine Corps, Air Force, Coast Guard, and Reserve Officer Training Corps, will receive a 20% discount November 11-13 on any one transaction at Build-A-Bear Workshop.

Fashion Bug — 20% off all plus-size and misses clothing purchases with a copy of military ID or spouse’s military ID.

Sports Clips Haircuts — The men’s hair salon chain is offering a free haircut to active military and veterans on Veterans Day.

Foot Locker — Veterans, Service members (Active, Guard, and Reserve), and their immediate families with a Foot Locker Veterans Advantage Card receive a 20 percent discount every day of the year. That offer is good both online and at any store location, including Foot Locker, Lady Foot Locker, Kids Foot Locker, Footaction and Champs Sports — even on sale items.

 

How to redirect /+ to your Google Plus profile with Rails and Refraction

This is a quick little haxie to redirect the /+ path on your personal domain to your Google Plus profile, inspired by a post by Daniel Sandler on using .htaccess to do something similar. I'm not super big on the transparent URL thing, so I just did a plain 301 redirect, like so:

http://jarinudom.com/+

First off, you'll need to install the Refraction gem. The line that goes in config/environments/production.rb is incorrect (at least for Rails 3), so use this instead:

After that, toss this in config/initializers/refraction_rules.rb (or similar):

Make sure you replace the URL to my profile with the URL to yours. Now you're thinking with Circles™!

 

Note: You can also do this with Tumblr.

Refraction is also handy for doing www redirects :)

Filed under  //   Ruby on Rails  
Posted July 12, 2011

A simple campfire-bot plugin to check Bitcoin prices

Just whipped this up, enjoy! Fetches the latest price info from http://mtgox.com. Put it in plugins/bitcoin.rb and then add it to the plugin list in config.yml.

Uses joshwand's fork of campfire-bot: https://github.com/joshwand/campfire-bot

Filed under  //   Bitcoin   Ruby  
Posted June 9, 2011

Deconstructing credit card numbers

Media_httpwwwmintcomb_lcbbg

Reminds me of when my friend Dylan Owens figured out how to deconstruct barcodes in 8th grade (he even figured out the checksum). He makes robotic submarines now. :)

Posted May 5, 2011