Skip to content

Instantly share code, notes, and snippets.

View rubenkr's full-sized avatar
🌴
On vacation

Robby D rubenkr

🌴
On vacation
View GitHub Profile
#!/bin/bash
echo "$(date): Script started with paramters {$1} and {$2}" >> /home/recordings.log
newfile=$(cut -c -4 <<<"$2")
path="$1"
#/usr/bin/ffmpeg -i "{$1}/{$2}".mkv -codec copy "{$1}/{$newfile}".mp4
# iOS compatible
/usr/bin/ffmpeg -i "{$1}/{$2}".mkv -c:v libx264 -crf 23 -c:a aac -movflags faststart "{$1}/{$newfile}".mp4
[Match]
Name=enp0s25.500
[Network]
DHCP=no
[Address]
Address=192.168.1.55/24
[NetDev]
Name=enp0s25.500
Kind=vlan
[VLAN]
Id=500
[Match]
Name=enp0s25
[Network]
DHCP=ipv4
;these are arbitrary names, but must match the *.netdev and *.network files
VLAN=enp0s25.100
VLAN=enp0s25.200
VLAN=enp0s25.300
VLAN=enp0s25.400
[Match]
Name=enp0s25.400
[Network]
DHCP=no
[Address]
Address=192.168.1.54/24
[Match]
Name=enp0s25.400
[Network]
DHCP=no
[Address]
Address=192.168.1.55/24
[Match]
Name=enp0s25.300
[Network]
DHCP=no
[Address]
Address=192.168.1.53/24
[Match]
Name=enp0s25.200
[Network]
DHCP=no
[Address]
Address=192.168.1.53/24
[Match]
Name=enp0s25.100
[Network]
DHCP=no
[Address]
Address=192.168.1.52/24
[NetDev]
Name=enp0s25.400
Kind=vlan
[VLAN]
Id=400