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
@Benargee
Benargee / Agent Passthru.md
Last active November 16, 2025 08:56 — forked from Jaykul/Agent Passthru.md
SSH Agent passthru to WSL 2 (working, in Windows 11, in May 2023)

For awhile now, each time I got a new Windows laptop I would dig up strasis gist on how to set up agent forwarding for SSH in WSL2 -- but recently I tried to point someone else at it and they were very confused by it, so this is my attempt at simpler instructions.

Installation

With Chocolatey, you must use an elevated PowerShell session. If there's no choco command found, it will fall back to winget for the npiperelay install. To force using Winget even if you have choco installed, you need to download it, so you can pass parameters to it.

Easy mode: just run this in Administrator PowerShell: