Skip to content

Instantly share code, notes, and snippets.

View oatmealraisin's full-sized avatar

Ryan Murphy oatmealraisin

View GitHub Profile
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"
$ 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)" };
};
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 ...
{
"data": [
{
"address": "000000a87cb5eafdcca6a8cde0fb0dec1400c5ab274474a6aa82c12840f169a04216b7",
"data": "CmwKJnNhd3Rvb3RoLnNldHRpbmdzLnZvdGUuYXV0aG9yaXplZF9rZXlzEkIwMzRmNzNiMjU0NTNlOTI2NjgwMDliZTcxNGUxZ
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
#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",
#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 <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");
kind: List
apiVersion: v1
items:
- apiVersion: v1
kind: Pod
metadata:
name: genesis
app: ${NODE_NAME}
spec:
restartPolicy: Never