Skip to content

Instantly share code, notes, and snippets.

@Petrie
Petrie / main.go
Created February 5, 2023 12:01
https server use tls1.2
package main
import (
// "fmt"
// "io"
"crypto/tls"
"log"
"net/http"
"time"
)
@Petrie
Petrie / git-branches-by-commit-date.sh
Created May 15, 2017 07:57 — forked from jasonrudolph/git-branches-by-commit-date.sh
List remote Git branches and the last commit date for each branch. Sort by most recent commit date.
# Credit http://stackoverflow.com/a/2514279
for branch in `git branch -r | grep -v HEAD`;do echo -e `git show --format="%ci %cr" $branch | head -n 1` \\t$branch; done | sort -r