Skip to content

Instantly share code, notes, and snippets.

@ollyg
Last active January 7, 2018 19:38
Show Gist options
  • Save ollyg/29ba2028550901b70c2e6bd0ff9679d8 to your computer and use it in GitHub Desktop.
Save ollyg/29ba2028550901b70c2e6bd0ff9679d8 to your computer and use it in GitHub Desktop.
netdisco docker notes
curl -s https://api.github.com/repos/netdisco/netdisco-mibs/tags | \
jq '.[]|.tarball_url|select(test("tarball/\\d+\\.\\d+$"))' | \
sort -rg | head -n1 | xargs -n1 curl -L | tar --strip-components=1 -zxf -
curl -s https://api.github.com/repos/netdisco/netdisco/tags | \
jq '.[]|.name|select(test("^\\d+\\.\\d+$"))|"git://github.com/netdisco/netdisco.git@"+.' | \
sort -rg | head -n1 | xargs -n1 cpanm --notest --local-lib $NETDISCO_HOME/perl5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment