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
oc cluster up | |
oc new-app sonatype/nexus | |
oc login -u system:admin | |
echo '{ | |
"apiVersion": "v1", | |
"kind": "PersistentVolume", | |
"metadata": { | |
"name": "nexus-pv", | |
"labels": { | |
"type": "local" |
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
$ setxkbmap -print | |
xkb_keymap { | |
xkb_keycodes { include "evdev+aliases(qwerty)" }; | |
xkb_types { include "complete" }; | |
xkb_compat { include "complete" }; | |
xkb_symbols { include "pc+us+inet(evdev)" }; | |
xkb_geometry { include "pc(pc105)" }; | |
}; |
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
oc cluster up --use-existing-config | |
Starting OpenShift using openshift/origin:v3.6.0 ... | |
-- Checking OpenShift client ... OK | |
-- Checking Docker client ... OK | |
-- Checking Docker version ... OK | |
-- Checking for existing OpenShift container ... OK | |
-- Checking for openshift/origin:v3.6.0 image ... OK | |
-- Checking Docker daemon configuration ... OK | |
-- Checking for available ports ... OK | |
-- Checking type of volume mount ... |
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
{ | |
"data": [ | |
{ | |
"address": "000000a87cb5eafdcca6a8cde0fb0dec1400c5ab274474a6aa82c12840f169a04216b7", | |
"data": "CmwKJnNhd3Rvb3RoLnNldHRpbmdzLnZvdGUuYXV0aG9yaXplZF9rZXlzEkIwMzRmNzNiMjU0NTNlOTI2NjgwMDliZTcxNGUxZ |
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: 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 |
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 <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", |
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 <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", |
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 <stdlib.h> | |
char *foo() { | |
char *result = getenv("HOME"); | |
return strcat(result, "/foo"); | |
} | |
int main() { | |
printf("%s\n", foo()); |
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 <stdlib.h> | |
char *foo() { | |
char *home = getenv("HOME"); | |
char *result = malloc(strlen(home) + strlen("/foo") + 1); | |
strcpy(result, home); | |
result = strcat(result, "/foo"); |
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
kind: List | |
apiVersion: v1 | |
items: | |
- apiVersion: v1 | |
kind: Pod | |
metadata: | |
name: genesis | |
app: ${NODE_NAME} | |
spec: | |
restartPolicy: Never |
OlderNewer