Skip to content

Instantly share code, notes, and snippets.

View ericlinagora's full-sized avatar

ericlinagora

  • 04:12 (UTC +02:00)
View GitHub Profile
@ericlinagora
ericlinagora / .env
Last active April 13, 2025 20:18
Source script, eg for autocompletion, in zsh, from a direnv/devenv type thing
# if not using devenv:
_ERIC_SPECIAL_DIR_ENV_HOOK_STATE="cmd_print_path_to_completion_file_to_source"
@ericlinagora
ericlinagora / set_time.sh
Created November 1, 2024 14:11
GQ GMC 800 geiger counter (ugly) bash script to set the time
#!/bin/bash
# fix this
tty=/dev/cu.wchusbserial14200
set -euo pipefail
exec 4<$tty 5>$tty
stty -f $tty 115200
@ericlinagora
ericlinagora / finger_print_reader.html
Last active April 16, 2024 19:08
Experiment reading the `2541:0236 Chipsailing CS9711Fingprint`
<html>
<body>
<style>
canvas {
border: 1px solid black;
margin: 2em;
transform: scale(2, 2);
transform-origin: top left;
image-rendering: pixelated;
}
@ericlinagora
ericlinagora / braille_unicode_drawer.html
Created March 29, 2024 23:24
Bit of html/javascript to draw braille unicode chars cell by cell
<html>
<head>
<title>Grid to unicode braille characters</title>
</head>
<body>
<style>
body { font-family: 'Courier New', Courier, monospace; }
td { border: 1px solid #666; width: 15px; height: 19px; }
td.char-sep { border-width: 0; width: 0; }
.no-char-spacing td.char-sep, .no-char-spacing tr.char-sep { display: none; }