gyptazy

@gyptazy@gyptazy.ch

Believer in the power of open-source & community-driven innovation.

Former AS20621 NetOp that loves FreeBSD & illumos. Currently mostly in DevOps & developing (Python, Rust). Contributes to & . Evaluating and production usage of hardware/software.

Projects:
* BoxyBSD.com - A free VM hosting service to provide some value back to the community.
* manpageblog.org - A static blog generator in manpage design.
* QualvoSec - A security patch management tool.
Bloghttps://gyptazy.ch
GitHubhttps://github.com/gyptazy
Xhttps://twitter.com/gyptazy
0 ★ 0 ↺
in reply to »

gyptazy »
@gyptazy@gyptazy.ch

@stefano@bsd.cafe Thanks a lot! Fun fact, just needed something like this today. But there may be some black box & minimal systems where parsing the json output requires more parsing with grep, awk etc.

Therefore, I just created a PR (https://brew.bsd.cafe/BSDCafe/checkmyip/pulls/1) which will return just the raw IP by requesting the context path /raw. So you can directly use it in shell scripts like:

ipv4=$(curl -4 myip.bsd.cafe/raw)
ipv6=$(curl -6 myip.bsd.cafe/raw)

History