Skip to content

Instantly share code, notes, and snippets.

Shoichi Kaji skaji

Block or report user

Report or block skaji

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:a3f0a225a32bb1624090fd69bb810731
❯ docker build .
Sending build context to Docker daemon 2.56kB
Step 1/15 : FROM ubuntu:18.04
---> 4c108a37151f
Step 2/15 : ENV DEBIAN_FRONTEND=noninteractive
---> Using cache
---> ed488244a498
Step 3/15 : RUN apt-get update -qq && apt-get install -y git curl libssl-dev
---> Using cache
---> 2c4b7bc6eff3
View gist:441b436c8d5c0632c988c27fffd031c6
❯ docker build .
Sending build context to Docker daemon 2.56kB
Step 1/15 : FROM ubuntu:18.04
---> 4c108a37151f
Step 2/15 : ENV DEBIAN_FRONTEND=noninteractive
---> Using cache
---> ed488244a498
Step 3/15 : RUN apt-get update -qq && apt-get install -y git curl libssl-dev
---> Using cache
---> 2c4b7bc6eff3
View gist:554392e4f6288c6e242d105bc7636d9b
❯ docker build .
Sending build context to Docker daemon 2.56kB
Step 1/14 : FROM ubuntu:18.04
---> 4c108a37151f
Step 2/14 : ENV DEBIAN_FRONTEND=noninteractive
---> Running in 643592b1f454
Removing intermediate container 643592b1f454
---> ed488244a498
Step 3/14 : RUN apt-get update -qq && apt-get install -y git curl libssl-dev
---> Running in 629c54792466
View main.go
package main
import (
"fmt"
"io"
"io/ioutil"
"log"
"net/http"
"os"
"time"
View go-redis.diff
diff --git a/internal/pool/conn.go b/internal/pool/conn.go
index e9a2585..c74242c 100644
--- a/internal/pool/conn.go
+++ b/internal/pool/conn.go
@@ -58,6 +58,16 @@ func (cn *Conn) RemoteAddr() net.Addr {
}
func (cn *Conn) WithReader(ctx context.Context, timeout time.Duration, fn func(rd *proto.Reader) error) error {
+ stopWatcher := make(chan struct{})
+ defer close(stopWatcher)
View eks-pod-increase.md
View eks-pod-increase.md

概要

HorizontalPodAutoscalerを設定したDeploymentをリリースしている最中に、pod数が想定外に増えることがある。これの原因を知りたい。

環境

  • Amazon EKS Kubernetes Version 1.14
  • metrics-server v0.3.4

事象の再現

View memo.md

if we apply adjust how to check modules are installed or not, then

with perl 5.8.5

❯ perl -Ilib cpm.test install File::Spec
WARN You don't have Module::CoreList. The local-lib may result in incomplete self-contained directory.
DONE install Perl-OSType-1.010
DONE install Locale-Maketext-Simple-0.21
DONE install version-0.9924
FAIL install ExtUtils-CBuilder-0.280231
View main.go
package main
import (
"context"
"fmt"
"log"
"net/http"
"os"
"os/signal"
"sync"
@skaji
skaji / test.pl
Last active Aug 5, 2019
!!!NOTE!!!: added getaddrinfo and constants
View test.pl
#!/usr/bin/env perl
use strict;
use warnings;
use HTTP::Daemon;
use IO::Socket::IP;
use LWP::UserAgent;
use Net::HTTP;
use Socket ();
You can’t perform that action at this time.