Skip to content

Instantly share code, notes, and snippets.

@warddr
warddr / gist:2f6273aa313defd3d370fce8518a463e
Last active August 23, 2025 14:33
mikrotik gps tracker (untested)
:local TrackerId "1"
:local Gps [ /system/gps/monitor once as-value ];
:if ($Gps->"valid" = true) do={
:local speed [:pick ($Gps->"speed") 0 [:find ($Gps->"speed") "."]];
:local altitude [:pick ($Gps->"altitude") 0 [:find ($Gps->"altitude") "."]];
:local voltage [/system health get number=0 value ]
:local temperature [/system health get number=1 value ]
:local cellinfo [/interface lte monitor lte1 once as-value ]
:local urlEncoded
#all credits: https://gist.github.com/leonjza/f35a7252babdf77c8421/forks
import socket
class Netcat:
""" Python 'netcat like' module """
def __init__(self, ip, port):

Keybase proof

I hereby claim:

  • I am warddr on github.
  • I am warddr (https://keybase.io/warddr) on keybase.
  • I have a public key whose fingerprint is 0CFA 93FD F6F3 A499 C603 0596 BC35 8D39 FCA3 0E00

To claim this, I am signing this object:

5 bakken duvel
3 bakken karmeliet
3 bakken chimay Blauw
2 bakken Westmalle Dubbel
2 bakken Westmalle Trippel
2 bakken orval
2 bakken palm
2 bakken Kriek Bellevue
-----------------------
kriek Bacchus - 37,5 cl
€ 2,35
Kriek Bellevue - 30 cl
€ 1,05
Kriek Boon - 37,5 cl
€ 2,70