profile
viewpoint
If you are wondering where the data of this site comes from, please visit https://api.github.com/users/technicalpickles/events. GitMemory does not store any data, but only uses NGINX to cache data for a period of time. The idea behind GitMemory is simply to give users a better reading experience.
Josh Nichols technicalpickles @Gusto Atlanta, GA https://pickles.dev Staff Engineer for @Gusto, Principal Whimsy Engineer for myself. Hobby hobbyist, husband, father, he/him

slackapi/hubot-slack 2265

Slack Developer Kit for Hubot

jkoelker/python-nest 143

Python API and command line tool for talking to the Nest™ Thermostat

sroberts/hubot-vtr-scripts 60

Scripts for making Hubot a CND Sidekick

quirkey/resque-metrics 55

Metrics for your Resque jobs and workers

gjtorikian/extended-markdown-filter 51

Some additional Markdown formatting, for use in HTML::Pipeline

avdi/firetower 42

A command-line interface to Campfire chats

jnewland/pulse 30

pls see https://github.com/railsmachine/pulse

gkoo/hubot-maps 28

A Hubot script for searching maps and directions

jnewland/capistrano-log_with_awesome 18

logging callbacks for capistrano

technicalpickles/ambitious-sphinx 15

Ambition adapter for Sphinx

push eventtechnicalpickles/dotfiles

Josh Nichols

commit sha e5d193ba1cf0f601ec4286b0cba88b5de345ba35

check for chruby if present

view details

Josh Nichols

commit sha b08e10b2a4ece99fdd7174ca29cef844fc05cb26

add missing brew_available

view details

Josh Nichols

commit sha 0de2015ec1fd79c2bc83c185a1515a9839f101c4

group macos things together

view details

Josh Nichols

commit sha cdf5789664e8117244a98bd834f903ae24628c62

re-enable vim plugins

view details

Josh Nichols

commit sha 64934632074f6fba5efaf718832a8f4fff55233c

fix installation of bobthefish the first time

view details

Josh Nichols

commit sha 8232ee9fb7a1799a56fdc1454529cb5e3e3929f5

fix bash check of fzf

view details

Josh Nichols

commit sha 985214f7e33057c7ad9b290fc0f182e021c6e5a1

Don't display untracked git files because it's too slow

view details

Josh Nichols

commit sha 62a60128bb4b52523405f4b387417c913c333855

Smarter aliasing of code, to handle better when code-insiders isn't present

view details

Josh Nichols

commit sha 76d0016e30df64aa7abcc98763376bb7e28262c4

comment out line that was causing issues

view details

push time in 4 hours

startedjethrokuan/z

started time in 8 hours

startedgsamokovarov/break

started time in a day

pull request commentffaker/ffaker

Add Number module

Could we get a gem release that includes this?

Volosh1n

comment created time in 8 days

delete branch technicalpickles/hookapp

delete branch : gitignore-results

delete time in 8 days

delete branch technicalpickles/hookapp

delete branch : require-doesnt-require-rb

delete time in 8 days

delete branch technicalpickles/hookapp

delete branch : fix-gli-require

delete time in 8 days

pull request commentttscoff/hookapp

Move require gli from bin/hook to lib/hook.rb

Thanks, appreciate it, and this gem!

technicalpickles

comment created time in 8 days

delete branch technicalpickles/hookapp

delete branch : rename-hooker

delete time in 8 days

issue commentVSCodeVim/Vim

'%' does not jump between 'def' and 'end', etc (matchit...)

There is https://marketplace.visualstudio.com/items?itemName=redguardtoo.matchit for jumping between parens. It doesn't seem to work well for end and whatnot.

I've tried adding a normal mode key binding for it, but that doesn't seem to work:

CleanShot 2021-09-17 at 16 11 17

    "vim.normalModeKeyBindings": [
    
        {
            "before": ["%"],
            "commands": "bookmarks.list"
        }
    ],
suan

comment created time in 11 days

pull request commenttechnicalpickles/pager_duty-connection

Support parsing `Array` response in `ParseTimeStrings`

Released as 2.0.1, thanks!

aricwalker

comment created time in 12 days

created tagtechnicalpickles/pager_duty-connection

tagv2.0.1

Ruby API wrapper for the PagerDuty REST API

created time in 12 days

push eventtechnicalpickles/pager_duty-connection

Josh Nichols

commit sha cd7de64e841977ba582b615c6f28acbb74ad89ab

version bump to 2.0.1.

view details

