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 | |
echo "Check port range 5228-5230..." | |
echo "" | |
for host5 in mtalk.google.com mtalk4.google.com mtalk-staging.google.com mtalk-dev.google.com alt1-mtalk.google.com alt2-mtalk.google.com alt3-mtalk.google.com alt4-mtalk.google.com alt5-mtalk.google.com alt6-mtalk.google.com alt7-mtalk.google.com alt8-mtalk.google.com fcm-xmpp.googleapis.com gcm-xmpp.googleapis.com | |
do | |
nc -w 2 -G 2 -v -z $host5 5228-5230 | |
done | |
echo "Check port range 443..." |
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" | |
"io/ioutil" | |
"os" | |
"strings" | |
) | |
func main() { |
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 grpc_lb_exp | |
import ( | |
"context" | |
"net" | |
"testing" | |
"github.com/lygo/runner" | |
"google.golang.org/grpc" |
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
#!/usr/bin/env bash | |
VER=0.18.1 | |
PKG=node_exporter-$VER.linux-amd64 | |
echo $PKG | |
echo https://github.com/prometheus/node_exporter/releases/download/v$VER/$PKG.tar.gz | |
useradd --no-create-home --shell /bin/false node_exporter || exit 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 ( | |
"flag" | |
"net/http" | |
"net/http/httputil" | |
"net/url" | |
"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
package main | |
import ( | |
"context" | |
"fmt" | |
"runtime" | |
"time" | |
) | |
const radius int = 100 |
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 queue | |
type Command interface { | |
Process(ctx context, task string, arg interface{}) Command | |
/* | |
// like tree | |
proc := cmd.Pocess(ctx, `users.GerAll`,&users.Req{Filter: true}) | |
proc.Pipe(`users.Reindex`) | |
proc.Pipe(`users.FlushData`) |
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_chennels | |
import ( | |
"runtime" | |
"sync" | |
"testing" | |
) | |
type Data struct { | |
Topic string |
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 benchs | |
import ( | |
"runtime" | |
"sync" | |
"testing" | |
) | |
func Benchmark_Channel_Parallel(b *testing.B) { | |
cpu := runtime.GOMAXPROCS(-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 ( | |
"encoding/json" | |
"net/http" | |
"net/url" | |
"golang.org/x/net/html" | |
"io" | |
) |
NewerOlder