# ------------------- header ------------------- # Base script created by # Script by Tomas Kirnak, version 1.0.7 # If you use this script, or edit and # re-use it, please keep the header intact. # # For more information and details about # this script please visit the wiki page at # http://wiki.mikrotik.com/wiki/Failover_Scripting
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -e | |
while true | |
do | |
eval "$@" | |
done |
My house MikroTik runs a permanent tunnel to the offices of my job. DHCP configures the devices to send DNS requests to MikroTik, which then sends the requests to Google or forwards them to the DNS server of my job.
Job intranet = intranet.job.local
Job DNS Server = 192.168.90.1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$data = json_decode(file_get_contents('./data.json')); | |
$result = ''; | |
foreach ($data->songs as $song) { | |
$ffmpegCommand = sprintf( | |
'ffmpeg -ss %s -t %s -i {} \"%s.mp3\" && rm {}', | |
$song->start, | |
$song->duration, |
NewerOlder