diff --git a/_config.yml b/_config.yml index 1b2900d..b015300 100644 --- a/_config.yml +++ b/_config.yml @@ -37,6 +37,12 @@ exclude: include: - _redirects +defaults: + - scope: + path: "_posts" + values: + title: "" + pagination: collection: "posts" enabled: true diff --git a/_pictures/blog/microblog/2392282ca4.jpg b/_pictures/blog/microblog/2392282ca4.jpg new file mode 100644 index 0000000..61e7c82 Binary files /dev/null and b/_pictures/blog/microblog/2392282ca4.jpg differ diff --git a/_pictures/blog/microblog/2d443b5316.jpg b/_pictures/blog/microblog/2d443b5316.jpg new file mode 100644 index 0000000..ae6561a Binary files /dev/null and b/_pictures/blog/microblog/2d443b5316.jpg differ diff --git a/_pictures/blog/microblog/2e444e3e03.jpg b/_pictures/blog/microblog/2e444e3e03.jpg new file mode 100644 index 0000000..d3bf0b6 Binary files /dev/null and b/_pictures/blog/microblog/2e444e3e03.jpg differ diff --git a/_pictures/blog/microblog/40132ffef6.jpg b/_pictures/blog/microblog/40132ffef6.jpg new file mode 100644 index 0000000..e9693e5 Binary files /dev/null and b/_pictures/blog/microblog/40132ffef6.jpg differ diff --git a/_pictures/blog/microblog/4c8cabfd8e.jpg b/_pictures/blog/microblog/4c8cabfd8e.jpg new file mode 100644 index 0000000..96b0481 Binary files /dev/null and b/_pictures/blog/microblog/4c8cabfd8e.jpg differ diff --git a/_pictures/blog/microblog/5f50dfc4a0.jpg b/_pictures/blog/microblog/5f50dfc4a0.jpg new file mode 100644 index 0000000..9a0c47e Binary files /dev/null and b/_pictures/blog/microblog/5f50dfc4a0.jpg differ diff --git a/_pictures/blog/microblog/60c0973cd5.jpg b/_pictures/blog/microblog/60c0973cd5.jpg new file mode 100644 index 0000000..1935b35 Binary files /dev/null and b/_pictures/blog/microblog/60c0973cd5.jpg differ diff --git a/_pictures/blog/microblog/869b833df5.jpg b/_pictures/blog/microblog/869b833df5.jpg new file mode 100644 index 0000000..56e1de8 Binary files /dev/null and b/_pictures/blog/microblog/869b833df5.jpg differ diff --git a/_pictures/blog/microblog/8e1a2817b8.jpg b/_pictures/blog/microblog/8e1a2817b8.jpg new file mode 100644 index 0000000..bf3404c Binary files /dev/null and b/_pictures/blog/microblog/8e1a2817b8.jpg differ diff --git a/_pictures/blog/microblog/a4cb18e877.jpg b/_pictures/blog/microblog/a4cb18e877.jpg new file mode 100644 index 0000000..61f6f59 Binary files /dev/null and b/_pictures/blog/microblog/a4cb18e877.jpg differ diff --git a/_pictures/blog/microblog/b02258dd49.jpg b/_pictures/blog/microblog/b02258dd49.jpg new file mode 100644 index 0000000..9816b82 Binary files /dev/null and b/_pictures/blog/microblog/b02258dd49.jpg differ diff --git a/_pictures/blog/microblog/be5436a210.jpg b/_pictures/blog/microblog/be5436a210.jpg new file mode 100644 index 0000000..de680ec Binary files /dev/null and b/_pictures/blog/microblog/be5436a210.jpg differ diff --git a/_pictures/blog/microblog/c756a2987f.jpg b/_pictures/blog/microblog/c756a2987f.jpg new file mode 100644 index 0000000..e9cc95b Binary files /dev/null and b/_pictures/blog/microblog/c756a2987f.jpg differ diff --git a/_pictures/blog/microblog/ce4e2bd2f8.jpg b/_pictures/blog/microblog/ce4e2bd2f8.jpg new file mode 100644 index 0000000..a4f3596 Binary files /dev/null and b/_pictures/blog/microblog/ce4e2bd2f8.jpg differ diff --git a/_pictures/blog/microblog/e2465ca115.jpg b/_pictures/blog/microblog/e2465ca115.jpg new file mode 100644 index 0000000..1728fa6 Binary files /dev/null and b/_pictures/blog/microblog/e2465ca115.jpg differ diff --git a/_pictures/blog/microblog/e6d8ccd0d8.jpg b/_pictures/blog/microblog/e6d8ccd0d8.jpg new file mode 100644 index 0000000..4f558b3 Binary files /dev/null and b/_pictures/blog/microblog/e6d8ccd0d8.jpg differ diff --git a/_pictures/blog/microblog/fe0062e4fd.jpg b/_pictures/blog/microblog/fe0062e4fd.jpg new file mode 100644 index 0000000..d6832b0 Binary files /dev/null and b/_pictures/blog/microblog/fe0062e4fd.jpg differ diff --git a/_plugins/minimagick.rb b/_plugins/minimagick.rb index 402d41c..e27ed02 100644 --- a/_plugins/minimagick.rb +++ b/_plugins/minimagick.rb @@ -1,3 +1,5 @@ +require "mini_magick" + module Jekyll module MiniMagick def magick(image_path, options) diff --git a/_posts/2018-03-07-walk-don-t-walk.md b/_posts/2018-03-07-walk-don-t-walk.md new file mode 100644 index 0000000..4373a5c --- /dev/null +++ b/_posts/2018-03-07-walk-don-t-walk.md @@ -0,0 +1,15 @@ +--- +title: Walk/Don’t Walk +date: 2018-03-07T15:42:00-04:00 +layout: micropost +categories: ["microblog", "photos"] +image: "blog/microblog/869b833df5.jpg" +--- + + + + +So do I walk or don’t I? + + + diff --git a/_posts/2018-03-19-generations.md b/_posts/2018-03-19-generations.md new file mode 100644 index 0000000..5891cda --- /dev/null +++ b/_posts/2018-03-19-generations.md @@ -0,0 +1,16 @@ +--- +title: Generations +date: 2018-03-19T00:14:00-04:00 +layout: micropost +categories: ["microblog", "photos"] +image: "blog/microblog/2e444e3e03.jpg" +--- + +
+ {% picture photo-square blog/microblog/2e444e3e03.jpg alt="" %} +
+ + +The first Mario Kart and the most recent Mario Kart. The SNES cartridge on the left is 512KB and the Switch cartridge is most likely 8GB, based on the download size of the game (6.7GB). + + diff --git a/_posts/2018-04-16-trying-vimr-again-after-macvim-crashes-for-the-umpteenth-time.md b/_posts/2018-04-16-trying-vimr-again-after-macvim-crashes-for-the-umpteenth-time.md new file mode 100644 index 0000000..e6cd3e0 --- /dev/null +++ b/_posts/2018-04-16-trying-vimr-again-after-macvim-crashes-for-the-umpteenth-time.md @@ -0,0 +1,8 @@ +--- +date: 2018-04-16T15:55:07-04:00 +layout: micropost +categories: ["microblog", "blog"] +--- + +Trying VimR again after MacVim crashes for the umpteenth time. + diff --git a/_posts/2018-04-17-i-wish-my-body-could-decide-what-temperature-it-wanted-to-be.md b/_posts/2018-04-17-i-wish-my-body-could-decide-what-temperature-it-wanted-to-be.md new file mode 100644 index 0000000..02be9c9 --- /dev/null +++ b/_posts/2018-04-17-i-wish-my-body-could-decide-what-temperature-it-wanted-to-be.md @@ -0,0 +1,8 @@ +--- +date: 2018-04-17T23:03:39-04:00 +layout: micropost +categories: ["microblog", "blog"] +--- + +I wish my body could decide what temperature it wanted to be 🤒 + diff --git a/_posts/2018-05-05-i-want-to-start-a-band-and-call-it-the-flying-buttresses.md b/_posts/2018-05-05-i-want-to-start-a-band-and-call-it-the-flying-buttresses.md new file mode 100644 index 0000000..603eb95 --- /dev/null +++ b/_posts/2018-05-05-i-want-to-start-a-band-and-call-it-the-flying-buttresses.md @@ -0,0 +1,8 @@ +--- +date: 2018-05-05T16:22:28-04:00 +layout: micropost +categories: ["microblog", "blog"] +--- + +I want to start a band and call it “The Flying Buttresses”. + diff --git a/_posts/2018-05-15-desk.md b/_posts/2018-05-15-desk.md new file mode 100644 index 0000000..68937cb --- /dev/null +++ b/_posts/2018-05-15-desk.md @@ -0,0 +1,16 @@ +--- +title: Desk +date: 2018-05-15T10:31:12-04:00 +layout: micropost +categories: ["microblog", "photos"] +image: "blog/microblog/be5436a210.jpg" +--- + +
+ {% picture photo-square blog/microblog/be5436a210.jpg alt="" %} +
+ + +My custom built mechanical keyboard with WASD wrist rest and custom cable from Clark Kable. + + diff --git a/_posts/2018-08-25-multime.md b/_posts/2018-08-25-multime.md new file mode 100644 index 0000000..8b2e659 --- /dev/null +++ b/_posts/2018-08-25-multime.md @@ -0,0 +1,16 @@ +--- +title: Multime! +date: 2018-08-25T19:26:46-04:00 +layout: micropost +categories: ["microblog", "photos"] +image: "blog/microblog/ce4e2bd2f8.jpg" +--- + +
+ {% picture photo-square blog/microblog/ce4e2bd2f8.jpg alt="" %} +
+ + +The hall of mirrors at the EscherNYC exhibit in Brooklyn + + diff --git a/_posts/2018-08-25-pennsy-reflection.md b/_posts/2018-08-25-pennsy-reflection.md new file mode 100644 index 0000000..715eaa6 --- /dev/null +++ b/_posts/2018-08-25-pennsy-reflection.md @@ -0,0 +1,16 @@ +--- +title: Pennsy Reflection +date: 2018-08-25T11:32:38-04:00 +layout: micropost +categories: ["microblog", "photos"] +image: "blog/microblog/4c8cabfd8e.jpg" +--- + +
+ {% picture photo-square blog/microblog/4c8cabfd8e.jpg alt="" %} +
+ + +Sculpture outside of Pennsy, the food court at Penn Station, NY + + diff --git a/_posts/2018-09-11-i-m-sad-that-the-apple-in-ear-headphones-have-been-discontinued.md b/_posts/2018-09-11-i-m-sad-that-the-apple-in-ear-headphones-have-been-discontinued.md new file mode 100644 index 0000000..bf7e423 --- /dev/null +++ b/_posts/2018-09-11-i-m-sad-that-the-apple-in-ear-headphones-have-been-discontinued.md @@ -0,0 +1,8 @@ +--- +date: 2018-09-11T18:42:30-04:00 +layout: micropost +categories: ["microblog", "blog"] +--- + +I’m sad that the Apple In-Ear Headphones have been discontinued. They were an overlooked gem. Amazing sound quality for the price. + diff --git a/_posts/2018-09-18-a-href-http-web.md b/_posts/2018-09-18-a-href-http-web.md new file mode 100644 index 0000000..4382606 --- /dev/null +++ b/_posts/2018-09-18-a-href-http-web.md @@ -0,0 +1,15 @@ +--- +date: 2018-09-18T23:05:31-04:00 +layout: micropost +categories: ["microblog", "photos"] +image: "blog/microblog/e2465ca115.jpg" +--- + +
+ {% picture photo-square blog/microblog/e2465ca115.jpg alt="" %} +
+ + +The sky looked amazing after the thunderstorms today + + diff --git a/_posts/2018-10-31-a-href-http-web.md b/_posts/2018-10-31-a-href-http-web.md new file mode 100644 index 0000000..a229b22 --- /dev/null +++ b/_posts/2018-10-31-a-href-http-web.md @@ -0,0 +1,15 @@ +--- +date: 2018-10-31T18:00:54-04:00 +layout: micropost +categories: ["microblog", "photos"] +image: "blog/microblog/a4cb18e877.jpg" +--- + +
+ {% picture photo-square blog/microblog/a4cb18e877.jpg alt="" %} +
+ + +T-shirt weather today in New York City + + diff --git a/_posts/2019-05-21-wonderful-post-by-cheri-https-micro.md b/_posts/2019-05-21-wonderful-post-by-cheri-https-micro.md new file mode 100644 index 0000000..35519f9 --- /dev/null +++ b/_posts/2019-05-21-wonderful-post-by-cheri-https-micro.md @@ -0,0 +1,8 @@ +--- +date: 2019-05-21T12:30:52-04:00 +layout: micropost +categories: ["microblog", "blog"] +--- + +Wonderful post by [@Cheri](https://micro.blog/Cheri) on making the Internet fun again [www.cheribaker.com/can-we-ma...](https://www.cheribaker.com/can-we-make-the-internet-fun-again/) + diff --git a/_posts/2019-05-24-the-little-known-0.md b/_posts/2019-05-24-the-little-known-0.md new file mode 100644 index 0000000..d1098da --- /dev/null +++ b/_posts/2019-05-24-the-little-known-0.md @@ -0,0 +1,14 @@ +--- +title: The little known 0.5x display mode +date: 2019-05-24T13:12:00-04:00 +layout: micropost +categories: ["microblog", "photos"] +image: "blog/microblog/8e1a2817b8.jpg" +--- + +
+ {% picture photo-square blog/microblog/8e1a2817b8.jpg alt="" %} +
+ + + diff --git a/_posts/2019-05-24-this-fella-was-a-very-willing-subject.md b/_posts/2019-05-24-this-fella-was-a-very-willing-subject.md new file mode 100644 index 0000000..cbd4e1e --- /dev/null +++ b/_posts/2019-05-24-this-fella-was-a-very-willing-subject.md @@ -0,0 +1,16 @@ +--- +title: Bike Dragonfly +date: 2019-05-24T20:16:00-04:00 +layout: micropost +categories: ["microblog", "photos"] +image: "blog/microblog/5f50dfc4a0.jpg" +--- + +This fella was a very willing subject. He flew away a couple of times but kept coming back and sitting right here on this bike handle. + +
+ {% picture photo-square blog/microblog/5f50dfc4a0.jpg alt="" %} +
+ + + diff --git a/_posts/2019-05-26-epcot.md b/_posts/2019-05-26-epcot.md new file mode 100644 index 0000000..75e163b --- /dev/null +++ b/_posts/2019-05-26-epcot.md @@ -0,0 +1,14 @@ +--- +title: Epcot +date: 2019-05-26T11:02:10-04:00 +layout: micropost +categories: ["microblog", "photos"] +image: "blog/microblog/60c0973cd5.jpg" +--- + +
+ {% picture photo-square blog/microblog/60c0973cd5.jpg alt="" %} +
+ + + diff --git a/_posts/2019-05-26-walt-mickey.md b/_posts/2019-05-26-walt-mickey.md new file mode 100644 index 0000000..fff7cb1 --- /dev/null +++ b/_posts/2019-05-26-walt-mickey.md @@ -0,0 +1,14 @@ +--- +title: Walt & Mickey +date: 2019-05-26T17:44:15-04:00 +layout: micropost +categories: ["microblog", "photos"] +image: "blog/microblog/b02258dd49.jpg" +--- + +
+ {% picture photo-square blog/microblog/b02258dd49.jpg alt="" %} +
+ + + diff --git a/_posts/2019-05-30-big-finale.md b/_posts/2019-05-30-big-finale.md new file mode 100644 index 0000000..db79021 --- /dev/null +++ b/_posts/2019-05-30-big-finale.md @@ -0,0 +1,14 @@ +--- +title: Big Finale +date: 2019-05-30T18:40:42-04:00 +layout: micropost +categories: ["microblog", "photos"] +image: "blog/microblog/2392282ca4.jpg" +--- + +
+ {% picture photo-square blog/microblog/2392282ca4.jpg alt="" %} +
+ + + diff --git a/_posts/2019-05-30-happily-ever-after.md b/_posts/2019-05-30-happily-ever-after.md new file mode 100644 index 0000000..30d08dd --- /dev/null +++ b/_posts/2019-05-30-happily-ever-after.md @@ -0,0 +1,14 @@ +--- +title: Happily Ever After +date: 2019-05-30T18:41:13-04:00 +layout: micropost +categories: ["microblog", "photos"] +image: "blog/microblog/fe0062e4fd.jpg" +--- + +
+ {% picture photo-square blog/microblog/fe0062e4fd.jpg alt="" %} +
+ + + diff --git a/_posts/2019-06-02-calm-before-the-storm.md b/_posts/2019-06-02-calm-before-the-storm.md new file mode 100644 index 0000000..47f4f69 --- /dev/null +++ b/_posts/2019-06-02-calm-before-the-storm.md @@ -0,0 +1,16 @@ +--- +title: Calm before the storm +date: 2019-06-02T23:04:03-04:00 +layout: micropost +categories: ["microblog", "photos"] +image: "blog/microblog/c756a2987f.jpg" +--- + +As I cycled back after taking this photo, the heavens opened and I got drenched! + +
+ {% picture photo-square blog/microblog/c756a2987f.jpg alt="" %} +
+ + + diff --git a/_posts/2019-06-15-who-ya-gonna-call.md b/_posts/2019-06-15-who-ya-gonna-call.md new file mode 100644 index 0000000..8a3e78b --- /dev/null +++ b/_posts/2019-06-15-who-ya-gonna-call.md @@ -0,0 +1,14 @@ +--- +title: Who ya gonna call? +date: 2019-06-15T21:33:49-04:00 +layout: micropost +categories: ["microblog", "photos"] +image: "blog/microblog/e6d8ccd0d8.jpg" +--- + +
+ {% picture photo-square blog/microblog/e6d8ccd0d8.jpg alt="" %} +
+ + + diff --git a/_posts/2019-06-17-brompton-world-championship-usa.md b/_posts/2019-06-17-brompton-world-championship-usa.md new file mode 100644 index 0000000..c2161cd --- /dev/null +++ b/_posts/2019-06-17-brompton-world-championship-usa.md @@ -0,0 +1,14 @@ +--- +title: Brompton World Championship USA +date: 2019-06-17T13:27:36-04:00 +layout: micropost +categories: ["microblog", "photos"] +image: "blog/microblog/40132ffef6.jpg" +--- + +
+ {% picture photo-square blog/microblog/40132ffef6.jpg alt="" %} +
+ + + diff --git a/_posts/2019-06-25-the-loudness-of-american-airports-duncan-davidson-duncan.md b/_posts/2019-06-25-the-loudness-of-american-airports-duncan-davidson-duncan.md new file mode 100644 index 0000000..15e47fe --- /dev/null +++ b/_posts/2019-06-25-the-loudness-of-american-airports-duncan-davidson-duncan.md @@ -0,0 +1,15 @@ +--- +title: The loudness of American airports +date: 2019-06-25T09:57:45-04:00 +layout: micropost +categories: ["microblog", "blog"] +--- + +[Duncan Davidson](https://duncan.dev/posts/2019/05/europe-airports/) + +> As soon as you arrive in the United States from overseas, people are yelling +> at you. First, they’re telling you which queues to use depending on which +> passport you have. Somehow, the printed signage doesn’t suffice, though I have +> a hard time believing that uniformed officers quickly barking orders at people +> is of much use to a foreign-language speaker. + diff --git a/_posts/2019-06-29-take-better-selfies-aanand-prasad-https-medium.md b/_posts/2019-06-29-take-better-selfies-aanand-prasad-https-medium.md new file mode 100644 index 0000000..dc74209 --- /dev/null +++ b/_posts/2019-06-29-take-better-selfies-aanand-prasad-https-medium.md @@ -0,0 +1,14 @@ +--- +title: Take better selfies +date: 2019-06-29T14:34:17-04:00 +layout: micropost +categories: ["microblog", "blog"] +--- + +[Aanand Prasad](https://medium.com/@aanand/take-better-selfies-26089b2b3e4e) + +> We ignore the effects of unchecked masculinity on us at huge cost. It’s +> poisoning us quietly, from youth through adulthood, stifling us, making us +> both harmed and harmful. It’s on us to end this, and it starts with radical +> self-love. Let’s be beautiful and vulnerable together. + diff --git a/_posts/2019-07-05-brommie-on-the-beach.md b/_posts/2019-07-05-brommie-on-the-beach.md new file mode 100644 index 0000000..3190727 --- /dev/null +++ b/_posts/2019-07-05-brommie-on-the-beach.md @@ -0,0 +1,14 @@ +--- +title: Brommie on the beach +date: 2019-07-05T16:24:15-04:00 +layout: micropost +categories: ["microblog", "photos"] +image: "blog/microblog/2d443b5316.jpg" +--- + +
+ {% picture photo-square blog/microblog/2d443b5316.jpg alt="" %} +
+ + + diff --git a/scripts/microblog_import b/scripts/microblog_import new file mode 100755 index 0000000..1a06795 --- /dev/null +++ b/scripts/microblog_import @@ -0,0 +1,68 @@ +#!/usr/bin/env ruby + +require "date" +require "fileutils" +require "json" +require "pathname" +require "nokogiri" + +MICROBLOG_JSON_FILE = "_import/microblog/feed.json" + +json = File.read(MICROBLOG_JSON_FILE) + +data = JSON.parse(json) + +data["items"].each do |item| + images = [] + + categories = ["microblog"] + + published_at = DateTime.parse(item["date_published"]) + + body = item["content_text"] + + title = item["title"] || body.split(/(\n|\.)/).first + + parsed = Nokogiri::HTML.parse(body) + parsed.css("img").each do |tag| + images << tag[:src] + photo_filename = tag[:src].split("/").last + FileUtils.cp( + "_import/microblog/#{tag[:src]}", + "_pictures/blog/microblog/#{photo_filename}", + ) + + body = body.gsub(//, <<~PICTURE) +
+ {% picture photo-square blog/microblog/#{photo_filename} alt="" %} +
+ PICTURE + + categories << "photos" unless categories.include?("photos") + end + + categories << "blog" unless categories.include?("photos") + + contents = <<~MD + --- + title: #{title} + date: #{published_at} + layout: micropost + categories: #{categories} + #{images.first ? "image: \"blog/microblog/#{images.first&.split("/")&.last}\"\n" : ""}--- + + #{body} + MD + + if title.nil? + slug = "untitled" + else + slug = title.downcase.gsub(/[^a-z0-9]+/, " ").strip.gsub(" ", "-") + end + + post_filename = "_posts/#{published_at.strftime('%Y-%m-%d')}-#{slug}.md" + + File.open(post_filename, 'w') do |file| + file.write(contents) + end +end