Skip to content

Instantly share code, notes, and snippets.

View bhipple's full-sized avatar

Benjamin Hipple bhipple

View GitHub Profile
@bhipple
bhipple / hydra-1577994.md
Created March 28, 2020 00:29
hydra-1577994

Evals report

Report built at 2020-03-28 00:28:48 UTC

Built for evals:


@bhipple
bhipple / curl.md
Last active February 17, 2016 23:34

curl

This thing is awesome. Writing down here to note the syntax of how to send a JSON request to a REST API:

curl -u bhipple:$TOKEN -H "Content-Type: application/json" -X PATCH -d '{"location":"cmdline"}' "https://api.github.com/user"

Changes the location of the user to "cmdline" using this API.

Some useful REST endpoints on the GitHub API:

Click the merge button:
https://developer.github.com/v3/pulls/#merge-a-pull-request-merge-button

@bhipple
bhipple / chef.md
Last active January 21, 2016 05:58
Chef Notes

Kitchen

Kitchen tests a cookbook locally, using a .kitchen.yml file generated when the chef generate cookbook was originally run and then manually updated thereafter.

Once the .kitchen.yml file is up to date, I can run kitchen create (once) to create a VM with Vagrant, then kitchen converge to update that VM as the recipe changes.

If at any point I want to check state manually, use kitchen login.

@bhipple
bhipple / workflow.txt
Last active October 29, 2015 04:21
Jenkins Workflow
Code-like advantages:
- For loops
- Fork and join processes
- Functions with parameters
- Call other jobs within a workflow script
- Source control jobs
- Code review job configuration
Support for standardized Groovy templates that allow groups to write jobs that are only a few lines of tweaking.
- Can create libraries of helper functions for general use, stored in git