Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/perl
#############################################################################
# PixelOverlay-Countdown.pl - Scroll a Christmas Countdown across a matrix
#############################################################################
# Set our library path to find the FPP Perl modules use lib "/opt/fpp/lib/perl/";
use lib "/opt/fpp/lib/perl/";
print "#1\n";
# Use the FPP Memory Map module to talk to the daemon
@jadonk
jadonk / rapid-clone.sh
Created August 26, 2022 01:34 — forked from StaticRocket/rapid-clone.sh
Quickly backup and deploy bootable SD cards with variable size ext4 root partitions
#!/bin/sh
set -e
[ -z "$PART_PREFIX" ] && PART_PREFIX=''
DD_ARGS='bs=4K status=progress conv=fsync'
backup() {
src="$1"
dst="$2"
# /etc/systemd/system/barrier.service
[Unit]
Description=Barrier Client daemon
After=display-manager.service network.target
[Service]
Environment="XAUTHORITY=/home/debian/.Xauthority"
User=debian
Group=debian
ExecStart=barrierc --name AI64 --disable-crypto --debug INFO -f 192.168.0.22
# Copyright (C) 2021 Texas Instruments Incorporated - http://www.ti.com/
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# Redistributions of source code must retain the above copyright
# notice, this list of conditions and the following disclaimer.
#
# Redistributions in binary form must reproduce the above copyright
@jadonk
jadonk / mikroBUS-Greybus-BeagleConnect-Freedom-Demo.md
Last active November 8, 2021 03:25 — forked from vaishnavachath/mikroBUS-Greybus-BeagleConnect-Freedom-Demo.md
mikroBUS over Greybus BeagleConnect Freedom Demo

Seeed BeagleBone® Green Gateway host

When it comes to hardware setup, there is a fair bit of handwaving below. It is assumed for now you can figure out how to connect the antennas to the BeagleConnect Freedom boards and other similar hardware configuration steps.

OS Image for BeagleBone/PocketBeagle from SD card

  1. Download the special mikroBUS/Greybus BeagleBoard.org Debian image from here.
  2. Load this image to a microSD card using a tool like Etcher.
  3. Insert the microSD card into the Green Gateway.
  4. Power the Green Gateway via the 12V barrel jack.
  5. Use Ethernet via a cable or WiFi via connmanctl for an Internet connection.
@jadonk
jadonk / README.md
Last active November 10, 2021 04:01
$ ./decode-adc.js 
[
   0.5,    1,  1.5,    2, 2.5,    3,  3.5,
     4,  4.5,    5,  5.5,   6,  6.5,    7,
   7.5,    8,  8.5,    9, 9.5,   10, 10.5,
    11, 11.5,   12, 12.5,  13, 13.5,   14,
  14.5,   15, 15.5,   16
]
#!/usr/bin/perl
#############################################################################
# PixelOverlay-Countdown.pl - Scroll a Christmas Countdown across a matrix
#############################################################################
# Set our library path to find the FPP Perl modules use lib "/opt/fpp/lib/perl/";
use lib "/opt/fpp/lib/perl/";
print "#1\n";
# Use the FPP Memory Map module to talk to the daemon
Welcome to Buildroot
buildroot login: root
Password:
# /opt/gbridge.sh
#!/bin/sh -xv
#ATMOD=`lsmod | grep atusb`
#if [ "$ATMOD" == "" ]; then
# modprobe atusb
#fi
#sleep 1
[
{
"id": "582e31fd.66c078",
"type": "tab",
"label": "Sensor Node #1",
"disabled": false,
"info": ""
},
{
"id": "5d6c92b.0dba3ec",