Skip to content

Instantly share code, notes, and snippets.

View Orc's full-sized avatar
🚎
On fire

Orc

🚎
On fire
View GitHub Profile
@Orc
Orc / battery.sh
Created August 4, 2020 20:20 — forked from andreibosco/battery.sh
battery status for C.H.I.P.
#!/bin/sh
# This program gets the battery info from PMU
# Voltage and current charging/discharging
#
# Nota : temperature can be more than real because of self heating
#######################################################################
# Copyright (c) 2014 by RzBo, Bellesserre, France
#
# Permission is granted to use the source code within this
# file in whole or in part for any use, personal or commercial,
@Orc
Orc / mkdio.h++
Last active February 27, 2022 01:04
c++ header for discount -- trivially tested (the header compiles, a open/format test program works)
#ifndef _MKDIO_CXX
#define _MKDIO_CXX
extern "C" {
#include <stdio.h>
#include <mkdio.h>
}
class MKIOT {
protected:
@Orc
Orc / diff.text
Last active August 17, 2023 08:38
diff.text
diff --git a/generate.c b/generate.c
index ee6159a..2ffe03f 100644
--- a/generate.c
+++ b/generate.c
@@ -775,26 +775,29 @@ linkylinky(int image, MMIOT *f)
else {
int goodlink, implicit_mark = mmiottell(f);
- if ( isspace(peek(f,1)) )
- pull(f);