Marc Blase

Marc is 100% awesome

It’s on the internet, so it’s a thing.

Sorry, this is only here to illustrate a point. Just because something is on the internet doesn’t necessarily make it true, except for this case, in which it’s 100% true.

Published on August 13, 2021

Yard Birds

Birds that have hatched and/or fledged in my yard.

Screech Owls

Cooper Hawks

Published on June 7, 2021

Power

W = V * A
V = W / A
A = W / V

W = watts
V = volts
A = amperes

Published on April 6, 2021

Me on a bike (2021 Season)

Zombie Goat Enduro – Flat Rock Ranch

DNF this race — injury crash

O’Rock Epic Enduro – Big Cedar, OK – Ouachita National Forest

results

Published on January 27, 2021

2020 Top Listens

  1. Derrick Harriott
    455
  2. Billy Swan
    393
  3. Sault
    348
  4. Harry Nilsson
    226
  5. Jazz Spastiks
    219
  6. The Deli
    219
  7. Lee Dorsey
    211
  8. Richard “Groove” Holmes
    207
  9. Fiona Apple
    182
  10. Wilco
    168
  11. Burrito Brown
    153
  12. Saib
    149
  13. Ted Hawkins
    149
  14. Sweeps
    146
  15. emune
    139
  16. The Menzingers
    139
  17. Alphonse Mouzon
    137
  18. Jim Ford
    137
  19. Bully
    123
  20. Gene Harris & The Three Sounds
    121
  21. The Sea and Cake
    121
  22. Built to Spill
    120
  23. Run the Jewels
    115
  24. Rush
    114
  25. Wun Two
    114
  26. Hot Snakes
    112
  27. Shabazz Palaces
    112
  28. Moses Boyd
    111
  29. Eddie Henderson
    110
  30. Yussef Kamaal
    108
  31. Dr. Lonnie Smith
    107
  32. Maggie Rogers
    107
  33. Always Proper
    103
  34. Pkew Pkew Pkew
    103
  35. Tender Leaf
    101
  36. Mose Allison
    100
  37. New Tutenkhamen
    100
  38. Ikebe Shakedown
    95
  39. Real Estate
    95
  40. Justin Townes Earle
    94
  41. Smoke Trees
    94
  42. FloFilz
    93
  43. Adrian Younge
    91
  44. Fastlife
    91
  45. Undagawds
    89
  46. Ronnie Foster
    88
  47. Nathaniel Rateliff & the Night Sweats
    86
  48. Brother Noland
    82
  49. PUP
    82
  50. PENPALS
    81
Published on January 1, 2021

Process CSV file and curl request with its contents

#!/bin/bash
# Purpose: Read Comma Separated CSV File and cURL using contents

INPUT=$1
OLDIFS=$IFS
IFS=','
[ ! -f $INPUT ] && { echo "Please provide a CSV file"; exit 99; }
while read user_email first_name last_name Level start_issue start_date
do
    # curl request with contents from CSV and write output to file
    curl -m 10 -X POST --data API_Key=KEY_GOES_HERE --data Email=$user_email --data Program_Data=PROGRAM_DATA_GOES_HERE --data FirstName=$first_name --data LastName=$last_name https://API_ENDPOINT.TLD >> curl_output.json
	
done < $INPUT
IFS=$OLDIFS

Run this as, if saved as curl-csv.sh:

$ ./curl-csv.sh curl-csv.csv

If you get the “/bin/bash^M: bad interpreter: No such file or directory” error message you probably created the .sh file in Windows and are running in a Linux shell. Run the following command to rectify.

$ sed -i -e 's/\r$//' curl-csv.sh
Published on December 3, 2020

gulp.watch not firing with changed files when run in WSL

Using WSL Debian for dev and gulp.watch is not running when files are changed on the Windows side. Solution is to add {interval: 1000, usePolling: true} to the gulp.watch event.

For example, here’s the styles portion of my gulp.watch task.

gulp.watch([path.source + 'styles/**/*'], {interval: 1000, usePolling: true}, gulp.series('styles'));
Published on August 19, 2020

Match and replace content in WordPress the_title()

In a situation where content in the_title() needed to be italicized.

function fix_the_title( $title ) {

  $new_title = $title;
  $pattern = '/Content to Match/';
  $replace = '<em>$0</em>';
  $new_title = preg_replace($pattern, $replace, $new_title);

  return $new_title;
}
add_filter( 'the_title', 'fix_the_title' );

Add that to functions.php and you’re good.

Published on July 1, 2020

2019 Top Listens

  1. The Black Keys
    291
  2. Sturgill Simpson
    198
  3. Yo La Tengo
    197
  4. Pkew Pkew Pkew
    189
  5. Big K.R.I.T.
    178
  6. Harry Nilsson
    163
  7. Chance the Rapper
    155
  8. Leon Bridges
    153
  9. Maggie Rogers
    149
  10. Michael Bublé
    144
  11. White Denim
    144
  12. PUP
    141
  13. Ol’ Burger Beats
    136
  14. The Beach Boys
    128
  15. Neko Case
    122
  16. Kurt Vile
    116
  17. Big Star
    109
  18. mclusky
    109
  19. Built to Spill
    103
  20. WESTERN SETTINGS
    94
  21. Wilco
    94
  22. Gucci Mane
    93
  23. The Sea and Cake
    91
  24. Twin Peaks
    85
  25. DJ Shadow
    84
  26. Dead Bars
    78
  27. Mac DeMarco
    76
  28. The Modern Lovers
    75
  29. Bleached
    74
  30. The Menzingers
    74
  31. Merle Haggard
    73
  32. Shannon and the Clams
    72
  33. The Beatles
    72
  34. Freddie Gibbs
    71
  35. Nick Drake
    71
  36. James Brown
    69
  37. Nice As Fuck
    68
  38. Guided by Voices
    63
  39. Allah-Las
    61
  40. Teebs
    61
  41. Vince Guaraldi Trio
    61
  42. Jeff Tweedy
    60
  43. The Growlers
    60
  44. Cornelius Brothers & Sister Rose
    56
  45. Françoise Hardy
    56
  46. Jay Som
    56
  47. Miles Davis
    54
  48. emune
    53
  49. Neil Young
    53
  50. John Denver & the Muppets
    50
Published on January 6, 2020

Me on a bike (2019/20 Season)

Race Down Spider Mountain – TTP Season Ender


Want video instead?

Zombie Goat Enduro – Flat Rock Ranch

Dino Enduro – Dino State Park

Redemption Enduro

Published on December 20, 2019