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
func ip2int(ip net.IP) uint32 { | |
if len(ip) == 16 { | |
return binary.BigEndian.Uint32(ip[12:16]) | |
} | |
return binary.BigEndian.Uint32(ip) | |
} | |
func int2ip(nn uint32) net.IP { | |
ip := make(net.IP, 4) | |
binary.BigEndian.PutUint32(ip, nn) |
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
[ | |
{ | |
"directory": "src/syscall", | |
"count": 119 | |
}, | |
{ | |
"directory": "src/runtime", | |
"count": 93 | |
}, | |
{ |
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
{ | |
"version": "2.1.0", | |
"$schema": "https://json.schemastore.org/sarif-2.1.0-rtm.5.json", | |
"runs": [ | |
{ | |
"tool": { | |
"driver": { | |
"informationUri": "https://jfrog.com/xray/", | |
"name": "JFrog Xray", | |
"rules": [ |
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
#!/bin/bash | |
set -e | |
sudo yum -y install wget git | |
wget -O /tmp/go.tar.gz https://storage.googleapis.com/golang/go1.10.linux-amd64.tar.gz | |
sudo tar -C /usr/local -xzf /tmp/go.tar.gz | |
ln -s /usr/local/go/bin/go /usr/bin/go | |
# Install glide | |
export GOPATH=~/go | |
mkdir -p ~/go/bin |
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
terraform { | |
required_providers { | |
coder = { | |
source = "coder/coder" | |
version = "0.3.4" | |
} | |
google = { | |
source = "hashicorp/google" | |
version = "~> 4.15" | |
} |
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
VERSION="go1.18beta2" | |
OS="darwin" | |
ARCH="amd64" | |
sudo rm -rf /usr/local/bin/go /usr/local/go | |
curl https://storage.googleapis.com/golang/$VERSION.$OS-$ARCH.tar.gz | sudo tar -C /usr/local -xzf - | |
sudo ln -s /usr/local/go/bin/go /usr/local/bin/go |
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
#!/bin/bash | |
go test -coverprofile=coverage.out | |
go tool cover -html=coverage.out |
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
#!/bin/bash | |
pushd /tmp | |
curl https://cdn.geekbench.com/Geekbench-5.4.1-Linux.tar.gz | tar -xzvf - | |
pushd Geekbench-5.4.1-Linux/ | |
./geekbench_x86_64 | tee geekbench.log | |
popd | |
popd |
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
#!/bin/bash | |
set -euf -o pipefail | |
if [[ $EUID -ne 0 ]]; then | |
echo "This script must be run as root" | |
exit 1 | |
fi | |
rm -rf /usr/local/go || true | |
rm /usr/local/bin/go || true |
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
178.63.211.58 | |
198.50.152.135 | |
144.217.94.65 | |
213.32.53.176 | |
145.239.232.114 | |
80.218.217.199 | |
78.24.235.244 | |
213.32.53.176 | |
167.99.229.57 | |
51.38.99.97 |
NewerOlder