Skip to content

Instantly share code, notes, and snippets.

View ianfixes's full-sized avatar

Ian ianfixes

View GitHub Profile
@ianfixes
ianfixes / convert-lint-to-github-annotations-format.yaml
Created August 23, 2023 13:15
Convert colon-delimited linting report to GitHub Annotations format
# Pretty sure this will work,
run:
- |
gofmt -l . 2>&1
| jq -Rn '[
inputs
| split(":")
| {
"path": .[0],
"start_line": (.[1] | tonumber),
@ianfixes
ianfixes / README.md
Last active March 9, 2022 21:36
New Relic Swagger 2.0 (OpenAPI spec) for generating clients and documentation
@ianfixes
ianfixes / build-npm-packaging-tester.sh
Last active July 31, 2018 11:52
Test that your NPM prepare scripts are working properly as a part of GitLab CI
#!/bin/bash
#
# This script is for testing coffeescript (or other transpiled npm packages) on GitLab
#
# Designed to be put in a subdirectory of the repo under test, it generates a package.json and index.js
# for a dummy test project -- it will check that whatever project is in the parent directory (i.e. the
# root of your repo where package.json is) can properly prepare itself for installation when specified
# as a git:// dependency
#
# To do this, it literally specifies your package under test as a git:// dependency --
@ianfixes
ianfixes / gist:5784849
Created June 14, 2013 20:05
test_agent_instance_config_hasDevice running 4 times from single test instance
$ bin/nosetests ion.services.sa.instrument.test.test_instrument_management_service_integration:TestInstrumentManagementServiceIntegration.test_agent_instance_config_hasDevice
EEEE
======================================================================
ERROR: test_agent_instance_config_hasDevice ( ion.services.sa.instrument.test.test_instrument_management_service_integration:TestInstrumentManagementServiceIntegration.test_agent_instance_config_hasDevice )
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/iankatz/.virtualenvs/artoo/sdtkiai/coi-services/ion/services/sa/instrument/test/test_instrument_management_service_integration.py", line 484, in test_agent_instance_config_hasDevice
self.base_agent_instance_config(assign_fn, find_fn)
File "/Users/iankatz/.virtualenvs/artoo/sdtkiai/coi-services/ion/services/sa/instrument/test/test_instrument_management_service_integration.py", line 746, in base_agent_instance_config
refresh_pconfig