This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Accepts an unexpanded psql result set on stdin and expands it. | |
*/ | |
package main | |
import ( | |
"bufio" | |
"fmt" | |
"os" | |
"strings" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"flag" | |
"fmt" | |
"math/rand" | |
"os" | |
"golang.org/x/crypto/ssh/terminal" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"bytes" | |
"context" | |
"fmt" | |
"image" | |
"image/gif" | |
"io" | |
"os" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# https://lists.debian.org/debian-devel-announce/2019/03/msg00006.html | |
RUN echo "deb http://archive.debian.org/debian jessie main" | tee /etc/apt/sources.list | |
RUN echo "deb http://archive.debian.org/debian/ jessie-backports main" | tee -a /etc/apt/sources.list | |
RUN echo "deb http://security.debian.org jessie/updates main" | tee -a /etc/apt/sources.list | |
RUN echo "Acquire::Check-Valid-Until false;" | tee -a /etc/apt/apt.conf.d/10-nocheckvalid | |
RUN echo 'Package: *\nPin: origin "archive.debian.org"\nPin-Priority: 500' | tee -a /etc/apt/preferences.d/10-archive-pin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// returns an ad-hoc tls config that does not need to write or read any files. | |
func tlsConfig() *tls.Config { | |
serialNumber, err := rand.Int(rand.Reader, new(big.Int).Lsh(big.NewInt(1), 128)) | |
if err != nil { | |
panic(err) | |
} | |
template := x509.Certificate{ | |
SerialNumber: serialNumber, | |
Subject: pkix.Name{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"net/url" | |
"os" | |
qrcode "github.com/skip2/go-qrcode" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"fmt" | |
"net/http" | |
"os" | |
"os/exec" | |
"time" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"bytes" | |
"io" | |
"log" | |
"net/http" | |
"net/url" | |
"os" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package ptth | |
import ( | |
"errors" | |
"net" | |
"net/http" | |
"golang.org/x/net/http2" | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
🍚 21:06:44[/gps (paired-lv=)]$ go test ./... | |
--- FAIL: TestBasicSolves (0.02s) | |
--- FAIL: TestBasicSolves/unlocks_dependencies_if_necessary_to_ensure_that_a_new_dependency_is_satisfied (0.00s) | |
solve_test.go:68: Root project is "root" | |
solve_test.go:68: 1 transitively valid internal packages | |
solve_test.go:68: 2 external packages imported from 2 projects | |
solve_test.go:68: (0) ✓ select (root) | |
solve_test.go:68: (1) ? attempt foo with 1 pkgs; at least 1 versions to try | |
solve_test.go:68: (1) try [email protected] | |
solve_test.go:68: (1) ✓ select [email protected] w/1 pkgs |
NewerOlder