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
<rspec xmlns="http://www.geni.net/resources/rspec/3" xmlns:emulab="http://www.protogeni.net/resources/rspec/ext/emulab/1" xmlns:tour="http://www.protogeni.net/resources/rspec/ext/apt-tour/1" xmlns:jacks="http://www.protogeni.net/resources/rspec/ext/jacks/1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.geni.net/resources/rspec/3 http://www.geni.net/resources/rspec/3/request.xsd" type="request"> | |
<node xmlns="http://www.geni.net/resources/rspec/3" client_id="kahn"> | |
<icon xmlns="http://www.protogeni.net/resources/rspec/ext/jacks/1" url="https://portal.geni.net/images/Xen-VM.svg"/> | |
<site xmlns="http://www.protogeni.net/resources/rspec/ext/jacks/1" id="Site 1"/> | |
<sliver_type xmlns="http://www.geni.net/resources/rspec/3" name="emulab-xen"> | |
<disk_image xmlns="http://www.geni.net/resources/rspec/3" name="urn:publicid:IDN+emulab.net+image+emulab-ops:UBUNTU18-64-STD"/> | |
</sliver_type> | |
<services xmlns="http://www.geni.net/resources/rspec/3"/> | |
</node> | |
<node xmlns="http://www.geni. |
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
sudo apt-get update | |
ROOT_SQL_PASS=root | |
sudo debconf-set-selections <<< "mysql-server mysql-server/root_password password $ROOT_SQL_PASS" | |
sudo debconf-set-selections <<< "mysql-server mysql-server/root_password_again password $ROOT_SQL_PASS" | |
sudo DEBIAN_FRONTEND=noninteractive apt-get install -y mysql-server | |
IP=$(/sbin/ip -o -4 addr list eth1 | awk '{print $4}' | cut -d/ -f1) | |
sudo sed -i "s/127.0.0.1/$IP/g" /etc/mysql/mysql.conf.d/mysqld.cnf |
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
import RPi.GPIO as GPIO | |
import time | |
import sys | |
GPIO.setmode(GPIO.BCM) | |
DATA = [5, 6, 7, 8, 9, 10, 11, 12] | |
CLK = 18 | |
def arr_to_char(a): |
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
{ | |
"model": "Tacotron2", | |
"run_name": "ljspeech-ddc", | |
"run_description": "tacotron2 with DDC and differential spectral loss.", | |
// AUDIO PARAMETERS | |
"audio":{ | |
// stft parameters | |
"fft_size": 1024, // number of stft frequency levels. Size of the linear spectogram frame. | |
"win_length": 1024, // stft window length in ms. |
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
rvPHWWNYC0I | |
9sDdIaBhtgk | |
LYwud0w-upg | |
njRitLAU3Ik | |
wcMCDbnuNms | |
KT_N4_kKHnQ | |
jjOzgw5nAZk | |
81v3NxDRdLk | |
3WNdFxNR9tY | |
-WxXRDp-IuU |
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
# Get a list of all experiment interfaces | |
ifs=$(netstat -i | tail -n+3 | grep -Ev "lo|eth0" | cut -d' ' -f1 | tr '\n' ' ') | |
# remove InstaGENI-generated automatic routes | |
# and turn off reverse path filtering | |
for i in $ifs; do | |
sudo ifconfig $i down | |
sudo ifconfig $i up | |
# Turn on IPv4 and IPv6 forwarding | |
sudo sysctl -w net.ipv4.conf.$i.forwarding=1 |
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
#!/bin/bash | |
while IFS=, read -r tput tdiff | |
do | |
tdiff=${tdiff::-1} | |
#ts= `date +%s.%N` | |
#echo "$ts,$tdiff,$tput" | |
sudo tc class replace dev $(ip route get 10.0.3.1 | grep -oP "(?<=dev )[^ ]+") parent 1: classid 1:3 htb rate "$tput"mbit | |
sleep $tdiff | |
done < "$1"-tput.csv |
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
<rspec xmlns="http://www.geni.net/resources/rspec/3" xmlns:emulab="http://www.protogeni.net/resources/rspec/ext/emulab/1" xmlns:tour="http://www.protogeni.net/resources/rspec/ext/apt-tour/1" xmlns:jacks="http://www.protogeni.net/resources/rspec/ext/jacks/1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.geni.net/resources/rspec/3 http://www.geni.net/resources/rspec/3/request.xsd" type="request"> | |
<node xmlns="http://www.geni.net/resources/rspec/3" client_id="recon"> | |
<icon xmlns="http://www.protogeni.net/resources/rspec/ext/jacks/1" url="https://portal.geni.net/images/Xen-VM.svg"/> | |
<sliver_type xmlns="http://www.geni.net/resources/rspec/3" name="emulab-xen"> | |
<disk_image xmlns="http://www.geni.net/resources/rspec/3" name="urn:publicid:IDN+emulab.net+image+emulab-ops:UBUNTU20-64-STD"/> | |
</sliver_type> | |
<services xmlns="http://www.geni.net/resources/rspec/3"> | |
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
# | |
# The MySQL database server configuration file. | |
# | |
# You can copy this to one of: | |
# - "/etc/mysql/my.cnf" to set global options, | |
# - "~/.my.cnf" to set user-specific options. | |
# | |
# One can use all long options that the program supports. | |
# Run program with --help to get a list of available options and with | |
# --print-defaults to see which it would actually understand and use. |
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
sudo apt-get update; sudo apt-get -y install nmap | |
# Install OpenVAS, GVM | |
sudo add-apt-repository ppa:mrazavi/gvm -y | |
sudo apt-get update | |
sudo DEBIAN_FRONTEND=noninteractive apt-get -y install postgresql | |
sudo DEBIAN_FRONTEND=noninteractive apt-get -y install gvm | |
# Set up config file with public IP address in it | |
IP=$(wget -qO- https://ipinfo.io/ip) |