Skip to content

Instantly share code, notes, and snippets.

@faveoled
faveoled / rk3188-starway-andromeda-s8.dts
Last active July 15, 2025 17:57
Starway Andromeda S8 Linux
// SPDX-License-Identifier: (GPL-2.0+ OR MIT)
/*
* Copyright (c) 2018 MundoReader S.L.
* Author: Heiko Stuebner <[email protected]>
*/
/dts-v1/;
#include <dt-bindings/i2c/i2c.h>
#include <dt-bindings/input/input.h>
#include <dt-bindings/interrupt-controller/irq.h>
#
# Automatically generated file; DO NOT EDIT.
# Linux/arm 6.14.0-rc3 Kernel Configuration
#
CONFIG_CC_VERSION_TEXT="armv7-alpine-linux-musleabihf-gcc (Alpine 14.3.0) 14.3.0"
CONFIG_CC_IS_GCC=y
CONFIG_GCC_VERSION=140300
CONFIG_CLANG_VERSION=0
CONFIG_AS_IS_GNU=y
CONFIG_AS_VERSION=24400
@faveoled
faveoled / config-5.10.27-rk3188.txt
Created July 12, 2025 15:01
RK3188 Radxa Rock Armbian Linux 5.10.27 kernel config
#
# Automatically generated file; DO NOT EDIT.
# Linux/arm 5.10.27 Kernel Configuration
#
CONFIG_CC_VERSION_TEXT="arm-linux-gnueabihf-gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0"
CONFIG_CC_IS_GCC=y
CONFIG_GCC_VERSION=90300
CONFIG_LD_VERSION=234000000
CONFIG_CLANG_VERSION=0
CONFIG_LLD_VERSION=0
/dts-v1/;
/memreserve/ 0x00000000e0000000 0x0000000000d00000;
/ {
compatible = "samsung,armv8\0samsung,exynos7885";
dtb-hw_rev = <0x00>;
dtb-hw_rev_end = <0xff>;
interrupt-parent = <0x01>;
#address-cells = <0x02>;
#size-cells = <0x01>;
/dts-v1/;
/ {
compatible = "samsung,armv8", "samsung,exynos9820";
dtb-hw_rev = <0x0>;
dtb-hw_rev_end = <0xff>;
interrupt-parent = <0x1>;
#address-cells = <0x2>;
#size-cells = <0x1>;
@faveoled
faveoled / run.scala
Created February 24, 2024 15:36
Scala.js Node.js run process
def runProcess(command: String, cwd: Option[String], details: String = ""): Future[String] = {
val msg = if (details == "") then s"Running command `${command}`" else s"${details}"
println(s"${msg}...")
val options = encodingBufferEncodingExe(BufferEncoding.utf8)
cwd.foreach(cwdR => options.cwd = cwdR)
val process = node_child_process.exec(command, options)
var strBuilder = mutable.StringBuilder()
process.stdout.asInstanceOf[typings.node.streamMod.Readable].on_data(nodeStrings.data, data => {
strBuilder.append(data)
println(s"cmd stdout: $data")
@faveoled
faveoled / snapcraft.yml
Created January 1, 2024 13:52
Graphviz snap
name: graphviz
base: core22
version: '9.0.0'
summary: S
description: |
A
grade: stable
confinement: strict
@faveoled
faveoled / oktete-msys2.log
Created July 28, 2023 10:47
Okteta build failure
[501/933] Linking CXX executable bin\bytearrayrawfilesynchronizertest.exe
FAILED: bin/bytearrayrawfilesynchronizertest.exe
cmd.exe /C "cd . && C:\msys64\mingw64\bin\c++.exe -fno-operator-names -fno-exceptions -Wall -Wextra -Wcast-align -Wchar-subscripts -Wformat-security -Wno-long-long -Wp
ointer-arith -Wundef -Wnon-virtual-dtor -Woverloaded-virtual -Werror=return-type -Werror=init-self -Wvla -Wdate-time -Wsuggest-override -Wlogical-op -fdiagnostics-colo
r=always kasten/core/io/tests/CMakeFiles/bytearrayrawfilesynchronizertest.dir/bytearrayrawfilesynchronizertest_autogen/mocs_compilation.cpp.obj kasten/core/io/tests/C
MakeFiles/bytearrayrawfilesynchronizertest.dir/bytearrayrawfilesynchronizertest.cpp.obj kasten/core/io/tests/CMakeFiles/bytearrayrawfilesynchronizertest.dir/__/__/docu
ment/bytearraydocument.cpp.obj kasten/core/io/tests/CMakeFiles/bytearrayrawfilesynchronizertest.dir/__/filesystem/bytearrayrawfilesynchronizer.cpp.obj kasten/core/io/t
ests/CMakeFiles/bytearrayrawfilesynchronizertest.dir/__/files
@faveoled
faveoled / salarytimer.js
Last active July 27, 2023 12:52
Salary Timer. Calculates how much you earned at current point in time during the day
// Set the constants for schedule and pay rate
const schedule = {
start: "09:00", // Start of schedule in HH:mm format
end: "17:00", // End of schedule in HH:mm format
breakStart: "12:00", // Start of break time in HH:mm format
breakEnd: "13:00" // End of break time in HH:mm format
};
const payRate = 100; // Pay rate in dollars per day
@faveoled
faveoled / tauri-scalajs-command.scala
Last active July 21, 2023 15:45
Run command in Tauri Scala.js
import tauri.ShellMod
import typings.std.stdStrings.close
import typings.tauriAppsApi.tauriAppsApiStrings
import scala.util.Failure
import scala.util.Success
import scala.concurrent.Future
import scala.collection.mutable.ArrayBuffer
import scala.concurrent.Promise
import scalajs.js.JSConverters.iterableOnceConvertible2JSRichIterableOnce