Skip to content

Instantly share code, notes, and snippets.

@jtkDvlp
jtkDvlp / binarygcode.read.clj
Created November 23, 2020 08:08
Prototype for write and read binary gcode files minimizing file size up to 50%
(ns jtk-dvlp.threed-wifi.binarygcode.read
(:require
[clojure.java.io :as io]
[clojure.string :as str]))
(defn bytes-seq
[x & opts]
(lazy-seq
(when-let [stream (if (instance? java.io.InputStream x) x (apply io/input-stream x opts))]
@jtkDvlp
jtkDvlp / _service.md
Created November 2, 2018 08:05 — forked from naholyr/_service.md
Sample /etc/init.d script

Sample service script for debianoids

Look at LSB init scripts for more information.

Usage

Copy to /etc/init.d:

# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)