/etc/config/network
:
config interface 'loopback'
option ifname 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config globals 'globals'
#!/bin/bash | |
# Check if an argument has been provided | |
if [ $# -eq 0 ]; then | |
echo "No argument provided. Please enter the .eml file path:" | |
read file_path | |
else | |
file_path=$1 | |
fi |
#!/bin/bash | |
# Path to the presets folder | |
presetsFolder="./presets" | |
# Path to defaults.json | |
defaultsPath="./defaults.json" | |
# Temp file for jq output | |
tempFile=$(mktemp) |
#!/bin/bash | |
# Check if script is run as root | |
if [ "$EUID" -ne 0 ] | |
then echo "Please run as root" | |
exit | |
fi | |
# Check if required utilities are installed | |
for util in ip iptables ufw dnsmasq; do |
/etc/config/network
:
config interface 'loopback'
option ifname 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config globals 'globals'
# Install Balena cli: https://github.com/balena-io/balena-cli/blob/master/INSTALL.md | |
echo "balenaUrl: 'balena.coolab.org'" >> ~/.balenarc.yml | |
export NODE_EXTRA_CA_CERTS='/etc/ssl/private/ca.crt' | |
balena login |
#!/bin/sh | |
# /usb/bin/control_irrigation.sh | |
# Don't forget to: chmod +x /usb/bin/control_irrigation.sh | |
command=$1 | |
channel=$2 | |
IP=$(cat /tmp/dhcp.leases | grep ESP |cut -d " " -f 3| awk '{print $1}') | |
echo $1 on channel $2 on IP $IP | |
if [ $1 == 'start' ] |
//MESH-UP Trabalho Final | |
//IFRJ Niterói - Turma ARDUINO (manha) - Professor Luiz Felipe | |
//Grupo: Bruno Souza, Felipe Monteiro e Filipe Rimes | |
//Fontes: | |
//#Programa: NodeMCU e MQTT - Controle e Monitoramento IoT | |
//#Autor: Pedro Bertoleti | |
//code write by Moz for YouTube changel LogMaker360, 7-10-2015 | |
//code belongs to this video: https://www.youtube.com/watch?v=jTj1oMyJF_c | |
//KY018 Photo resistor module |
#Set user | |
useradd -ou 0 -g 0 admin | |
passwd admin | |
# Install nvm | |
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.35.1/install.sh | bash | |
export NVM_DIR="$HOME/.nvm" | |
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm | |
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion |
checking whether make supports the include directive... yes (GNU style) | |
checking for gcc... /Users/Sites/ssbcmobile/android/build/standalone-toolchains/arm-linux-androideabi/bin/arm-linux-androideabi-clang | |
checking whether the C compiler works... yes | |
checking for C compiler default output file name... a.out | |
checking for suffix of executables... Modulesarmeabi-v7a | |
checking whether we are cross compiling... configure: error: in `/Users/Sites/ssbcmobile/android/build/nodejs-native-assets-temp-build/nodejs-native-assets-armeabi-v7a/nodejs-project/node_modules/sodium-native/libsodium': | |
configure: error: cannot run C compiled programs. | |
If you meant to cross compile, use `--host'. | |
See `config.log' for more details | |
/Users/Sites/ssbcmobile/android/build/nodejs-native-assets-temp-build/nodejs-native-assets-armeabi-v7a/nodejs-project/node_modules/sodium-native/preinstall.js:119 |
I hereby claim:
To claim this, I am signing this object: