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
#!/usr/bin/env python3 | |
""" | |
Script for Raspberry PI to plot and record data from DS18B20 sensors. | |
To run it: | |
1. python3 -m venv my_venv | |
2. source my_venv/bin/activate | |
3. pip install aiofiles plotext | |
4. ./graph_temperature.py --help |
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
[build-system] | |
requires = ["poetry-core"] | |
build-backend = "poetry.core.masonry.api" | |
[tool.poetry] | |
name = "somepackage" | |
version = "1.2.3" | |
description = "test" | |
authors = ["test <test@test.com>"] |
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
Make sure libxml2-devel, libxslt-devel and libiconv-devel are installed: | |
$ gem install nokogiri -- --use-system-libraries --with-xml2-include=/usr/include/libxml2 --with-xml2-lib=/usr/lib --with-xslt-dir=/usr/include/libxslt --with-iconv-include=/usr/include --with-iconv-lib=/usr/lib |
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
noarch=$1 | |
pkg_line=$(dpkg --get-selections | grep -v 'deinstall' | cut -f1) | |
mapfile -t policy < <(apt-cache policy $pkg_line) | |
[[ $? -ne 0 ]] && exit 1 | |
num_lines=${#policy[@]} | |
num_pkgs=$(echo $pkg_line | wc -w) | |
i=0 | |
declare -A repo_installed | |
declare -A repo_updates | |
while [[ $i -le $num_lines ]] |