Skip to content

Instantly share code, notes, and snippets.

View EleotleCram's full-sized avatar

Marcel Toele EleotleCram

  • Amsterdam, The Netherlands
View GitHub Profile
@EleotleCram
EleotleCram / idf-docker
Created July 16, 2024 14:59
Espressif IDF wrapper script; use any IDF version without ever installing it...
#!/bin/bash
# A generic idf-docker wrapper script.
# This script must either be named like idf-v4.4.6, idf-v5.0.5, etc. (Select a tag from: https://hub.docker.com/r/espressif/idf/tags),
# or you can rename it like idf-docker and 'busybox symlink' to it using such names. (It will automatically use the version deduced from the name.)
#
# Afterwards use it just like idf.py [ARGS, ...] but instead write e.g.: idf-v4.4.6 [ARGS, ...]
die() {
echo "$1" 1>&2
@EleotleCram
EleotleCram / install-google-chrome-to-folder
Created October 8, 2024 12:08
Install a google-chrome .deb to a folder (will create google-chrome-VERSION in it) so that you can have multiple versions on your system
#!/usr/bin/env bash
# Print Help Message
function print_help() {
echo "Usage: $0 [OPTIONS] DEB_FILE DIR"
echo ""
echo "Install a Google Chrome .deb package to the specified directory."
echo ""
echo "Options:"
echo " -h, --help Show this help message and exit."