This file contains hidden or 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 | |
| for drive in $(sg_scan -i | grep "SanDisk DO" -B 1 | awk '{print $1}' | grep /) | |
| do | |
| smartctl -a ${drive::-1} > /tmp/smart.info | |
| echo "Info for ${drive::-1}" | |
| grep "Product:" /tmp/smart.info | |
| grep "SMART Health Status:" /tmp/smart.info | |
| grep "Serial number:" /tmp/smart.info | |
| grep "Percentage used endurance indicator:" /tmp/smart.info | |
| grep "Logical block size:" /tmp/smart.info |
This file contains hidden or 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: boot_dryer | |
| platform: ESP8266 | |
| board: d1_mini | |
| # WiFi connection, correct these | |
| # with values for your WiFi. | |
| wifi: | |
| ssid: !secret ssid | |
| password: !secret wifi_password |
This file contains hidden or 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 | |
| # create custom bootable iso for CentOS 7 with kickstart | |
| if [ $# -lt 2 ] | |
| then | |
| echo "Usage1: $0 path2iso path2kickstart" | |
| exit 1 | |
| else | |
| if [ ! -f $1 ] | |
| then |