-
Download the latest zip file from the latest release page. Look for a file name that ends with "-standalone.zip", for example: balena-cli-vX.Y.Z-linux-x64-standalone.zip.
-
Extract the zip file contents to any folder you choose, for example /home/balena. The extracted contents will include a balena-cli folder.
-
Open the WSL terminal inside the balena-cli folder and make the file executable by entering the command sudo
chmod +x balena
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
function injectPasscode(passcode) { | |
const input = document.getElementById('passcode'); | |
if (!input) return false; | |
input.value = passcode; | |
input.dispatchEvent(new Event('input', { bubbles: true })); | |
return true; | |
} | |
function pressSubmit() { | |
const button = document.getElementById('submit'); |
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 | |
# Usage function | |
usage() { | |
echo "Usage: $0 <input_video> [output_gif] [fps] [scale]" | |
echo "" | |
echo "Converts a video to a GIF with optional parameters for customization." | |
echo "" | |
echo "Arguments:" | |
echo " input_video Path to the input video file." |
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
# Create pallete | |
ffmpeg -i input.mp4 -vf "fps=15,scale=800:-1:flags=lanczos,palettegen" palette.png | |
# Create the gif using the pallete and save as output.gif | |
ffmpeg -i input.mp4 -i palette.png -lavfi "fps=15,scale=800:-1:flags=lanczos [x]; [x][1:v] paletteuse=dither=sierra2_4a" output.gif |
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
(function () { const zoomLevel = 5; document.body.style.zoom = zoomLevel; })(); |
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
class ScreenlyCli < Formula | |
desc "Command line interface is intended for quick interaction with Screenly through terminal." | |
homepage "https://github.com/Screenly/cli" | |
url "https://github.com/Screenly/cli.git", | |
tag: "v0.2.7" | |
version "v0.2.7" | |
license "MIT" | |
depends_on "rust" => :build |
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
/* | |
Originally from MQTT ESP8266 Example | |
Basic XIAO-ESP32 MQTTS example | |
Before starting , You should have | |
- MQTT Broker Name | |
- MQTT Broker Username | |
- MQTT Borker Password |
Step 1: Download Latest NodeJS verison:
curl -o node-v14.17.6-linux-armv7l.tar.xz https://nodejs.org/dist/v14.17.6/node-v14.17.6-linux-armv7l.tar.xz
Step 2: Extract the files by using the tar command:
tar -xvf node-v14.17.6-linux-armv7l.tar.x
Step 3: sudo cp -r node-v14.17.6-linux-armv7l/* /usr/local/sudo
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
# uncomment if you get no picture on HDMI for a default "safe" mode | |
#hdmi_safe=1 | |
# uncomment this if your display has a black border of unused pixels visible | |
# and your display can output without overscan | |
#disable_overscan=1 | |
# uncomment the following to adjust overscan. Use positive numbers if console | |
# goes off screen, and negative if there is too much border | |
#overscan_left=16 |
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
#include <SoftwareSerial.h> | |
#include <LiquidCrystal_I2C.h> | |
LiquidCrystal_I2C lcd(0x27, 16, 2); | |
String Grsp; | |
SoftwareSerial mySerial(3, 2); //SIM800L Tx & Rx is connected to Arduino #3 & #2 |
NewerOlder