- Here are some default vars for the process
ISO_DIR=~/fedora;
ROOTFS_MOUNT_DIR=/mnt/contents
DISTRO_LOCATION=| <UserSettings><ApplicationIdentity version="14.0"/><ToolsOptions><ToolsOptionsCategory name="Environment" RegisteredName="Environment"><ToolsOptionsSubCategory name="Documents" RegisteredName="Documents" PackageName="Visual Studio Environment Package"><PropertyValue name="ShowMiscFilesProject">false</PropertyValue><PropertyValue name="AutoloadExternalChanges">false</PropertyValue><PropertyValue name="CheckForConsistentLineEndings">true</PropertyValue><PropertyValue name="SaveDocsAsUnicodeWhenDataLoss">false</PropertyValue><PropertyValue name="InitializeOpenFileFromCurrentDocument">true</PropertyValue><PropertyValue name="ReuseSavedActiveDocWindow">false</PropertyValue><PropertyValue name="DetectFileChangesOutsideIDE">true</PropertyValue><PropertyValue name="DontShowGlobalUndoChangeLossDialog">true</PropertyValue><PropertyValue name="AllowEditingReadOnlyFiles">false</PropertyValue><PropertyValue name="DocumentDockPreference">0</PropertyValue><PropertyValue name="MiscFilesProjectSavesLastNItems">0</PropertyValu |
An example of usage is the following
local Logger = require("objects/logger")
logger = Logger:new(Logger.ERROR())
logger:debug("%s %d", "this is a debug", 1)
logger:error("%s %d", "this is an error", 2)
| { | |
| "name": "piece_workbench", | |
| "behaviours": [ | |
| { | |
| "name": "ZNetView" | |
| }, | |
| { | |
| "name": "Piece" | |
| }, | |
| { |
| sudo useradd -m erlang; | |
| sudo mkdir -p /usr/local/erl_rel; | |
| sudo chown erlang:erlang /usr/local/erl_rel; | |
| sudo chmod g+rw /usr/local/erl_rel; | |
| sudo usermod -aG erlang $USER; | |
| for ver in 18.3 20.3 22.3 24.3 25.0; do | |
| docker run -e USERID=`id -u erlang` -v /usr/local/erl_rel:/usr/local/erl_rel -it erlang:$ver bash -c 'ERL_VER=`cat /usr/local/lib/erlang/releases/*/OTP_VERSION`; find /usr/local/lib/erlang -name erl -type f | xargs sed -i "s|/usr/local/lib/erlang|/usr/local/erl_rel/$ERL_VER|g"; mv /usr/local/lib/erlang /usr/local/erl_rel/$ERL_VER; chown -R $USERID:$USERID /usr/local/erl_rel/$ERL_VER;'; | |
| done; |
| Byte | Control Char |
|---|---|
| 0 | ^@ |
| 1 | ^A |
| 2 | ^B |
| 3 | ^C |
| 4 | ^D |
| 5 | ^E |
| 6 | ^F |
| 7 | ^G |
| #!/bin/bash | |
| # This script assume that: | |
| # * You have installed the toolchain in the default location | |
| # * You are using toolchain 3.1.15 for rm11x | |
| set -x | |
| export CC=clang; | |
| export CXX=clang; |
| -module(tree). | |
| -compile({no_auto_import,[{size, 1}]}). | |
| %% API | |
| -export([ | |
| new/0, new/1, | |
| insert/2, | |
| search/2, | |
| to_list/1, |
| #!/bin/bash | |
| ARCH=$(dpkg --print-architecture); | |
| PACKAGES_URL="https://packages.erlang-solutions.com/ubuntu/pool/"; | |
| function usage() { | |
| { | |
| echo "Usage:"; | |
| echo "- $0 list"; | |
| echo "- $0 install \$otp_version"; |
| function get_bat_msg() { | |
| BAT_PCT=$(cat /sys/class/power_supply/BAT1/capacity); | |
| if [ $BAT_PCT -le 40 ]; then | |
| BAT_PCT_COLOUR=31 | |
| elif [ $BAT_PCT -le 80 ]; then | |
| BAT_PCT_COLOUR=93 | |
| else | |
| BAT_PCT_COLOUR=32; | |
| fi; | |
| if [[ "$(cat /sys/class/power_supply/BAT1/status)" == "Discharging" ]]; then |