Josh's Blog - Introducing Gistblog 🎉
Published on 2021-12-05
tl;dr checkout Gistblog here
tl;dr checkout Gistblog here
Post | Published |
---|---|
Introducing Gistblog 🎉: Blog your little ❤️ out using GitHub Gists | 2021-12-06 |
Pecan Pie 🥧 Recipe: Sweet sugary goodness. | 2021-11-24 |
Reboot: New blog, who dis. | 2021-11-15 |
Hello internet, I wanted to share a pretty easy pecan pie recipe that just about anyone can do. There's so much sugary goodness that it still tastes good even if it doesn't come out perfect! If you try it out, let me know what you think.
It's been a long time since I last blogged about anything. It's been a long time since I've felt like I had something to share. TBH I've been in a bit of a slump for a bit. Definitely a mental slump the last year or so, no thanks to covid. (Getting my booster next week 🙌 💉) But I've been in a professional slump for several years now. Feeling very little passion for what I do or for tech in general. Which has led to deep apathy for my work. Among other things, I feel like I haven't grown much professionally if I'm being honest with myself.
.PHONY: all base64 update_schema | |
all: base64_encode update_schema | |
base64_encode: buildspec.yaml | |
$(eval base64_encoded := $(shell cat *.yaml | base64)) | |
update_schema: schema.json | |
@cat *.json | jq --arg base64_buildspec $(base64_encoded) '.name=$$base64_buildspec' |
@patch('boto3.client') # Mock the boto3.client call to prevent using the boto3 library | |
def test_find_newest_artifact(mock_client): # Because we used the @patch decorator we need to add an argument for our mock'd client call | |
""" | |
test find_newest_artifact returns a properly formatted string | |
""" | |
# The normal "list_objects" function will return a dict. | |
# One key in the dict is "Contents" which is an list of the bucket objects. | |
# Each item in the "Contents" list has several keys, but if you look at the "find_newest_artifact" | |
# there are only two we are interested in: "Key" and "LastModified". So we need to fake a | |
# "list_objects" call and return a slimmed down version of the response we expect. |
namespace :rails do | |
desc 'Remote rails console' | |
task :console, roles: :app do | |
run_interactively "rails console #{rails_env}" | |
end | |
desc 'Remote dbconsole' | |
task :dbconsole, roles: :app do | |
run_interactively "rails dbconsole #{rails_env}" | |
end |