Glossary:
- md: multiple devices
command | description |
---|---|
cat /proc/mdstat |
show status of all raids |
mdadm --detail /dev/md0 |
detailed status of raid md0 |
<?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, |
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
#!/bin/sh | |
set -e | |
while true | |
do | |
eval "$@" | |
done |
# ------------------- 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
In many cases, it can be very useful to send a command to a Windows from Linux. In my case, I was given this need when trying to shutdown a computer remotely via command line and then integrate said command into Node-RED.
Take these simple steps and you can get them done quickly.
Follow the instructions given by Microsoft for the installation and configuration of the service: OpenSSH Install FirstUse.
Telegraf is a highly modular software provided by InfluxData that allows us to configure numerous Inputs and Outputs to collect any information.
In this case I have done the tests with my MikroTik hEX S router.
Mikrotik provides you with a MIB file with the OID addresses of its Routers.
Create a file in /etc/telegraf/telegraf.d/
with extension .conf
with the following content:
I saw a very good offer for a Wi-Fi Smart Plugs with an Energy Monitoring and I couldn't resist.
The plug was of the [TREEYE] brand (I had not heard it in my life) but I saw that they were [TUYA] and I said to myself... they sure are compatible with [tuya-convert]. ERROR!
I was surprised that [tuya-convert] didn't work and decided to open it for manual flashing. Oh My God! They didn't have an [ESP8266] but a [WB2S module]!