Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
Hacking away at Strolch, and Strolch based projects...

Robert von Burg eitch

💭
Hacking away at Strolch, and Strolch based projects...
View GitHub Profile
@eitch
eitch / LedStripSimple.java
Created Nov 24, 2022
LED Strip using pi4j
View LedStripSimple.java
///usr/bin/env jbang "$0" "$@" ; exit $?
//DEPS org.slf4j:slf4j-api:2.0.3
//DEPS org.slf4j:slf4j-simple:2.0.3
//DEPS com.github.lalyos:jfiglet:0.0.8
//DEPS com.pi4j:pi4j-core:2.2.1
//DEPS com.pi4j:pi4j-plugin-raspberrypi:2.2.1
//DEPS com.pi4j:pi4j-plugin-pigpio:2.2.1
//DEPS com.pi4j:pi4j-plugin-linuxfs:2.2.1
import java.io.BufferedReader;
@eitch
eitch / LedStrip.java
Created Nov 11, 2022
Led strip communication over I2C with Pi4j
View LedStrip.java
///usr/bin/env jbang "$0" "$@" ; exit $?
//DEPS org.slf4j:slf4j-api:2.0.3
//DEPS org.slf4j:slf4j-simple:2.0.3
//DEPS com.github.lalyos:jfiglet:0.0.8
//DEPS com.pi4j:pi4j-core:2.2.1
//DEPS com.pi4j:pi4j-plugin-raspberrypi:2.2.1
//DEPS com.pi4j:pi4j-plugin-pigpio:2.2.1
//DEPS com.pi4j:pi4j-plugin-linuxfs:2.2.1
import com.github.lalyos.jfiglet.FigletFont;
@eitch
eitch / openpgp.md
Created Jun 13, 2022
Keyoxide Claim
View openpgp.md
@eitch
eitch / mergeGitRepositories.sh
Created Jul 17, 2019
mergeGitRepositories.sh
View mergeGitRepositories.sh
#!/bin/bash
#
################################################################################
## Script to merge multiple git repositories into a new repository
## - The new repository will contain a folder for every merged repository
## - The script adds remotes for every project and then merges in every branch
##  and tag. These are renamed to have the origin project name as a prefix
##
## Usage: mergeGitRepositories.sh <new_project> <my_repo_urls.lst>
## - where <new_project> is the name of the new project to create