Skip to content

Instantly share code, notes, and snippets.

Avatar

Pierre turbo

View GitHub Profile
@turbo
turbo / std.md
Last active May 4, 2023 13:03
Git Commit Message Standard
View std.md

Merged from https://github.com/joelparkerhenderson/git_commit_message and https://chris.beams.io/posts/git-commit/

General Rules

  • Commit messages must have a subject line and may have body copy. These must be separated by a blank line.
  • The subject line must not exceed 50 characters
  • The subject line should be capitalized and must not end in a period
  • The subject line must be written in imperative mood (Fix, not Fixed / Fixes etc.)
  • The body copy must be wrapped at 72 columns
  • The body copy must only contain explanations as to what and why, never how. The latter belongs in documentation and implementation.
@turbo
turbo / brio.md
Last active January 18, 2023 16:24
Recording 4k 4:2:2 from Brio 4k In Linux using FFMpeg
View brio.md

Turn auto-exposure off, set absolute exposure to a low level and use gain to compensate for low light if needed. E.g.:

v4l2-ctl -d /dev/video2 -c exposure_absolute=400
v4l2-ctl -d /dev/video2 -c gain=110

# check with
v4l2-ctl -d /dev/video2 -L
View Blah.jq
[$github, $bitbucket]
| (flatten) as $all_projects
| ([$all_projects[] | select(.stats.languages != null).stats.languages | to_entries] | flatten) as $langstats
| (
[
$all_projects[]
| select(.stats.languages != null).stats.languages
| keys
]
| flatten
@turbo
turbo / nrpn.md
Last active July 13, 2022 09:47
Send coarse NRPN messages from TouchOSC
View nrpn.md

General Approach

For synths that use CC-over-NRPN (like the Circuit Tracks), assembling NRPN messages is pretty simple in a script:

function sendNRPN(ch, MSB, LSB, val)
  -- nrpn address msb
  sendMIDI({ 176 + ch - 1, 99, MSB })
  -- nrpn address lsb 
 sendMIDI({ 176 + ch - 1, 98, LSB }) 
View app.fnl
; vi: ft=clojure
; THIS IS A Fennel SOURCE FILE (.fnl) !NOT! clojure!
; you need to use luajit to run this, after using fennel --compile
; install lapis and turbo from luarocks
; When running with Fennel directly, you need to --globals all used HTML tags
(local turbo (require "turbo"))
(local render_html (. (assert (require "lapis.html")) :render_html))
View important.txt
Walmart
Exxon Mobil
Apple
Berkshire Hathaway
Adobe
Alibaba
McKesson
UnitedHealth Group
CVS Health
BBC
@turbo
turbo / app.fnl.clj
Last active June 22, 2021 09:00
Write a Fennel Web App using Lapis and Turbo
View app.fnl.clj
; THIS IS A Fennel SOURCE FILE (.fnl) !NOT! clojure!
; you need to use luajit to run this, after using fennel --compile
; install lapis and turbo from luarocks
(local turbo (require "turbo"))
(local render_html (. (assert (require "lapis.html")) :render_html))
(fn render [parent expr]
(parent:add_header "Content-Type" "text/html")
View keybase.md

Keybase proof

I hereby claim:

  • I am turbo on github.
  • I am summarity (https://keybase.io/summarity) on keybase.
  • I have a public key ASC5Q6LSQZZbPDrDDBF50nd843R0xlR60h5vD3lyHqFgkAo

To claim this, I am signing this object: