Skip to content

Instantly share code, notes, and snippets.

View siredmar's full-sized avatar

Armin Schlegel siredmar

View GitHub Profile
@siredmar
siredmar / fetchall.sh
Last active July 24, 2020 07:34
Script that fetches and pulls all remote branches of a bunch of git repositories
#!/bin/bash
#usage: ./fetchall.sh <dir-containing-several-git-repos>
input=$1
for git in $(find $input -maxdepth 1 -mindepth 1 -type d -printf '%f\n')
do
git -C $input/$git branch -r | grep -v '\->' | while read remote; do git -C $input/$git branch --track "${remote#origin/}" "$remote"; done
git -C $input/$git fetch --all
/*============================================+
I Struktur FILECHUNK! I
+=============================================*/
typedef struct {
char name[16];
long lengh;
} TCHUNK;
/*========================================+
I Structur Erzberg !! I
/*========================================+
I Insel-Daten einlesen und konvertieren I
+=========================================*/
void ReadIsoInselHaus(char *name, void *mem, long lengh)
{
int i;
int sizex, sizey;
int saveanz;
TISOINSEL *aktinsel;
TISOHAUS *akthaus;
#include "credentials.h"
#include <Arduino.h> // for type definitions
#define TINY_GSM_MODEM_SIM800
#include <SoftwareSerial.h>
SoftwareSerial SerialAT(10, 11); // RX, TX
//#define DUMP_AT_COMMANDS
#define TINY_GSM_DEBUG Serial