You can double-check the docker data directory with this, but I considered too dangerous to include in the rm -rf command.
docker info | grep 'Docker Root Dir' | grep -oE '/.*'| use quick_xml::events::Event; | |
| use quick_xml::{Reader, Writer}; | |
| /// Prettify XML by adding proper new lines and indentation. | |
| /// | |
| /// This uses the quick_xml library (https://github.com/tafia/quick-xml) to read/parse the given | |
| /// XML string and then write it to a string as indented XML. This isn't perfect and most likely | |
| /// not the most efficient. | |
| /// | |
| /// One strange behavior is that a closing element tag is not put on a new line if it follows a |
| #!/bin/bash | |
| # logs the temperature every minute | |
| # sends a message if it is too high or low or if it can't be measured | |
| # also sends a message at a given time every day | |
| #sensor ID (must be a DS18B20 sensor) | |
| SENSOR_ID="28-011453d372aa" | |
| # hour when to send the message | |
| REF_HOUR="17:00" | |
| # maximum temperature |
| # Controlling my Buva Qstream ventilation system using: | |
| # * A Wemos D1 mini lite (an ESP8266 based board) | |
| # * A Wemos power shield so I can power the Wemos from the ventilation units 12V supply. | |
| # * A simple PWM to 10V convertor like this: https://www.cheaptech.nl/pwm-signaal-te-voltage-converter-1-3-khz-0-10-v-pw.html | |
| # * The amazing ESPHome firmware tool: https://esphome.io | |
| # * Home Assistant to tie it all together: https://www.home-assistant.io | |
| # | |
| # I used to use a Raspberry Pi and some Python code for this. See https://gist.github.com/SqyD/a927ab612df767a0cc892bcde23d025c | |
| # The Wemos approach seems more stable and doesn't require external USB power. |
| sudo ln -s /usr/share/fontconfig/conf.avail/70-no-bitmaps.conf /etc/fonts/conf.d/ |
This was inspired by the concise works of jeff's Skinner Box
Primary Article to begin with:
Lets make sure that we have all the sheilds up!
| #!/bin/bash | |
| wpa_cli='wpa_cli -i wlp2s0' | |
| if [ -z "$1" ]; then | |
| $wpa_cli status | |
| elif [ "$1" == "c" ]; then | |
| $wpa_cli | |
| elif [ "$1" == "l" ]; then | |
| $wpa_cli list_networks |
Update root's mail recipient. Open /etc/aliases replacing administrator@example.tld with an administrator's email address. This is where logs will be emailed.
root: administrator@example.tld
Update the the default umask to 027. Edit the file /etc/init.d/rc and change the following setting:
umask 027
People
:bowtie: |
π :smile: |
π :laughing: |
|---|---|---|
π :blush: |
π :smiley: |
:relaxed: |
π :smirk: |
π :heart_eyes: |
π :kissing_heart: |
π :kissing_closed_eyes: |
π³ :flushed: |
π :relieved: |
π :satisfied: |
π :grin: |
π :wink: |
π :stuck_out_tongue_winking_eye: |
π :stuck_out_tongue_closed_eyes: |
π :grinning: |
π :kissing: |
π :kissing_smiling_eyes: |
π :stuck_out_tongue: |
| # A xterm-256color based TERMINFO that adds the escape sequences for italic. | |
| # | |
| # Install: | |
| # | |
| # tic xterm-256color-italic.terminfo | |
| # | |
| # Usage: | |
| # | |
| # export TERM=xterm-256color-italic | |
| # |