Skip to content

Instantly share code, notes, and snippets.

View MrRar's full-sized avatar

Johannes Fritz MrRar

View GitHub Profile
# DHCP to DNS for MikroTik
# Tested on RouterOS v6.49.7
#
# Copy and paste this script into:
# IP->DHCP Server->[Your DHCP Server]->Lease Script
#
# Based on script from: https://forum.mikrotik.com/viewtopic.php?t=119469#p823635
# Changes from original script:
# - DHCP clients with no hostname get a DNS entry based on the MAC address instead of the IP
# - DHCP domain suffix is optional. If none is present, the hostname is registered in DNS with no suffix.
@MrRar
MrRar / animated favicon.html
Created January 3, 2017 21:50
animated favicon example
<!doctype html>
<html>
<head>
<link rel="icon"/>
</head>
<body>
<script>
var on = false;
var link = document.querySelector("link");
function toggle() {

Keybase proof

I hereby claim:

  • I am mrrar on github.
  • I am mrrar (https://keybase.io/mrrar) on keybase.
  • I have a public key whose fingerprint is 8F0E 6461 B92F 2EA5 CCAB 7F1D 729B 4CD4 B711 793D

To claim this, I am signing this object:

@MrRar
MrRar / menuicon.html
Created August 13, 2016 15:48
animated menu icon
<!doctype html>
<html>
<body>
<div id="menuIcon">
<style>
#menuIcon{
padding: 12.5px;
width:25px;
height:25px;
line-height: 0;