Skip to content

Instantly share code, notes, and snippets.

@harche
harche / server.go
Created February 22, 2022 07:32 — forked from pramonow/server.go
package main
import (
"fmt"
"log"
"net"
"sync"
"time"
pb "github.com/pramonow/go-grpc-server-streaming-example/src/proto"
@harche
harche / client.go
Created February 22, 2022 07:32 — forked from pramonow/client.go
package main
import (
"context"
"io"
"log"
pb "github.com/pramonow/go-grpc-server-streaming-example/src/proto"
"google.golang.org/grpc"
```bash
[harshal@oc1472752102 cri-o]$ make testunit
rm -rf /home/harshal/go/src/github.com/cri-o/cri-o/build/coverage && mkdir -p /home/harshal/go/src/github.com/cri-o/cri-o/build/coverage
rm -rf /home/harshal/go/src/github.com/cri-o/cri-o/build/junit && mkdir -p /home/harshal/go/src/github.com/cri-o/cri-o/build/junit
/home/harshal/go/src/github.com/cri-o/cri-o/build/bin/ginkgo \
\
-r \
--trace \
--cover \
--covermode atomic \
# The "plugins.cri" table contains all of the server options.
[plugins.cri]
# stream_server_address is the ip address streaming server is listening on.
stream_server_address = ""
# stream_server_port is the port streaming server is listening on.
stream_server_port = "10010"
# enable_selinux indicates to enable the selinux support.
// To regenerate api.pb.go run hack/update-generated-runtime.sh
syntax = 'proto2';
package runtime;
// Runtime service defines the public APIs for remote container runtimes
service RuntimeService {
// Version returns the runtime name, runtime version, and runtime API version.
rpc Version(VersionRequest) returns (VersionResponse) {}
service --status-all
[ + ] acpid
[ + ] agnLogd
[ + ] agnclientd
[ - ] anacron
[ + ] apparmor
[ ? ] apport
[ + ] autoprotect
[ + ] autoprotect.real
[ + ] avahi-daemon
@harche
harche / strace-docker.log
Created July 27, 2015 16:48
strace for docker deamon
[pid 20294] <... open resumed> ) = 4
[pid 19907] <... close resumed> ) = 0
[pid 20294] fstat(4, <unfinished ...>
[pid 19905] select(0, NULL, NULL, NULL, {0, 20} <unfinished ...>
[pid 20294] <... fstat resumed> {st_dev=makedev(0, 3), st_ino=3892578, st_mode=S_IFREG|0444, st_nlink=1, st_uid=0, st_gid=0, st_blksize=1024, st_blocks=0, st_size=0, st_atime=2015/07/27-22:15:20, st_mtime=2015/07/27-22:15:20, st_ctime=2015/07/27-22:15:20}) = 0
[pid 19907] close(13 <unfinished ...>
[pid 20294] mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0 <unfinished ...>
[pid 19907] <... close resumed> ) = 0
[pid 20294] <... mmap resumed> ) = 0x7f60970e6000
[pid 19907] close(14 <unfinished ...>
@harche
harche / m.json
Last active August 29, 2015 14:25
Manifest multi-arch based on stevvooe's comment
{
"schemaVersion": 2,
"target": {
"mediaType": "application/vnd.docker.container.image.v2",
"length": 7023,
"digest": "sha256:b5b2b2c507a0944348e0303114d8d93aaaa081732b86451d9bce1f432a537bc7"
},
"dependencies": [{
"mediaType": "application/vnd.docker.container.image.rootfs.diff+x-tar",
"length": 16724,
@harche
harche / gist:0c745bbb73374b5ea2e1
Last active August 29, 2015 14:25
muti-arch without mediaType application/vnd.docker.container.image.combined+json
{
"dependencies": [{
"mediaType": "application/vnd.docker.container.image.rootfs.diff+x-tar",
"length": 16724,
"digest": "sha256:3c3a4604a545cdc127456d94e421cd355bca5b528f4a9c1905b15da2eb4a4c6b"
},
{
"mediaType": "application/vnd.docker.container.image.rootfs.diff+x-tar",
"length": 16724,
"digest": "sha256:3c3a4604a545cdc127456d94e421cd355bca5b528f4a9c1905b15da2eb4a4c6b"
@harche
harche / gist:6f29c6fe8479cb6334d2
Last active August 29, 2015 14:24
Multi-arch manifest using "application/vnd.docker.container.image.combined+json"
{
"schemaVersion": 2,
"target": {
"mediaType": "application/vnd.docker.container.image.v1+json",
"length": 7023,
"digest": "sha256:b5b2b2c507a0944348e0303114d8d93aaaa081732b86451d9bce1f432a537bc7"
},
"dependencies": [
{