Skip to content

Instantly share code, notes, and snippets.

View kolobus's full-sized avatar

Mihail «Kolo» Fedorov kolobus

View GitHub Profile
@kolobus
kolobus / ip-cached.sh
Created June 26, 2022 00:33
Fetch new IP and cache it to shared memory
#!/bin/bash
if [ ! -f "/dev/shm/node-ip" ]; then
curl -s4 checkip.amazonaws.com > /dev/shm/node-ip
echo "*********** IP renewed *************"
fi
nn_ipaddress=$(cat /dev/shm/node-ip)
echo $nn_ipaddress
@kolobus
kolobus / geofeed.csv
Created January 30, 2024 01:57
Geofeed
2a10:cc40:cc40::/44 IL IL-TA Petah Tiqwa
2a0b:4e00::/29 CH CH-ZH Zurich
2a10:2f01:21a::/48 IL IL-TA Petah Tiqwa