Skip to content

Instantly share code, notes, and snippets.

View dpritchett's full-sized avatar
🦅
microservice party

Daniel Pritchett ⚡ dpritchett

🦅
microservice party
View GitHub Profile
@dpritchett
dpritchett / 1) job-site-renderer.coffee
Created April 19, 2011 18:56
coffeescript jobsite renderer
$(document).ready ->
jobloader.initialize()
window.jobloader =
pulljobs: (callback) ->
$.getJSON '/jobs.json',
(data) ->
callback data
printjobs: (data) ->
@dpritchett
dpritchett / # bbctl - 2025-01-10_13-15-12.txt
Created January 10, 2025 19:58
bbctl (bigbang/tools-public/bbctl) on macOS 15.1 - Homebrew build logs
Homebrew build logs for bigbang/tools-public/bbctl on macOS 15.1
Build date: 2025-01-10 13:15:12
@dpritchett
dpritchett / naur.md
Last active October 2, 2024 15:17
Programming as Theory Building

Programming as Theory Building

Peter Naur, 1985

(copied from http://alistair.cockburn.us/ASD+book+extract%3A+%22Naur,+Ehn,+Musashi%22)

Introduction

The present discussion is a contribution to the understanding of what programming is. It suggests that programming properly should be regarded as an activity by which the programmers form or achieve a certain kind of insight, a theory, of the matters at hand. This suggestion is in contrast to what appears to be a more common notion, that programming should be regarded as a production of a program and certain other texts.

[5] pry(main)> def fname_matches?(person, match_this)
[5] pry(main)* person[:fname] == match_this
[5] pry(main)* end
=> :fname_matches?
[6] pry(main)> people = [{ fname: 'daniel', lname: 'pritchett' }, { fname: 'alice', lname: 'jones' }]
=> [{:fname=>"daniel", :lname=>"pritchett"}, {:fname=>"alice", :lname=>"jones"}]
[7] pry(main)> people.select { |person| fname_matches?(person, 'daniel') }
=> [{:fname=>"daniel", :lname=>"pritchett"}]
@dpritchett
dpritchett / swagger.yaml
Created March 26, 2020 15:33
pulseox openapi3 yaml
title: User
type: object
properties:
uid:
type: string
description: Possibly received from our auth frontend.
diagnoses:
type: object
required:
- timestamp
## Global Docker image parameters
## Please, note that this will override the image parameters, including dependencies, configured to use the global value
## Current available global Docker image parameters: imageRegistry and imagePullSecrets
##
# global:
# imageRegistry: myRegistryName
# imagePullSecrets:
# - myRegistryKeySecretName
# storageClass: myStorageClass
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC75bkAbHHFRwpWZkaJoSZoka8awsGBmzEJhDBDAa0sYF2M7aBisSWFkp2cIjy9Q3ifHDlT7oEggASlvx42mStiC1pDTHAHVJXNxeAmtgTucGXCoBuaMMQ5eMgDJ5H8/WUkGLeRCWzcPUx627AlosCcK9biNTK1RJakNZKP8hWLTVllDTSjaNyc1OCb+vbV3K1L39hauffreqwoQFnZwH0ZcJa8OD74BtbHA1hbVL62NFdGGdibjg10zjz3bIP50K8HFeJN5lcfzrpuDwRfCYYYL19ujdlKaEjAE/2IpDkRwRx/+RhLeR6r1aTxMRw09R+jlcXjcf4yaZ52LmQP52NF dpritchett@hubertus-bigend
e305b49 Removes freeze branch from client workload
9c71bde Merged in DEV-1833 (pull request #127)
281ebb0 Merged in djp/add-cam (pull request #126)
3baf3d8 Adds cam to reviewers list
e3dbcf7 Merged in add-ahmee-infra-pr (pull request #125)
0b1f976 Merged in DEV-1793-autogenerate-RC-PR-for-releases-repo (pull request #124)
8cf5489 Merged in pag/add-oppslevel-yaml (pull request #123)
7578412 Merged in djp/daily-releases (pull request #122)
27fcb44 Merged in DEV-1672/disable-freeze-schedule (pull request #121)
db4b4f8 Disable autofreeze and autopr schedules
daniel_pritchett:
groups:
bitbucket:
- developers
github:
- developers
docker_hub:
- developers
logins:
bitbucket: dpritchettgremlin
import boto3
from botocore.exceptions import ClientError
# from boto3 import ValidationException
import uuid
clt = boto3.client("events")
rule_name = f"cronValidationTestRule-{uuid.uuid1()}"