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
#include <stdio.h> | |
#include <string.h> | |
#include <sys/types.h> | |
#include <sys/socket.h> | |
#include <netdb.h> | |
#include <arpa/inet.h> | |
#include <netinet/in.h> | |
#include <time.h> | |
#define MAXLINE 1024 |
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
#include <iostream> | |
#include <string> | |
#include <map> | |
#include <algorithm> | |
#include <vector> | |
using namespace std; | |
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
#include <stdio.h> | |
#include <string.h> | |
#include <sys/types.h> | |
#include <sys/socket.h> | |
#include <unistd.h> | |
#include <stdlib.h> | |
#include <errno.h> | |
#include <arpa/inet.h> | |
#include <sys/epoll.h> | |
#include <fcntl.h> |
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
FROM golang:alpine AS builder | |
RUN mkdir /server | |
ADD /server /server | |
WORKDIR /server | |
RUN go build -o server . | |
RUN chmod 777 server | |
FROM alpine | |
COPY --from=builder server server | |
RUN chmod 777 server | |
CMD ["./server"] |
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
# | |
# TODO: Move `libmongoclient.a` to /usr/local/lib so this can work on production servers | |
# | |
CC := g++ # This is the main compiler | |
# CC := clang --analyze # and comment out the linker last line for sanity | |
SRCDIR := src | |
BUILDDIR := build | |
TARGET := bin/runner | |
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
apiVersion: monitoring.coreos.com/v1 | |
kind: PodMonitor | |
metadata: | |
name: SamplePodMonitor | |
labels: | |
team: infra | |
release: prom-op | |
spec: | |
selector: |
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
export PROJECT_NAME=yourvalueshere | |
export BACKUP_NAME=yourvalueshere | |
export BUCKET_NAME=yourvalueshere | |
export OLD_REGION=yourvalueshere | |
export OLD_ZONE=yourvalueshere | |
export NEW_REGION=yourvalueshere | |
export NEW_ZONE=yourvalueshere | |
gcloud config set project "$PROJECT_NAME" |
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
#debugging a chart on local | |
helm template --dry-run --debug . --generate-name --values values-stage.yaml |