Skip to content

Instantly share code, notes, and snippets.

View mattevans's full-sized avatar
💻

Matty Evans mattevans

💻
View GitHub Profile
@mattevans
mattevans / pb_module_replacements.txt
Created October 2, 2019 09:15
pb_module_replacements.txt
// Fix github.com/gogo/protobuf@v0.0.0-20190410021324-65acae22fc9: invalid pseudo-version: revision is shorter than canonical (65acae22fc9d)
replace github.com/gogo/protobuf v0.0.0-20190410021324-65acae22fc9 => github.com/gogo/protobuf v1.2.2-0.20190723190241-65acae22fc9d
[
{
"value": "America/Los_Angeles",
"name": "Los Angeles"
},
{
"value": "Australia/Melbourne",
"name": "Melbourne"
},
{
[
{
"group": "America",
"zones": [{
"value": "America/Adak",
"name": "Adak"
},
{
"value": "America/Anchorage",
"name": "Anchorage"
[{
"tz": "Pacific/Auckland",
"region": "Pacific",
"zone": "Auckland",
"display": "(GMT+13:00) Auckland"
},
{
"tz": "America/Los_Angeles",
"region": "America",
"zone": "Los_Angeles",
@mattevans
mattevans / poptimezones.json
Created June 25, 2018 09:09
Populate Timezones in JSON format
[{
"tz": "Africa/Bissau",
"region": "Africa",
"zone": "Bissau",
"display": "(GMT+00:00) Bissau"
}, {
"tz": "Europe/Athens",
"region": "Europe",
"zone": "Athens",
"display": "(GMT+02:00) Athens"
@mattevans
mattevans / remove-non-reporters.sh
Last active July 26, 2016 23:08
Remove non-reporting NewRelic servers
# Requires curl, jq and xargs
curl -X GET 'https://api.newrelic.com/v2/servers.json' \
-H "X-Api-Key:YOUR_API_KEY_HERE" \
| jq -r '.servers | .[] | select(.reporting!=true) | .id' \
| xargs -I % curl -X DELETE https://api.newrelic.com/v2/servers/%.json \
-H "X-Api-Key:YOUR_API_KEY_HERE"

Keybase proof

I hereby claim:

  • I am mattevans on github.
  • I am mattevansnz (https://keybase.io/mattevansnz) on keybase.
  • I have a public key whose fingerprint is 279F 8EE6 CA69 170E 2BF4 1FCE 4F3F E622 E20C 88E5

To claim this, I am signing this object: