This file contains hidden or 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" | |
"flag" | |
"io/fs" | |
"log" | |
"os" | |
"path/filepath" | |
"strings" |
This file contains hidden or 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
diff --git a/src/unique/handle.go b/src/unique/handle.go | |
index abc620f60f..95395a6b85 100644 | |
--- a/src/unique/handle.go | |
+++ b/src/unique/handle.go | |
@@ -10,6 +10,7 @@ import ( | |
"internal/weak" | |
"runtime" | |
"sync" | |
+ "sync/atomic" | |
_ "unsafe" |
This file contains hidden or 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
diff --git a/src/unique/handle.go b/src/unique/handle.go | |
index 520ab70f8c..113eb90fd9 100644 | |
--- a/src/unique/handle.go | |
+++ b/src/unique/handle.go | |
@@ -9,6 +9,8 @@ import ( | |
isync "internal/sync" | |
"runtime" | |
"sync" | |
+ "sync/atomic" | |
+ "time" |
This file contains hidden or 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
{ | |
"Hostname": "tskrazy", | |
"Update": { | |
"Hostname": "192.168.64.5", | |
"HTTPPassword": "xxxxx" | |
}, | |
"Packages": [ | |
"github.com/gokrazy/fbstatus", | |
"github.com/gokrazy/hello", | |
"github.com/gokrazy/serial-busybox", |
This file contains hidden or 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
=== RUN TestRepoStress | |
=== RUN TestRepoStress/normal | |
repo_test.go:61: after 10000, +131.322375ms | |
repo_test.go:61: after 20000, +145.117792ms | |
repo_test.go:61: after 30000, +157.902291ms | |
repo_test.go:61: after 40000, +156.549084ms | |
repo_test.go:61: after 50000, +155.986ms | |
repo_test.go:61: after 60000, +155.7875ms | |
repo_test.go:61: after 70000, +157.752625ms | |
repo_test.go:61: after 80000, +163.210541ms |
This file contains hidden or 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 ( | |
"io" | |
"log" | |
"net" | |
"net/http" | |
"os" | |
) |
This file contains hidden or 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" | |
"crypto/tls" | |
"crypto/x509" | |
"io/ioutil" | |
"log" | |
"net/http" |
This file contains hidden or 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
############# free | |
total used free shared buff/cache available | |
Mem: 98774364 2635644 95638772 29756 499948 95242576 | |
Swap: 7602172 0 7602172 | |
############# lspci | |
00:00.0 Host bridge: Intel Corporation Xeon E7 v3/Xeon E5 v3/Core i7 DMI2 (rev 02) |
This file contains hidden or 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
// nardump is like nix-store --dump, but in Go, writing a NAR | |
// file (tar-like, but focused on being reproducible) to stdout | |
// or to a hash with the --sri flag. | |
// | |
// It lets us calculate the Nix sha256 in shell.nix without the | |
// person running git-pull-oss.sh having Nix available. | |
package main | |
// For the format, see: | |
// See https://gist.github.com/jbeda/5c79d2b1434f0018d693 |
This file contains hidden or 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
const ( | |
_ASCII_Hex_Digit = RangeTable("\x0f\x00\x00\x00\x03\x00\x00\x00\x03\x00\x00\x00\x00\x00\x00\x000\x009\x00\x01\x00A\x00F\x00\x01\x00a\x00f\x00\x01\x00ASCII_Hex_Digit") | |
_Adlam = RangeTable("\x05\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x03\x00\x00\x00\x00\xe9\x01\x00K\xe9\x01\x00\x01\x00\x00\x00P\xe9\x01\x00Y\xe9\x01\x00\x01\x00\x00\x00^\xe9\x01\x00_\xe9\x01\x00\x01\x00\x00\x00Adlam") | |
_Ahom = RangeTable("\x04\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x03\x00\x00\x00\x00\x17\x01\x00\x1a\x17\x01\x00\x01\x00\x00\x00\x1d\x17\x01\x00+\x17\x01\x00\x01\x00\x00\x000\x17\x01\x00?\x17\x01\x00\x01\x00\x00\x00Ahom") | |
_Anatolian_Hieroglyphs = RangeTable("\x15\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01\x00\x00\x00\x00D\x01\x00FF\x01\x00\x01\x00\x00\x00Anatolian_Hieroglyphs") | |
_Arabic = RangeTable("\x06\x00\x00\x00\x00\x00\x00\x00\x15\x00\x00\x00\x1a\x00\x00\x00\x00\x06\x04\x06\x01\x00\x0 |
NewerOlder