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
| sudo apt install curl gnupg -y | |
| curl -fsSL https://repo.jellyfin.org/ubuntu/jellyfin_team.gpg.key | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/jellyfin.gpg | |
| echo "deb [arch=$( dpkg --print-architecture )] https://repo.jellyfin.org/$( awk -F'=' '/^ID=/{ print $NF }' /etc/os-release ) $( awk -F'=' '/^VERSION_CODENAME=/{ print $NF }' /etc/os-release ) main" | sudo tee /etc/apt/sources.list.d/jellyfin.list | |
| sudo apt update && sudo apt install jellyfin -y |
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 groovy | |
| /** | |
| * List all Git branches of a repo. | |
| * @author thabet.amer@gmail.com | |
| * @since Jenkins 2.204.1 | |
| * @params String url for Git repo URL, String credentialID, Bool activeChoice if ActiveChoice plugin used, String defaultBranch | |
| * @return String array of branch names | |
| * | |
| * Dependencies: |
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
| # Fabfile to: | |
| # - update the remote system(s) | |
| # - download and install an application | |
| from fabric import Connection | |
| from fabric import task | |
| import os | |
| import environ | |
| root = environ.Path(__file__) - 1 # one folder back (/manage - 3 = /) |
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
| # Board | |
| # https://s.click.aliexpress.com/e/_9IDl91 | |
| # ESPHome docs: | |
| # - https://esphome.io/components/display/waveshare_epaper.html | |
| # - https://esphome.io/components/spi.html#spi | |
| # - https://esphome.io/components/display/index.html#formatted-text | |
| substitutions: | |
| esphome_name: esp32_ttgo_t5 |
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
| # https://stackoverflow.com/questions/35773299/how-can-you-export-the-visual-studio-code-extension-list | |
| # creating a file with all extensions | |
| code --list-extensions > code_extensions.txt | |
| # installing from a file | |
| cat code_extensions.txt | xargs -L 1 code --install-extension |
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
| git clone https://github.com/WiringPi/WiringPi.git && \ | |
| cd WiringPi && \ | |
| ./build && \ | |
| cd gpio && \ | |
| chmod +x pintest && \ | |
| ./pintest |
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
| mkdir -pv /home/$USER/.local/bin && \ | |
| cd /tmp && wget -c https://install.speedtest.net/app/cli/ookla-speedtest-1.1.1-linux-armhf.tgz && \ | |
| tar -xvf ookla-speedtest-1.1.1-linux-armhf.tgz && \ | |
| chmod +x speedtest && \ | |
| mv speedtest /home/$USER/.local/bin && \ | |
| speedtest --accept-license --accept-gdpr |
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 | |
| # Special thanks for @rgaudin to share your project | |
| # based on https://github.com/rgaudin/bard-image | |
| if [ "$EUID" -ne 0 ] | |
| then echo "Please run as root" | |
| exit | |
| fi |
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
| # https://lukems.com/en/how-to-install-node-exporter-on-linux/ | |
| wget https://github.com/prometheus/node_exporter/releases/download/v1.3.1/node_exporter-1.3.1.linux-armv6.tar.gz -O node_exporter-1.3.1.linux-armv6.tar.gz | |
| tar xzvf node_exporter-1.3.1.linux-armv6.tar.gz | |
| sudo cp node_exporter-1.3.1.linux-armv6/node_exporter /usr/local/bin/ | |
| sudo useradd -r -s /bin/false node_exporter |
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
| # https://www.observability.blog/monitoring-pi-hole-with-prometheus/ | |
| # https://github.com/eko/pihole-exporter | |
| sudo curl https://github.com/eko/pihole-exporter/releases/download/v0.3.0/pihole_exporter-linux-arm --output /usr/local/bin/pihole_exporter | |
| sudo useradd -r -s /bin/false pihole_exporter | |
| # sudo chgrp pihole_exporter /usr/local/bin/pihole_exporter | |
| sudo chown pihole_exporter:pihole_exporter /usr/local/bin/pihole_exporter |