Skip to content

Instantly share code, notes, and snippets.

View user3301's full-sized avatar
🎰
You are absolutely right!

user3301 user3301

🎰
You are absolutely right!
View GitHub Profile
@user3301
user3301 / gist:2abde1c304c7acee29199384e2124bfd
Created January 2, 2020 05:34
generate golang test coverage with default go CLI
go test ./... -short -coverageprofile=coverage.out
go tool cover -html=coverage.out
@user3301
user3301 / extensions_MIME_types
Created May 18, 2018 00:06
all major file extensions associated MIME types
#region Big freaking list of mime types
// combination of values from Windows 7 Registry and
// from C:\Windows\System32\inetsrv\config\applicationHost.config
// some added, including .7z and .dat
{".323", "text/h323"},
{".3g2", "video/3gpp2"},
{".3gp", "video/3gpp"},
{".3gp2", "video/3gpp2"},
{".3gpp", "video/3gpp"},
{".7z", "application/x-7z-compressed"},