Skip to content

Instantly share code, notes, and snippets.

View aka-mj's full-sized avatar

Michael John aka-mj

  • Midmark Corp.
  • Ohio, USA
View GitHub Profile
@aka-mj
aka-mj / cve-1999-0165.json
Created October 30, 2022 18:58
CVE-1999-0165
{
"_id": {
"$oid": "61e0dfb054ba91f1fe166aae"
},
"cve": {
"data_type": "CVE",
"data_format": "MITRE",
"data_version": "4.0",
"CVE_data_meta": {
"ID": "CVE-1999-0165",
@aka-mj
aka-mj / with debug flag
Last active September 22, 2022 11:24
vagrant_error
PS C:\Users\mjohn\Requirements_Testing\ubuntu-vm> vagrant up
'ip' is not recognized as an internal or external command,
operable program or batch file.
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Checking if box 'generic/ubuntu2004' version '4.1.12' is up to date...
==> default: Clearing any previously set forwarded ports...
==> default: Clearing any previously set network interfaces...
==> default: Specific bridge '' not found. You may be asked to specify
==> default: which network to bridge to.
==> default: Available bridged network interfaces:
>>> azure-iot-sdk-c LTS_07_2022_Ref01 Configuring
(mkdir -p /home/mjohn/workspace/connectivity-module/buildroot/buildroot/output/cm1sd/build/azure-iot-sdk-c-LTS_07_2022_Ref01/ && cd /home/mjohn/workspace/connectivity-module/buildroot/buildroot/output/cm1sd/build/azure-iot-sdk-c-LTS_07_2022_Ref01/ && rm -f CMakeCache.txt && PATH="/home/mjohn/workspace/connectivity-module/buildroot/buildroot/output/cm1sd/host/bin:/home/mjohn/workspace/connectivity-module/buildroot/buildroot/output/cm1sd/host/sbin:/home/mjohn/workspace/connectivity-module/bin:/home/mjohn/workspace/connectivity-module/apps/goroot/go/bin:/home/mjohn/workspace/connectivity-module/bin:/home/mjohn/workspace/connectivity-module/apps/goroot/go/bin:/home/mjohn/.local/bin:/home/mjohn/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:~/bin:~/bin:/home/mjohn/workspace/connectivity-module/buildroot/buildroot/output/cm1sd/host/bin" /usr/bin/cmake /home/mjohn/workspace/connectivity-module/buildroo
@aka-mj
aka-mj / gist:c63623efb91e823adea61bd9bf7f2cde
Last active September 1, 2022 15:06
build_output.log
>>> azure-iot-sdk-c LTS_07_2022_Ref01 Configuring
(mkdir -p /home/mjohn/workspace/connectivity-module/buildroot/buildroot/output/cm1sd/build/azure-iot-sdk-c-LTS_07_2022_Ref01/ && cd /home/mjohn/workspace/connectivity-module/buildroot/buildroot/output/cm1sd/build/azure-iot-sdk-c-LTS_07_2022_Ref01/ && rm -f CMakeCache.txt && PATH="/home/mjohn/workspace/connectivity-module/buildroot/buildroot/output/cm1sd/host/bin:/home/mjohn/workspace/connectivity-module/buildroot/buildroot/output/cm1sd/host/sbin:/home/mjohn/workspace/connectivity-module/bin:/home/mjohn/workspace/connectivity-module/apps/goroot/go/bin:/home/mjohn/workspace/connectivity-module/bin:/home/mjohn/workspace/connectivity-module/apps/goroot/go/bin:/home/mjohn/.local/bin:/home/mjohn/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin:~/bin:~/bin:/home/mjohn/workspace/connectivity-module/buildroot/buildroot/output/cm1sd/host/bin" /usr/bin/cmake /home/mjohn/workspace/connectivity-module/buildroo
@aka-mj
aka-mj / git-commit-log-stats.md
Created August 5, 2022 15:23 — forked from eyecatchup/git-commit-log-stats.md
Some commands to get git commit log statistics for a repository on the command line.

git commit stats

Commands to get commit statistics for a Git repository from the command line -
using git log, git shortlog and friends.




@aka-mj
aka-mj / renew-gpgkey.md
Created August 4, 2022 13:56 — forked from krisleech/renew-gpgkey.md
Renew Expired GPG key

Renew GPG key

Given that your key has expired.

$ gpg --list-keys
$ gpg --edit-key KEYID

Use the expire command to set a new expire date:

@aka-mj
aka-mj / main.c
Last active August 2, 2021 00:59
Mangos program unable to send request
// An NNG version which does work
// What's different between this and the Go version?
#include <unistd.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <nng/nng.h>
#include <nng/protocol/reqrep0/rep.h>
@aka-mj
aka-mj / reverse.fs
Last active November 22, 2019 18:43
Reverse a list in F#
let reverse lst' =
let rec rev acc = function
| [] -> acc
| head::tail -> rev (head::acc) tail
rev [] lst'
@aka-mj
aka-mj / tcpsock_ex.go
Created February 23, 2017 21:02
TCP Socket Example in Go
// go run main.go
package main
import (
"bytes"
"fmt"
"net"
"os"
"time"
@aka-mj
aka-mj / unixsock_ex.go
Created February 9, 2017 19:32
Unix Socket Example in Go
package main
import (
"fmt"
"net"
"os"
"time"
)
func listen(end chan<- bool) {