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
| #!/usr/bin/env python | |
| import sys | |
| buf=[] | |
| for idx, line in enumerate(sys.stdin.readlines()): | |
| buf.append(line.split()) | |
| if idx%2: | |
| for entry in zip(*buf): | |
| print "%s\t%s" % entry |
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 <fcntl.h> | |
| #include <stdlib.h> | |
| #include <errno.h> | |
| #include <string.h> | |
| int main(void) | |
| { | |
| int fd, ret; | |
| char filename[] = "testfile"; |
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
| diff -up nc/netcat.c.deferaccept nc/netcat.c | |
| --- nc/netcat.c.deferaccept 2015-08-12 10:39:57.408000840 +0900 | |
| +++ nc/netcat.c 2015-08-12 10:39:24.071001056 +0900 | |
| @@ -917,6 +917,11 @@ set_common_sockopts(int s) | |
| &Tflag, sizeof(Tflag)) == -1) | |
| err(1, "set IP ToS"); | |
| } | |
| + if (!uflag) { | |
| + if (setsockopt(s, IPPROTO_TCP, TCP_DEFER_ACCEPT, | |
| + &x, sizeof(x)) == -1) |
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
| defutf8 on | |
| defencoding utf8 | |
| encoding utf8 utf8 | |
| startup_message off | |
| escape ^Tt | |
| defscrollback 10000 | |
| altscreen on |
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
| #!/bin/sh | |
| buildsh=$(mktemp /tmp/buildsh.XXXXXX) | |
| cat <<-EOF > $buildsh | |
| buildctl-daemonless.sh build \ | |
| --frontend=dockerfile.v0 \ | |
| --local context=. \ | |
| --local dockerfile=. \ | |
| --output type=oci,name=example:latest,dest=output.tar |
OlderNewer