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
#[macro_use] | |
extern crate nom; | |
use std::net::Ipv6Addr; | |
use nom::IResult; | |
#[derive(Debug, PartialEq, Eq)] | |
pub struct IPv6Header { | |
version: u8, |
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
error: cannot find macro `compiler_error!` in this scope | |
--> src/main.rs:56:1 | |
| | |
56 | / named!(ipparse<&[u8], IPv4Header>, | |
57 | | do_parse!(verihl : two_nibbles ~ | |
58 | | tos : be_u8 ~ | |
59 | | length : u16!(true) ~ | |
... | | |
79 | | dest_addr : dst_addr, | |
80 | | }})); |
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
$USER="autodeploy" | |
kubectl create "$USER" | |
secret=$(kubectl get sa "$USER" -o json | jq -r .secrets[].name) | |
kubectl get secret $secret -o json | jq -r '.data["ca.crt"]' | base64 -D > ca.crt | |
user_token=$(kubectl get secret $secret -o json | jq -r '.data["token"]' | base64 -D) | |
kubectl config set-cluster mycluster \ | |
--embed-certs=true \ | |
--server="$ENDPOINT" \ |
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
Homebrew build logs for python3 on macOS 10.12.3 | |
Build date: 2017-01-17 15:25:24 |
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
Homebrew build logs for python3 on macOS 10.12.3 | |
Build date: 2017-01-17 15:25:24 |
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
Homebrew build logs for python3 on macOS 10.12.3 | |
Build date: 2017-01-17 15:25:24 |
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
# Copyright 2016 The Kubernetes Authors. | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software | |
# distributed under the License is distributed on an "AS IS" BASIS, |
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
#define _GNU_SOURCE | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <sched.h> | |
#include <sys/wait.h> | |
#include <errno.h> | |
#include <unistd.h> | |
#include <string.h> | |
#define STACKSIZE (1024*1024) |
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
[[local|localrc]] | |
# Modify to your environment | |
FLOATING_RANGE=192.168.1.224/27 | |
PUBLIC_NETWORK_GATEWAY=192.168.1.225 | |
PUBLIC_INTERFACE=eth1 | |
RECLONE=yes | |
# Credentials | |
ADMIN_PASSWORD=password | |
DATABASE_PASSWORD=password |
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
{ | |
"context_is_admin": "role:admin", | |
"admin_or_owner": "is_admin:True or project_id:%(project_id)s", | |
"default": "rule:admin_or_owner", | |
"admin_api": "rule:context_is_admin", | |
"admin_or_user": "is_admin:True or user_id:%(user_id)s", | |
"bay:create": "rule:default", | |
"bay:delete": "rule:default", | |
"bay:detail": "rule:default", |