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 ( | |
"log" | |
"sync" | |
"time" | |
"github.com/go-ping/ping" | |
) |
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
[george@c7 ~]$ docker run --name mongo-server -d mongo:4.2.5 mongod --replSet rs0 | |
f6810e93af750a6d4520d9d708233b52ca5f5ace07d8aa6505e69a81fafbba56 | |
[george@c7 ~]$ docker cp mongo-bug/ f6810e93af75:/mongo-bug | |
[george@c7 ~]$ docker exec -it f6810e93af75 bash | |
root@f6810e93af75:/# ls mongo-bug/ | |
go.mod go.sum init largetx |
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
#!/usr/bin/expect -f | |
# llength = listlength, need 5 arguments | |
if {[llength $argv] != 5} { | |
puts "usage: ssh_test.exp user pass host port cmd" | |
# exit takes a return code | |
exit 1 | |
} | |
# Use lrange with equal start and end to get a single item - same as Redis |
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
for i in {0..7}; do sudo cpufreq-set -c 7 -g ondemand -u 2400MHz ; done |