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 ( | |
"context" | |
"flag" | |
"fmt" | |
"os" | |
"strconv" | |
"github.com/google/go-github/github" |
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
#!/bin/bash | |
# Copyright 2019 Google LLC. | |
# SPDX-License-Identifier: Apache-2.0 | |
if [[ $# -ne 2 ]]; then | |
echo "Usage: $0 <Service Name> <Path>" | |
exit 1 | |
fi | |
service_name=$1 |
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 ( | |
"context" | |
"io/ioutil" | |
"log" | |
"net/http" | |
"os" | |
"golang.org/x/oauth2" |
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
go build -gcflags '-m' ./main.go |
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
#!/bin/bash | |
for i in `ls` | |
do | |
for j in `ls $i` | |
do | |
repo="$i/$j" | |
echo $repo | |
pushd $repo |
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
fly -t loggregator builds -j=loggregator/loggregator-tests | grep -m1 -B 999999 failed | grep succeeded | wc -l |
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 tree_test | |
import ( | |
"math/rand" | |
"sort" | |
"testing" | |
avl "github.com/emirpasic/gods/trees/avltree" | |
"github.com/emirpasic/gods/utils" | |
) |
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 bench_test | |
import ( | |
"crypto/rand" | |
"fmt" | |
"os" | |
"testing" | |
"code.cloudfoundry.org/loggregator/doppler/internal/grpcmanager/v1" | |
"code.cloudfoundry.org/loggregator/plumbing" |
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 ( | |
"bufio" | |
"fmt" | |
"log" | |
"os" | |
"strconv" | |
"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
#!/bin/bash | |
for i in `seq 0 60`; do | |
echo "sample $i"; | |
timestamp=$(date +%s) | |
value=$(cat /proc/net/udp | grep ": 0100007F:0D81" | tr -s [:space:] '|' | sed 's/|/ /g' | awk '{print $13}') | |
echo "$timestamp $value" | |
sleep 1 | |
done |
NewerOlder