Skip to content

Instantly share code, notes, and snippets.

View breiting's full-sized avatar
:shipit:
Coding is fun!

Bernhard Reitinger breiting

:shipit:
Coding is fun!
View GitHub Profile
@breiting
breiting / rmshare
Created March 19, 2021 15:57
Single script for starting a screen share session with reMarkable
#!/bin/sh
#
# Share the content of the reMarkable on the desktop.
# Requires: https://github.com/owulveryck/goMarkableStream
# Install the remote binary on the reMarkable in the $HOME folder and
# the local client under your $PATH (e.g. /usr/local/bin).
RM_IP=192.168.1.148
# needs to be in your $PATH
@breiting
breiting / covid.sh
Created March 23, 2020 20:08
COVID-19 script
#!/bin/sh
[ "$(stat -c %y ~/.cache/corona 2>/dev/null | cut -d' ' -f1 )" != "$(date '+%Y-%m-%d')" ] && curl -s https://corona-stats.online/Austria > ~/.cache/corona
grep "Austria" ~/.cache/corona |
sed "s/\s*//g ; s/║//g ; s/│/;/g" |
awk -F';' '{print "confirmed " $3 " (" $9") deaths " $5 " ("$7"%)"}'
@breiting
breiting / index.html
Last active January 10, 2020 08:30
Test presentation with reveal
<section>
<h1>REXos presentation</h1>
</section>
<section id="slide-1">
<h1>Second slide</h1>
<img src="https://gist.github.com/breiting/6dfddf21b91a60695b0bece131131748/raw/4047e0f6a03f069e10a51775ede9f1de5cc3c197/rexos.png"/>
</section>
<section data-transition="zoom">
@breiting
breiting / blerex.py
Created October 24, 2019 14:28 — forked from re-polm/blerex.py
import bpy
from bpy import context
import numpy as np
REX_BLOCK_HEADER_SIZE = 16
REX_MESH_HEADER_SIZE = 128
REX_NOT_SET = np.uint64(0x7fffffffffffffff).byteswap().tobytes()
def mesh_triangulate(me):
@breiting
breiting / robotic_header
Created June 26, 2018 11:25
Robotic Eyes Source Header
/*
* Copyright 2018 Robotic Eyes GmbH
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
@breiting
breiting / reecon_header
Last active June 26, 2018 11:26
reecon source code header
/****************************************************************************\
* Copyright (C) 2018 reecon software
*
* THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
* KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
* PARTICULAR PURPOSE.
\****************************************************************************/