push time in 12 days

PR merged technicalpickles/pager_duty-connection

Support parsing `Array` response in `ParseTimeStrings`

👋 Hey @technicalpickles!

I've been using version 2.0.0 of this gem and spotted what I believe is an unhandled parsing case. I encounter the error when the PD API returns a response of type Array. It appears that parse will raise on anything other than Hash or ::Hashie::Mash.

Here's the stacktrace I was getting before the changes introduced in this PR:

/usr/local/bundle/gems/pager_duty-connection-2.0.0/lib/pager_duty/connection.rb:123:in `parse': Can't parse times of Array: [#<Hashie::Mash override=... status=201>, #<Hashie::Mash override=... status=201>, #<Hashie::Mash override=... status=201>, #<Hashie::Mash override=... status=201>, #<Hashie::Mash override=... status=201>] (RuntimeError)
	from /usr/local/bundle/gems/faraday-1.0.1/lib/faraday/response.rb:22:in `on_complete'
	from /usr/local/bundle/gems/faraday-1.0.1/lib/faraday/response.rb:12:in `block in call'
	from /usr/local/bundle/gems/faraday-1.0.1/lib/faraday/response.rb:65:in `on_complete'
	from /usr/local/bundle/gems/faraday-1.0.1/lib/faraday/response.rb:11:in `call'
	from /usr/local/bundle/gems/faraday_middleware-1.0.0/lib/faraday_middleware/request/encode_json.rb:26:in `call'
	from /usr/local/bundle/gems/pager_duty-connection-2.0.0/lib/pager_duty/connection.rb:74:in `call'
	from /usr/local/bundle/gems/pager_duty-connection-2.0.0/lib/pager_duty/connection.rb:54:in `call'
	from /usr/local/bundle/gems/pager_duty-connection-2.0.0/lib/pager_duty/connection.rb:25:in `call'
	from /usr/local/bundle/gems/pager_duty-connection-2.0.0/lib/pager_duty/connection.rb:36:in `call'
	from /usr/local/bundle/gems/faraday-1.0.1/lib/faraday/rack_builder.rb:153:in `build_response'
	from /usr/local/bundle/gems/faraday-1.0.1/lib/faraday/connection.rb:492:in `run_request'
	from /usr/local/bundle/gems/pager_duty-connection-2.0.0/lib/pager_duty/connection.rb:210:in `run_request'
	from /usr/local/bundle/gems/pager_duty-connection-2.0.0/lib/pager_duty/connection.rb:197:in `post'
        ...

Here's the response example for the POST /schedules/{id}/overrides call that produces the above error:

[
    {
        "status": 201,
        "override": {
            "start": "2021-03-09T05:00:00Z",
            "end": "2021-03-09T17:00:00Z",
            "user": {
                "id": "P37CSDJ",
                "type": "user_reference",
                "summary": "Scott",
                "self": "https://api.pd-staging.com/users/P37CSDJ",
                "html_url": "https://pdt-braythwayt.pd-staging.com/users/P37CSDJ"
            },
            "id": "Q3X6MJ1LUKD6QW"
        }
    },
    {...},
    {...}
]

After the changes introduced in this PR, the output of the parsed response in my sample case (scheduling multiple overrides) is as follows (response modified to remove personal information):

