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, 2021Yard Birds
Birds that have hatched and/or fledged in my yard.
Published on June 7, 2021Power
W = V * A
V = W / A
A = W / V
W = watts
V = volts
A = amperes
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
Published on January 27, 20212020 Top Listens
- Derrick Harriott
455 - Billy Swan
393 - Sault
348 - Harry Nilsson
226 - Jazz Spastiks
219 - The Deli
219 - Lee Dorsey
211 - Richard “Groove” Holmes
207 - Fiona Apple
182 - Wilco
168 - Burrito Brown
153 - Saib
149 - Ted Hawkins
149 - Sweeps
146 - emune
139 - The Menzingers
139 - Alphonse Mouzon
137 - Jim Ford
137 - Bully
123 - Gene Harris & The Three Sounds
121 - The Sea and Cake
121 - Built to Spill
120 - Run the Jewels
115 - Rush
114 - Wun Two
114 - Hot Snakes
112 - Shabazz Palaces
112 - Moses Boyd
111 - Eddie Henderson
110 - Yussef Kamaal
108 - Dr. Lonnie Smith
107 - Maggie Rogers
107 - Always Proper
103 - Pkew Pkew Pkew
103 - Tender Leaf
101 - Mose Allison
100 - New Tutenkhamen
100 - Ikebe Shakedown
95 - Real Estate
95 - Justin Townes Earle
94 - Smoke Trees
94 - FloFilz
93 - Adrian Younge
91 - Fastlife
91 - Undagawds
89 - Ronnie Foster
88 - Nathaniel Rateliff & the Night Sweats
86 - Brother Noland
82 - PUP
82 - PENPALS
81
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.shPublished 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, 20202019 Top Listens
- The Black Keys
291 - Sturgill Simpson
198 - Yo La Tengo
197 - Pkew Pkew Pkew
189 - Big K.R.I.T.
178 - Harry Nilsson
163 - Chance the Rapper
155 - Leon Bridges
153 - Maggie Rogers
149 - Michael Bublé
144 - White Denim
144 - PUP
141 - Ol’ Burger Beats
136 - The Beach Boys
128 - Neko Case
122 - Kurt Vile
116 - Big Star
109 - mclusky
109 - Built to Spill
103 - WESTERN SETTINGS
94 - Wilco
94 - Gucci Mane
93 - The Sea and Cake
91 - Twin Peaks
85 - DJ Shadow
84 - Dead Bars
78 - Mac DeMarco
76 - The Modern Lovers
75 - Bleached
74 - The Menzingers
74 - Merle Haggard
73 - Shannon and the Clams
72 - The Beatles
72 - Freddie Gibbs
71 - Nick Drake
71 - James Brown
69 - Nice As Fuck
68 - Guided by Voices
63 - Allah-Las
61 - Teebs
61 - Vince Guaraldi Trio
61 - Jeff Tweedy
60 - The Growlers
60 - Cornelius Brothers & Sister Rose
56 - Françoise Hardy
56 - Jay Som
56 - Miles Davis
54 - emune
53 - Neil Young
53 - John Denver & the Muppets
50
Me on a bike (2019/20 Season)
Race Down Spider Mountain – TTP Season Ender
Zombie Goat Enduro – Flat Rock Ranch
Dino Enduro – Dino State Park
Redemption Enduro
Published on December 20, 2019