Skip to content

Instantly share code, notes, and snippets.

@chrisdone
Created February 8, 2019 14:53
Show Gist options
  • Select an option

  • Save chrisdone/f19a98e66056be447c746afe78f81df7 to your computer and use it in GitHub Desktop.

Select an option

Save chrisdone/f19a98e66056be447c746afe78f81df7 to your computer and use it in GitHub Desktop.

Revisions

  1. chrisdone created this gist Feb 8, 2019.
    1 change: 1 addition & 0 deletions stack-find-resolvers
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    find ~/Work -name stack.yaml | xargs grep -o '^resolver: \([^#]*\)'
    1 change: 1 addition & 0 deletions stack-resolvers
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    find ~/Work -name stack.yaml | xargs grep -oh '^resolver: \([^#]*\)' | sort | uniq
    1 change: 1 addition & 0 deletions stack-snapshots
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    du -hc ~/.stack/snapshots/* | egrep 'snapshots/.*linux/[^/]*$'