Execute a Perl code without ".pl" extension

July 28th, 2016

How to execute perl without having to type the .pl extension

For Windows you'll need to add ";.pl" to the PATHEXT environment variable. (given that the .pl extension is associated with the perl executable, which is always the case with a normal Active Perl installation.)

Ford Part Numbering Chart

July 28th, 2016

Ford Part Numbering Chart

How to Make Pasta in the Microwave

July 28th, 2016
  1. Get a microwave safe bowl and add 1/2 cup to 1 cup of pasta of your choice.
  2. Add water to the bowl so the pasta is a couple of inches deep. Remember that the pasta will grow in size, so be sure to have enough water. You can always drain out the extra if you add too much.
  3. Place the bowl on top of a plate and put it in the microwave just in case any water spills over.
  4. Take the suggested cooking time from the pasta box and add 3-4 minutes. Check on the pasta when it's done and sample a piece or two.
  5. If the pasta is at desired doneness, strain the pasta over the sink. If it’s not at desired doneness just put in the microwave for a few more minutes.

find - exec rm vs -delete

July 28th, 2016

Explanation of the differences between find 'exec rm' and 'delete' options.

How to use the find command to search for multiple extensions

July 28th, 2016

find . -name '*.jpg' -o -name '*.png'
find . -mtime -7 \( '*.jpg' -o -name '*.png' \) # all .jpg or .png images modified in the past week
find -regex '.*\.\(jpg\|png\)'
find -regextype posix-extended -regex '.*\.(jpg|png)'
find -E . -regex '.*\.(jpg|png)'