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
#! /bin/bash | |
set -o pipefail | |
set -o nounset | |
service::log() { | |
msg="$1" | |
timestamp=$(date +"[%m%d %H:%M:%S]") | |
printf "+++ %s: %s\n" "${timestamp}" "${msg}" > /dev/stderr | |
} |
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
{ | |
"kind": "Namespace", | |
"apiVersion": "v1", | |
"metadata": { | |
"name": "foo" | |
} | |
} | |
{ | |
"kind": "Namespace", | |
"apiVersion": "v1", |
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
typedef void (*function)(); | |
char program[32]; | |
int main() { | |
char *t = program; | |
unsigned i, n; | |
for (;;) { | |
for (i = 3; i; i--) { | |
n = getch() - '0'; | |
if (n > 7) (*(function)program)(); | |
*t = *t * 8 + n; |
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
# | |
# Automatically generated file; DO NOT EDIT. | |
# Linux/x86 4.3.0 Kernel Configuration | |
# | |
CONFIG_64BIT=y | |
CONFIG_X86_64=y | |
CONFIG_X86=y | |
CONFIG_INSTRUCTION_DECODER=y | |
CONFIG_PERF_EVENTS_INTEL_UNCORE=y | |
CONFIG_OUTPUT_FORMAT="elf64-x86-64" |
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
cc_test( | |
name = "my_test", | |
srcs = ["my_test.cc"], | |
deps = ["//external:gtest/main"], | |
) |
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 ( | |
"flag" | |
"net" | |
"os" | |
"syscall" | |
"github.com/golang/glog" | |
) |
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 ( | |
"errors" | |
"net/http" | |
"net/http/httptest" | |
"testing" | |
"time" | |
) |
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
type Probe struct { | |
HTTPGet *HTTPGetAction `json:"httpGet,omitempty"` | |
TCPSocket *TCPSocketAction `json:"tcpSocket,omitempty"` | |
Exec *ExecAction `json:"exec,omitempty"` | |
} | |
type LivenessProbe struct { | |
Probe `json:",inline"` | |
InitialDelaySeconds int64 `json:"initialDelaySeconds,omitempty"` | |
} |
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 ( | |
"bufio" | |
"fmt" | |
"io" | |
"io/ioutil" | |
"log" | |
"net" | |
"os" |
NewerOlder