Skip to content

Instantly share code, notes, and snippets.

View davidarchanjo's full-sized avatar
🎯
Coding

David Archanjo davidarchanjo

🎯
Coding
View GitHub Profile
@davidarchanjo
davidarchanjo / HOW_TO_SET_UP_VIRTUAL_PIANO_TO_DISPLAY_PLAYED_NOTES_FROM_A_PHYSICAL_KEYBOARD_ON_LINUX.md
Last active August 20, 2024 12:59
HOW TO SET UP A VIRTUAL PIANO TO DISPLAY PLAYED NOTES FROM A PHYSICAL KEYBOARD ON LINUX

HOW TO SET UP A VIRTUAL PIANO TO DISPLAY PLAYED NOTES FROM A PHYSICAL KEYBOARD ON LINUX

To display a virtual piano on Linux that shows played MIDI notes from a physical keyboard, you can use the following tools:

1. Connect the Keyboard to your Linux System:

Use a USB A-to-B cable (commonly referred to as a printer cable) to connect the USB host port on your keyboard to a USB port on your computer.

2. Install Required Packages:

  • Ensure that the alsa-utils package is installed, which includes the aconnect utility for managing ALSA (Advanced Linux Sound Architecture) MIDI connections. On Debian/Ubuntu-based systems:
@davidarchanjo
davidarchanjo / SampleKafkaAuthProducer.java
Created February 3, 2023 05:46
Sample Kafka producer which connects in a cluster through authentication using the reactor-kafka library
package io.davidarchanjo;
import java.util.Properties;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.TimeUnit;
import java.util.logging.Level;
import java.util.logging.Logger;
import java.text.MessageFormat;
import org.apache.kafka.clients.producer.ProducerRecord;
@davidarchanjo
davidarchanjo / get-npm-package-version
Created July 6, 2022 12:45 — forked from DarrenN/get-npm-package-version
Extract version from package.json (NPM) using bash / shell
# Version key/value should be on his own line
PACKAGE_VERSION=$(cat package.json \
| grep version \
| head -1 \
| awk -F: '{ print $2 }' \
| sed 's/[",]//g')
echo $PACKAGE_VERSION