[#<Hashie::Mash override=#<Hashie::Mash end=2021-10-11 22:00:00 UTC ... start=2021-10-11 14:00:00 UTC user=... status=201>, #<Hashie::Mash override=#<Hashie::Mash end=2021-10-12 22:00:00 UTC ... start=2021-10-12 14:00:00 UTC ... status=201>, ..., ..., ...]

Thanks for taking a look! Let me know if there's anything else I should add here.

+2 -0

0 comment

1 changed file

aricwalker

pr closed time in 12 days

push eventtechnicalpickles/pager_duty-connection

Aric Walker

commit sha 4b243285730e1fe6b95169dc82cabaede35b9359

Include case to handle Array response parsing

view details

Josh Nichols

commit sha b16a511634d32c3f5379e38d155a328a448908ce

Merge pull request #39 from aricwalker/parse-time-strings-array Support parsing `Array` response in `ParseTimeStrings`

view details

push time in 12 days

startedleits/MeetingBar

started time in 12 days

pull request commentGusto/buildkite-builder

Use ruby alpine for smaller docker image

Should we add a step to the pipeline to make sure the built docker image runs? I would have expected it to fail if there was a problem running.

tmcg-gusto

comment created time in 13 days

push eventGusto/buildkite-builder

Josh Nichols

commit sha 635ec4ebc9283aa52972607aa98ac6a69d9623b3

README tweaks (#52) * Run markdownlint on README * RubyGem, not Rubygem * mark Buildkite::Builder as preformatted in code of conduct section

view details

push time in 13 days

delete branch Gusto/buildkite-builder

delete branch : readme-tweaks

delete time in 13 days

PR merged Gusto/buildkite-builder

README tweaks

I use a markdown lint plugin for VScode, and it spotted a few things around whitespace around headers, and code fences missing a language. Also:

  • corrected Rubygem to RubyGem
  • added backticks around the Buildkite::Builder name in the footer
+18 -12

0 comment

1 changed file

technicalpickles

pr closed time in 13 days

issue commentGusto/buildkite-builder

Add pipeline validation

I did some exploration on this. There are a few gems out there for JSON validation, which can generally stand in for YAML validation too.

There's a few gems for this.

The JSON Schema website only mentions json_schemer for Ruby implementations. I think because it is the only that supports all the draft.

I tested both... I ran into a problem where json-schema doesn't fails with an error because the pipeline schema uses draft 6 which json-schema doesn't support.

I had slightly better success with jsonschemer in getting it to validate. Right now it thinks the generated file isn't valid, but I haven't been able to get out specific errors yet. I'm not sure if it's lack of familiarity with JSON schemas, the gem, or this gem yet though 😅 I'll push up a draft PR with more info.

That all said, I'm wondering how much benefit there is to doing local validation, when uploading to buildkite will be the real way to validate the thing works. We'll find out pretty quick if the schema changes in a way that affects builds.

drwl

comment created time in 13 days

issue closedGusto/buildkite-builder

Github repo regex should support resolving without .git suffix

REPO_REGEX = /github\.com(?::|\/)(.*)\.git\z/.freeze

This regex should be made to support https://github.com/Gusto/buildkite-builder and https://github.com/Gusto/buildkite-builder.git.

Potential fix: REPO = ENV['BUILDKITE_REPO'][/github\.com:(.+)/, 1].freeze

closed time in 13 days

drwl

issue commentGusto/buildkite-builder

Github repo regex should support resolving without .git suffix

Looks like this was fixed in https://github.com/Gusto/buildkite-builder/pull/33

drwl

comment created time in 13 days

PR opened Gusto/buildkite-builder

README tweaks

I use a markdown lint plugin for VScode, and it spotted a few things around whitespace around headers, and code fences missing a language. Also:

  • corrected Rubygem to RubyGem
  • added backticks around the Buildkite::Builder name in the footer
+18 -12

0 comment

1 changed file

pr created time in 13 days

create barnchGusto/buildkite-builder

branch : readme-tweaks

created branch time in 13 days

push eventtechnicalpickles/fish-yvm

Josh Nichols

commit sha 74f548674c0b2dc8723e1bb2b3202f982fbaee1c

fix error about --no-progress-meter not being applicable

view details

Josh Nichols

commit sha e59bf0cd2486970c180b7153f74b2fd45c825e4b

Fix warning about universal variable overshadowing global variable

view details

push time in 18 days

fork technicalpickles/fish-yvm

Yarn version manager for the Fish shell :fish: :heart:

fork in 18 days

push eventtechnicalpickles/alfred-system-audio

Josh Nichols

commit sha 365754479c3855a3d245de855813ca1ed2c7edba

Refactoring

view details

Josh Nichols

commit sha c2b8ca8a4f9adffc2ba39082b722b71c30a31f93

refactor, using map instead of iterating

view details

Josh Nichols

commit sha 1e3d3ea0c2caf679fd80fb0688a503f1aed37198

add terminal table output

view details

Josh Nichols

commit sha 8fabfd6da18f936cd9f0ddc6a68d89df1c5fe607

rename command struct

view details

Josh Nichols

commit sha 7c32a6fcca3c8bc7a946583e4ba3796f319acaac

add classes for outputting format. some other light refactorings

view details

push time in 23 days

push eventtechnicalpickles/dotfiles

Josh Nichols

commit sha 2ff85d943b8082dd76fae3b028f9f3765c571f84

Add detection of gpg to gitconfig

view details

push time in a month

push eventtechnicalpickles/dotfiles

Josh Nichols

commit sha 8d3083e4d65b13b5fa5b1e53c231f5d0974825f8

add gpg stuff

view details

push time in a month