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/bash | |
shopt -s globstar nullglob dotglob | |
echo "Filename,Duration,Bitrate,Size (GB),Width,Height" | |
for f in **/*; do | |
if [ ! -d "$f" ]; then | |
mediainfo_general=$(mediainfo --Output="General;%Duration/String3%,%OverallBitRate/String%" "$f") | |
mediainfo_video=$(mediainfo --Output="Video;%Width%,%Height%" "$f") | |
file_size=$(ls -s --block-size=G "$f" | awk '{print $1}' | sed 's/[^0-9]*//g' ) | |
echo "\"$f\",${mediainfo_general},${file_size},${mediainfo_video}" | |
fi |
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/bash | |
# Usage function, displays valid arguments | |
usage() { | |
echo "Usage: $(basename ${0}) [arguments] inputfile" 1>&2 | |
echo " -q qp, defaults to 18 for near lossless quality, higher value = lower quality." 1>&2 | |
echo -e "\nExample: $(basename ${0}) -q 22" 1>&2 | |
exit 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
gsettings set org.nemo.preferences context-menus-show-all-actions true |
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
dnf update | |
reboot | |
firewall-cmd --add-port=8123/tcp --permanent | |
firewall-cmd --reload | |
sudo useradd -rm homeassistant -G dialout | |
cd /srv | |
sudo mkdir homeassistant | |
sudo chown homeassistant:homeassistant homeassistant |
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
#include "Keyboard.h" | |
const int buttonPin = 4; // input pin for pushbutton | |
const int timePin = 10; // input pin for pushbutton | |
const int time_Ground = 16; // input pin for pushbutton | |
const int LED_Ground = 8; // input pin for pushbutton | |
const int LED = 9; // input pin for pushbutton | |
int previousButtonState = HIGH; // for checking the state of a pushButton | |
void setup() { |
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
esphome: | |
name: alarm | |
platform: ESP8266 | |
board: d1_mini | |
wifi: | |
ssid: '' | |
password: '' | |
web_server: |
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
esphome: | |
name: wsleaf | |
platform: ESP8266 | |
board: d1_mini | |
wifi: | |
ssid: '' | |
password: '' | |
mqtt: |
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
esphome: | |
name: bedroom_light | |
platform: ESP8266 | |
board: d1_mini | |
wifi: | |
ssid: '' | |
password: '' | |
web_server: |
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
esphome: | |
name: magic_home_01 | |
platform: ESP8266 | |
board: esp01_1m | |
wifi: | |
ssid: "" | |
password: "" | |
# Change wifi output power (added in 1.14.3) | |
#output_power: 15dB |
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
[Unit] | |
Description=iperf server | |
After=syslog.target network.target auditd.service | |
[Service] | |
ExecStart=/usr/bin/iperf -s | |
[Install] | |
WantedBy=multi-user.target |
NewerOlder