Skip to content

Instantly share code, notes, and snippets.

@refabr1k
refabr1k / DhcpReporter
Last active February 13, 2024 23:34
Mikrotik dhcp lease notification using telegrambot
:local newanimal [("lease status = ".[$leaseBound]." | ".[$"lease-hostname"]." | ".[$leaseActIP]." | ".[$leaseActMAC])]
/tool fetch "https://api.telegram.org/botAPIKEY/sendmessage\?chat_id=CHATID&text=Movement in the animal farm!%0a $newanimal" keep-result=no;
@refabr1k
refabr1k / gist:1a70cbc5f0c77a558462495e3fb96555
Created April 8, 2020 03:44
Python GET and POST request using json parameters
import requests
import json
for x in range(0,10):
# GET captcha id and answer
r = requests.get("http://127.0.0.1:3000/rest/captcha/")
data = r.json()
@refabr1k
refabr1k / iterm2-solarized.md
Created March 8, 2020 04:44 — forked from kevin-smets/iterm2-solarized.md
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)

Default

Default

Powerlevel10k

Powerlevel10k