Skip to content

Instantly share code, notes, and snippets.

View ellisda's full-sized avatar

David Ellis ellisda

  • Boulder, CO
View GitHub Profile
@ellisda
ellisda / .gitconfig
Created November 18, 2015 20:03
global .gitconfig to use TortoiseGit for visual diff via `git difftool`
[diff]
tool = TortoiseGitMerge
[difftool]
prompt = false
[difftool "TortoiseGitMerge"]
cmd = \"C:\\Program Files\\TortoiseGit\\bin\\TortoiseGitMerge.exe\" -base:\"$BASE\" -mine:\"$LOCAL\" -theirs:\"$REMOTE\" -merged:\"$MERGED\"
[merge]
tool = TortoiseGitMerge
[mergetool "TortoiseGitMerge"]
rem Recursively Copy all files matching "*.log" in all subdirectories of .
rem - Original Source: http://stackoverflow.com/a/11721037
pushd .
for /r %%a in (*.log) do (
copy "%%a" "c:\logs\%%~nxa"
)
popd
@ellisda
ellisda / gorestserver.go
Created September 26, 2018 22:18
A simple golang http server with a shutdown route
package main
import (
"context"
"flag"
"fmt"
"log"
"net/http"
)

Keybase proof

I hereby claim:

  • I am ellisda on github.
  • I am ellisda (https://keybase.io/ellisda) on keybase.
  • I have a public key ASAuJAMyRFet0Ep9HlnS5F6zq0Uhr8ZWupA1FRRAfYjcYQo

To claim this, I am signing this object: