Add yourself to the docker
group to be able to run containers as non-root (see Post-install steps for Linux).
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/sh | |
SINGLE_DOMAIN=${SINGLE_DOMAIN:-my.domain.org} | |
opkg install ca-certificates ca-bundle curl | |
hash acme.sh || ( curl https://get.acme.sh | sh && \ | |
ln -s /root/.acme/acme.sh /usr/bin/ ) | |
acme.sh --issue -d ${SINGLE_DOMAIN} --dns --force |
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
# Sources | |
# https://openwrt.org/docs/guide-user/network/wifi/guestwifi/guest-wlan | |
# https://openwrt.org/docs/guide-user/network/wifi/guestwifi/extras | |
WIFI_DEV="radio0" | |
WIFI_PASSWORD="guest" | |
# Configure network | |
uci -q delete network.guest | |
uci set network.guest="interface" |
Sometimes it seems like the first (and sometimes only) advice you get offered for almost any problem with a Raspberry Pi is "check your power supply". You think something like:
"hey, I'm using an official power supply sold as being matched with my Pi so how can there be any problem?"
You look up the specs then stick a controlled load across your supply and confirm that it can deliver the required number of Watts.
Yet your problems persist…
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/sh | |
set -e | |
# You can get the latest commit SHA by looking at the latest tagged commit here: https://github.com/microsoft/vscode/releases | |
commit_sha="08a217c4d27a02a5bcde898fd7981bda5b49391b" | |
archive="vscode-server-linux-x64.tar.gz" | |
owner='microsoft' | |
repo='vscode' | |
# Auto-Get the latest commit sha via command line. |
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
<% content_for :title do %>n8n Overview<% end %> | |
<div class="gridster"> | |
<H2>n8n Overview</H2> | |
<ul> | |
<li data-row="1" data-col="1" data-sizex="1" data-sizey="1"> | |
<div data-id="npm_final" data-view="Meter" data-title="npm Final" data-height="200" data-width="200" data-min="0" data-max="1" data-suffix="" style="background-color:#CB3837;"></div> | |
<i class="fas fa-flag-checkered icon-background"></i> | |
</li> |
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/sh | |
echo Controllo stato csrutil.... | |
SIP_status=`/usr/bin/csrutil status | awk '/status/ {print $5}' | sed 's/\.$//'` | |
if [ $SIP_status = "enabled" ]; then | |
echo Devo disabilitare il CSR dalla recovery mode per continuare! | |
echo Adesso si riavviera'' il sistema, premere simultaneamente i tasti Mac e R | |
echo Una volta avviata la recovery mode aprire il terminale e scrivere |
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 | |
DOCKER_BASE=/srv/docker | |
mkdir -p ${DOCKER_BASE}/traefik/container.conf | |
cat > ${DOCKER_BASE}/traefik/container.conf/docker-compose.yml <<EOF | |
version: '3.7' | |
services: | |
traefik: |
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 | |
set -euo pipefail | |
<...> | |
echo "Checking that agent is running" | |
until $(curl --output /dev/null --silent --head --fail http://localhost:51678/v1/metadata); do | |
printf '.' | |
sleep 1 | |
done | |
exit_code=$? | |
printf "\nDone\n" |
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 | |
#Setup | |
SQS_MAX_NUMBER_OF_MESSAGES=1 # Mensagens extraídas da fila por vez | |
SQS_WAIT_TIME_SECONDS=20 # Esperar quanto tempo por uma mensagem na fila | |
#Obtain queue URL | |
QUEUE_URL=$(aws sqs get-queue-url --queue-name "dreis-rampup-queue" --output text) | |
#Send message |
NewerOlder