Skip to content

Instantly share code, notes, and snippets.

@jankowskib
Last active October 31, 2017 19:18
Show Gist options
  • Save jankowskib/af44f01cb25e0a0b2238f33176f95ce4 to your computer and use it in GitHub Desktop.
Save jankowskib/af44f01cb25e0a0b2238f33176f95ce4 to your computer and use it in GitHub Desktop.

Revisions

  1. jankowskib revised this gist Oct 31, 2017. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion github_search.sh
    Original file line number Diff line number Diff line change
    @@ -1,2 +1,4 @@

    for i in {1..34}; do curl -v -H "Authorization: token XXXX" -H 'Accept: application/vnd.github.mercy-preview+json' "https://api.github.com/search/code?q=cmd+in:path+path:include/dt-bindings/lcm/+extension:dtsi&page=$i" >> test2.json; done
    for i in {1..34}; do curl -v -H "Authorization: token XXXX" -H 'Accept: application/vnd.github.mercy-preview+json' "https://api.github.com/search/code?q=cmd+in:path+path:include/dt-bindings/lcm/+extension:dtsi&page=$i" >> test2.json; done
    #then
    cat test2.json | ack 'name.*dtsi' | sort -u
  2. jankowskib created this gist Oct 31, 2017.
    2 changes: 2 additions & 0 deletions github_search.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,2 @@

    for i in {1..34}; do curl -v -H "Authorization: token XXXX" -H 'Accept: application/vnd.github.mercy-preview+json' "https://api.github.com/search/code?q=cmd+in:path+path:include/dt-bindings/lcm/+extension:dtsi&page=$i" >> test2.json; done