Skip to content

Instantly share code, notes, and snippets.

View oatmealraisin's full-sized avatar

Ryan Murphy oatmealraisin

View GitHub Profile
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/select.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <zlib.h>
#define CHUNK 16384
PLAY [Initialization Checkpoint Start] ***************************************************************************************************************************************
TASK [Set install initialization 'In Progress'] ******************************************************************************************************************************
Thursday 05 July 2018 18:54:09 +0000 (0:00:00.096) 0:00:00.096 *********
ok: [master-1.compute-1.amazonaws.com]
PLAY [Populate config host groups] *******************************************************************************************************************************************
TASK [Load group name mapping variables] *************************************************************************************************************************************
[OSEv3:children]
masters
nodes
etcd
lb
[OSEv3:vars]
# General Ansible options
#include <curl/multi.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/select.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <zlib.h>
#define MAX_WAIT_MSECS 30*1000 /* Wait max. 30 seconds */
kind: List
apiVersion: v1
items:
- apiVersion: v1
kind: Pod
metadata:
name: genesis
app: ${NODE_NAME}
spec:
restartPolicy: Never
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
char *foo() {
char *home = getenv("HOME");
char *result = malloc(strlen(home) + strlen("/foo") + 1);
strcpy(result, home);
result = strcat(result, "/foo");
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
char *foo() {
char *result = getenv("HOME");
return strcat(result, "/foo");
}
int main() {
printf("%s\n", foo());
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
static const char *urls[] = {
"http://yann.lecun.com/exdb/mnist/train-images-idx3-ubyte.gz",
"http://yann.lecun.com/exdb/mnist/train-labels-idx1-ubyte.gz",
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
static const char *urls[] = {
"http://yann.lecun.com/exdb/mnist/train-images-idx3-ubyte.gz",
"http://yann.lecun.com/exdb/mnist/train-labels-idx1-ubyte.gz",
apiVersion: v1
kind: Template
metadata:
name: sawtooth
annotations:
app: sawtooth
description: Everything you need for sawtooth
message: "A sawtooth server has been deployed."
parameters:
- name: IMAGE_NAMESPACE