Using recent podman (3.x) on 5.10.x Alpine Linux Kernels
apk add podman util-linuxenable and start the cgroups and podman services
| module multiHull(){ | |
| for (i = [1 : $children-1]) | |
| hull(){ | |
| children(0); | |
| children(i); | |
| } | |
| } | |
| module sequentialHull(){ | |
| for (i = [0: $children-2]) |
| #include <Adafruit_DotStar.h> | |
| #include <SPI.h> | |
| #define NUMPIXELS 8 // Number of LEDs in strip | |
| // Here's how to control the LEDs from any two pins: | |
| #define DATAPIN 4 | |
| #define CLOCKPIN 5 | |
| Adafruit_DotStar strip = Adafruit_DotStar(NUMPIXELS, DATAPIN, CLOCKPIN, DOTSTAR_BGR); |
| #!/usr/bin/env bash | |
| Appify="$(basename "$0")" | |
| if [ ! "$1" -o "$1" = "-h" -o "$1" = "--help" ]; then cat <<EOF | |
| Appify v5 for Mac OS X | |
| Creates the simplest possible Mac OS X app from a shell script. | |
| Takes a shell script as its first argument: |
| #!/bin/bash | |
| set -e | |
| usage="$(basename "$0") [-h] [-i PROJECT] [-v VM] [-p PYTHON] [-d NOTEBOOKS] | |
| Make a user provide SSH key and jupyter notebooks (in roles/bootstrap/files/notebooks) to each user listed in var/common.yml | |
| where: | |
| -h show this help text | |
| -i google cloud project id | |
| -v name of instance/virtual machine | |
| -p python path |
| // run a command using the shell; no need to split args | |
| // from https://stackoverflow.com/questions/6182369/exec-a-shell-command-in-go | |
| func runcmd(cmd string, shell bool) []byte { | |
| if shell { | |
| out, err := exec.Command("bash", "-c", cmd).Output() | |
| if err != nil { | |
| log.Fatal(err) | |
| panic("some error found") | |
| } | |
| return out |
You can run your Express app very easily inside your Electron app.
All you need to do is to:
your_electron_app\resources\appapp.js file| #!/bin/bash | |
| script="myscript" | |
| #Declare the number of mandatory args | |
| margs=2 | |
| # Common functions - BEGIN | |
| function example { | |
| echo -e "example: $script -m0 VAL -m1 VAL -o1 -o2 VAL" | |
| } |