Skip to content

Instantly share code, notes, and snippets.

@whamtet
Created July 10, 2020 00:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save whamtet/0bd0dfbf7a508ead6d774045130e47d0 to your computer and use it in GitHub Desktop.
Save whamtet/0bd0dfbf7a508ead6d774045130e47d0 to your computer and use it in GitHub Desktop.
#!/usr/local/bin/planck
(require '[planck.core :refer [*in* slurp]])
(require '[planck.shell :refer [sh]])
(->> "ifconfig"
sh
:out
(re-find #"inet (192\S+)")
second
(sh "pbcopy" :in))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment