Skip to content

Instantly share code, notes, and snippets.

View nathan815's full-sized avatar

Nathan Johnson nathan815

View GitHub Profile
<?php
// Author: Ngo Minh Nam
$dir = "/path/to/your/repo/";
$output = array();
chdir($dir);
exec("git log",$output);
$history = array();
foreach($output as $line){
if(strpos($line, 'commit')===0){
@nathan815
nathan815 / docker_remote.go
Created April 24, 2024 13:46 — forked from agbaraka/docker_remote.go
Access remote docker daemon via ssh using Golang Docker SDK
package main
import (
"context"
"fmt"
"github.com/docker/cli/cli/connhelper"
"github.com/docker/docker/api/types"
"github.com/docker/docker/client"
"net/http"
"os"