Skip to content

Instantly share code, notes, and snippets.

View Benargee's full-sized avatar

Benargee Benargee

  • Ontario, Canada
View GitHub Profile
systemChat "Dump start";
_weaponCfgs = configfile >> "CfgWeapons";
_cfgCount = count _weaponCfgs;
_primaryStr = "";
_secondaryStr = "";
_launcherStr = "";
_exportStr = "";
@Benargee
Benargee / ArduinoMEGA_CounterT5.cpp
Created January 31, 2023 03:16
Simple code to setup, increment and print Timer/Counter5 on pin47/PL2/T5
// Arduino Mega (2560) Platform.io
//Simple code to setup, increment and print Timer/Counter5 on pin47/PL2/T5
#include <Arduino.h>
void setup() {
// put your setup code here, to run once:
Serial.begin(9600);
TCCR5A=0; //Timer/Counter 5 Control Register A
TCCR5B=0; //Timer/Counter 5 Control Register B
@Benargee
Benargee / 1.README.md
Created April 10, 2023 03:00 — forked from varemenos/1.README.md
Git log in JSON format

Get Git log in JSON format

git log --pretty=format:'{%n  "commit": "%H",%n  "abbreviated_commit": "%h",%n  "tree": "%T",%n  "abbreviated_tree": "%t",%n  "parent": "%P",%n  "abbreviated_parent": "%p",%n  "refs": "%D",%n  "encoding": "%e",%n  "subject": "%s",%n  "sanitized_subject_line": "%f",%n  "body": "%b",%n  "commit_notes": "%N",%n  "verification_flag": "%G?",%n  "signer": "%GS",%n  "signer_key": "%GK",%n  "author": {%n    "name": "%aN",%n    "email": "%aE",%n    "date": "%aD"%n  },%n  "commiter": {%n    "name": "%cN",%n    "email": "%cE",%n    "date": "%cD"%n  }%n},'

The only information that aren't fetched are:

  • %B: raw body (unwrapped subject and body)
  • %GG: raw verification message from GPG for a signed commit