Skip to content

Instantly share code, notes, and snippets.

# This describes what is deployed by this template.
description: NFS server and clients deployed with Heat on Chameleon
# This defines the minimum Heat version required by this template.
heat_template_version: 2015-10-15
# The resources section defines what OpenStack resources are to be deployed and
# how they should be configured.
resources:
nfs_server_floating_ip:
iptables -F
iptables -P INPUT DROP
iptables -P FORWARD DROP
iptables -P OUTPUT ACCEPT
iptables -A INPUT -i lo -j ACCEPT
iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A INPUT -p tcp --dport 22 -j ACCEPT
iptables -A INPUT -p tcp --dport 111 -j ACCEPT
iptables -A INPUT -p udp --dport 111 -j ACCEPT
iptables -A INPUT -p tcp --dport 2049 -j ACCEPT
segments = 5
accels = [ 0, 1, 2, 3, 4 ]
vs = [ 0, 0.5, 1, 1.5, 2 ]
import numpy as np
%matplotlib inline
import matplotlib.pyplot as plt
ts = [ np.linspace(t * 100, t * 100 + 99, 10) for t in range(5)]
#define BLUE 1
#define RED 2
void setup() {
pinMode(BLUE, OUTPUT);
pinMode(RED, OUTPUT);
}
void loop() {
digitalWrite(BLUE, HIGH);
// 3_publish.ino
//
// Example robotics code for CODE @ TACC
// Summer 2016 robotics curriculum, available at:
//
// https://github.com/CODE-at-TACC/summer-2016
//
// Copyright 2016, Texas Advanced Computing Center
// GNU GPLv3 License
// 2_sensors.ino
//
// Example robotics code for CODE @ TACC
// Summer 2016 robotics curriculum, available at:
//
// https://github.com/CODE-at-TACC/summer-2016
//
// Copyright 2016, Texas Advanced Computing Center
// GNU GPLv3 License
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.