Chipotle Garlic Chicken Marinade

Here’s a quick marinade I came up with last night.

Mix together in a medium bowl:

  • 4 tsp Chipotle Tobasco
  • Juice of 1/2 lime
  • 2 tbsp Orange Juice
  • 2 cloves garlic, crushed
  • 1 tsp sugar

Make several shallow slices in the skin side and place in bowl and turn to coat:

  • 3 chicken breasts

Let merinate at least 10 minutes but probably not more than an hour. Grill or broil.

Mix all but chicken in a bowl or ziplock bag. Add chicken and marinate for at least 10 minutes. Cook on grill or broil.

In just a short amount of time all the flavors of this marinade come through quite nicely. The fresh lime helps a lot and I would not substitute bottled.

cooking, recipes, grilling

How Big Is That UNIX Directory?

Need to know how much space a directory and its contents are taking up on your UNIX system? Here’s what I use:

du -ks directory

The du command is used to summarize disk usage. Without any flags will show you the usage in blocks for every directory and subdirectory specified. Since the number of blocks varies by operating system we add the -k option to specify that we want the output in kilobytes. In many operating systems you could also use -h for a “human-readable” output with abbreviations like B for bytes, K for kilobytes, M for megabytes and so on.

The -s option lets us gather only the sum of the directory specified. Without the -s flag we would get output on every subdirectory as well as the specified directory.

$ du -k stuff
408560 stuff/patch
104 stuff/scripts
408688 stuff

One other thing that is useful for finding the biggest files and directories where there are a lot to sift through is to use a wildcard to size up multiple directories, then pipe the output of du to the sort command like this:

$ du -ks ./* | sort -n
0 ./sdtvolcheck727
8 ./mpztaWqc
8 ./speckeysd.lock
304 ./dtdbcache_:0
408688 ./stuff

With sort we use the -n option to order things by arithmetic value rather than alphabetic value (making 8 come before 304) so we see the largest things at the bottom.

Try it out. As always check the man pages for more info.

Easy Linux CommandsFor more tips like this check out my book Easy Linux Commands, only $19.95 from Rampant TechPress.

unix, solaris, linux, sysadmin, system administration, storage, storage administration

W3Schools.com WTF?

Inspired by the Oracle WTF blog I have my own WTF today.

www.w3schools.com has some outstanding tutorials on HTML, CSS, SQL, PHP, and many many more. So why does such a tech savvy site require that you type www before it’s domain name to get to their server?

Go ahead, try going to http://w3schools.com. Depending on your browser the error may vary, but you sure won’t get a site.

Now for those of you who are unfamiliar with DNS and domain name resolution, trust me, it would just take one additional line in their domain resolution table to make it work both ways. Really W3Schools… WTF?

Update: W3Schools has now set up a redirect for http://w3schools.com. Not sure if this story had anything to do with it, but thanks!

wtf, programming, website, dns