Things required:
- Linux headers: https://cdn.kernel.org/pub/linux/kernel/
- Binutils: https://www.gnu.org/software/binutils/
- GCC: https://www.gnu.org/software/gcc/
- glibc: https://www.gnu.org/software/libc/
| // TODO: Create a configuration preset to allow npm based projects to bundle their own tailwind and tree shake? #JoshD | |
| module.exports = { | |
| purge: [], | |
| theme: { | |
| colors: { | |
| accent: { | |
| default: 'var(--accent-fill-rest)', | |
| hover: 'var(--accent-fill-hover)', | |
| active: 'var(--accent-fill-active)' | |
| }, |
| import React, { useState, useRef, useEffect, useMemo, useLayoutEffect, useImperativeHandle, forwardRef, Ref } from 'react' | |
| import echarts, { ECOption } from './echarts-ref'; | |
| export type EchartProp = { | |
| option: ECOption, | |
| style?: { | |
| width: string, | |
| height: string | |
| } | |
| className?: string |
| # KEYCLOAK BASE URL | |
| KEYCLOAK_BASE_URL= | |
| # KEYCLOAK CLIENT SECRET | |
| KEYCLOAK_CLIENT_SECRET= | |
| # KEYCLOAK CLIENT ID | |
| KEYCLOAK_CLIENT_ID= | |
| # BASE URL FOR NEXT AUTH |
Things required:
| /** | |
| * Lightweight implementation of the famous `Maybe` type that safely wraps | |
| * optional values without using `null` references. | |
| * | |
| * Add this file to your project and get three new namespaces: | |
| * - `Option`: the base type, factories, operators (map, bind, filter, tap, | |
| * flatten), and means to get the contained value. | |
| * - `Option.Extras`: some utility functions like `IEnumerable.FirstOrNone()`, | |
| * combinators (and, or, ...), and maybe-ready `TryParse` functions. | |
| * - `Option.Async`: async variants of the operators so you can bind against |
| #--------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | |
| #CONFIGURATION OF THE MOXA UC-8112-MET GATEWAY FOR INTEGRATION WITH SCADA SYSTEM AND FIELD DEVICES IN THE OIL & GAS INDUSTRY (MAY APPLY TO OTHER PROCESS INDUSTRIES AS WELL) | |
| #--------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | |
| #--------------------------------------------------------------- | |
| #Author: Nolan Caissie | [email protected] | 27/03/2020 | |
| #--------------------------------------------------------------- | |
| #The following document provides the necessary information to install ThingsPro2 and Node-Red on the Moxa UC-8112-MET. This should work with other Moxa edge computers running Linux Debian 9 (or possibly later debian-based distros). | |
| #The 5 part tutorial on the subject (recommended) is located at: https://www.y |
| #!/bin/bash | |
| # Call like you would `diff` | |
| # `./diff-changed-lines.sh old new` | |
| # Outputs the lines numbers of the new file | |
| # that are not present in the old file. | |
| # That is, outputs line numbers for new lines and changed lines | |
| # and does not output line numbers deleted or unchanged lines. |
| #!/bin/sh | |
| # Download binutils, gcc, the linux kernel, glibc | |
| # define the prefix | |
| export PREFIX=/opt/armhf | |
| # change PATH to include the target directory | |
| export PATH=$PREFIX/bin:$PATH |
| import java.util | |
| import com.sksamuel.avro4s.RecordFormat | |
| import org.apache.avro.generic.GenericRecord | |
| import org.apache.kafka.common.serialization.{Deserializer, Serde, Serializer} | |
| object Avro4s { | |
| implicit class CaseClassSerde(inner: Serde[GenericRecord]) { | |
| def forCaseClass[T](implicit recordFormat: RecordFormat[T]): Serde[T] = { | |
| val caseClassSerializer: Serializer[T] = new Serializer[T] { |
| #!/bin/bash | |
| # Version of pishrink (https://github.com/Drewsif/PiShrink) to work on Moxa UC-8100 series image | |
| function cleanup() { | |
| if losetup $loopback &>/dev/null; then | |
| losetup -d "$loopback" | |
| fi | |
| } |