Skip to content

Instantly share code, notes, and snippets.

View chrisdothtml's full-sized avatar
🙂

Chris Deacy chrisdothtml

🙂
View GitHub Profile
@jayco
jayco / main.go
Last active July 14, 2020 21:01
Listen for job finished events and fail fast on builds
package main
import (
"bytes"
"context"
"encoding/base64"
"encoding/json"
"flag"
"fmt"
"io/ioutil"

My GitHub Feature Wishlist for 2020

I use GitHub nearly every day. In general, it's delightful to use and I've been impressed with the rapid pace of improvements, especially as of late.

That said, there's a handful of features that would have a big impact on my day-to-day experience. I'm cataloging them here with the aim of increasing visibility and prompting further discussion.

Disclaimer: It is not my intention that any visual designs be taken literally – I only hope that they may serve as useful source of inspiration.

1. Releases in commit list view

@varemenos
varemenos / 1.README.md
Last active August 29, 2024 07:52
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
# Hello, and welcome to makefile basics.
#
# You will learn why `make` is so great, and why, despite its "weird" syntax,
# it is actually a highly expressive, efficient, and powerful way to build
# programs.
#
# Once you're done here, go to
# http://www.gnu.org/software/make/manual/make.html
# to learn SOOOO much more.
@obstschale
obstschale / octave.md
Last active June 8, 2024 19:46
An Octave introduction cheat sheet.
@heapwolf
heapwolf / pipeaccept.js
Created May 18, 2011 00:15
accepting input from a pipe, nodejs
var data;
process.stdin.resume();
process.stdin.setEncoding('utf8');
process.stdin.on('data', function(chunk) {
data += chunk;
});
process.stdin.on('end', function() {