Skip to content

Instantly share code, notes, and snippets.

@dober
dober / mikrotik
Last active May 28, 2019 22:08
[mikrotik] ddns update
### set email by cli
/tool e-mail
set address=74.125.131.108 ### smtp.gmail.com
set port=587
set from=mikrotik@domain.tld
set user=gmail_user
set password=gmail_password
### test email
send to=dober@domain.tld subject="email test" body="email test" start-tls=yes
#!/bin/bash
for i in 1 2 3 4 5 6 ; do ssh-keygen -t rsa -b 2048 -C "$i" -N '' -f $i.key; done
@dober
dober / fingerpint.sh
Created March 1, 2017 09:50
get all fingerprints for .ssh/authorized_keys file
while read l; do
[[ -n $l && ${l###} = $l ]] && ssh-keygen -l -f /dev/stdin <<<$l;
done < .ssh/authorized_keys