Skip to content

Instantly share code, notes, and snippets.

View henrik42's full-sized avatar

Henrik Heine henrik42

  • Bargteheide, Germany
View GitHub Profile
@henrik42
henrik42 / clojurescript-on-a-microcontroller.md
Last active April 21, 2024 18:53
Clojurescript auf einem Microcontroller

ClojureScript auf einem Mikrocontroller

Vor einiger Zeit haben ich den HuCon-Roboter-Bausatz erhalten. Der HuCon wird mit Blockly und Python programmiert. Ich programmiere schon lange auf PCs (vor allem Java und Clojure), aber mit Microcontrollern habe ich nur wenig Erfahrung. Als erstes habe ich mich mit der Installation von OpenWrt

@henrik42
henrik42 / environment.clj
Last active May 11, 2024 21:40
Mutate Java Environment Variables
;; There are ways to change the environent variables of a running process
;; (https://unix.stackexchange.com/questions/38205/change-environment-of-a-running-process).
;; This is also true for a JVM process.
;;
;; Java has an API to the environment (java.lang.ProcessEnvironment). This class
;; reads the JVM process environment once and stores the key/values in a few
;; maps. From this point on, these maps are Java's view on its environment
;; variables. All access through this API (which your code may use) will read
;; values from these maps.
;;