Skip to content

Instantly share code, notes, and snippets.

View maxatome's full-sized avatar
🐝
KISS

Maxime Soulé maxatome

🐝
KISS
View GitHub Profile
@maxatome
maxatome / snippet_test.go
Created March 19, 2021 17:53
Nested go-testdeep comparison
package main_test
import (
"fmt"
"testing"
"github.com/maxatome/go-testdeep/td"
)
type Value interface{}
@maxatome
maxatome / x_test.go
Created May 25, 2020 18:29
go mod init httpmocktest && go test -v
package httpmocktest_test
import (
"context"
"net/http"
"testing"
"time"
"github.com/jarcoal/httpmock"
)
@maxatome
maxatome / patch-ImageMagick6.pl
Created May 1, 2020 20:33
Install ImageMagick6 *AND* ImageMagick7 FreeBSD packages
#!/usr/local/bin/perl
# FreeBSD packages ImageMagick6 and ImageMagick7 cannot cohabit as
# they have some files in common.
#
# The goal is to strip common files from ImageMagick6 package and
# create a derived package (with the same name) so it can be installed
# close to ImageMagick7 one.
#
# Give the ImageMagick6-6.xxx.txz package file to this script. It then