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
sudo apt-get update; sudo apt-get -y dist-upgrade | |
sudo apt-get -y install git python3 python3-pip python3-venv | |
git clone https://github.com/CESNET/DHuSTools.git | |
python3 -m venv ~/s1 | |
~/s1/bin/pip3 install stactools-sentinel1 | |
~/s1/bin/pip3 install requests |
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
toUUID() { | |
NSTR=$'\x92\x70\x80\x59\x20\x77\x45\xa3\xa4\xf3\x1e\xb4\x28\x78\x9c\xff' | |
HASH=`printf "${NSTR}$1" | sha1sum` | |
printf "%08s-%04s-5%03s-%01x%03s-%12s\n" ${HASH:0:8} ${HASH:8:4} ${HASH:13:3} $(( ( 0x${HASH:16:1} & 3 ) | 8 )) ${HASH:17:3} ${HASH:20:12} | |
} |
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
#!/bin/bash | |
sudo echo nameserver 8.8.8.8 > /etc/resolvconf/resolv.conf.d/base | |
sudo service systemd-resolved restart | |
sudo apt-get update | |
sudo apt-get install -y curl gnupg apt-transport-https ca-certificates lsb-release imagemagick vim unzip | |
wget -q -O - https://download.docker.com/linux/debian/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg | |
echo "deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/debian $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null | |
sudo apt-get update | |
sudo apt-get install -y docker-ce docker-ce-cli containerd.io |
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
all: | |
gnuplot -c heatmap2d.gnu |
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
export BUILDID="build-14688" | |
export INSTANCE="travisci/ci-sardonyx:packer-1576238197-60d50014" | |
sudo docker run --name $BUILDID -dit $INSTANCE /sbin/init | |
sudo docker exec -it $BUILDID bash -l | |
su - travis |
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
#For SL6: | |
rpm -ivh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm | |
yum -y install yum-priorities | |
rpm -ivh http://repository.egi.eu/sw/production/umd/3/sl6/x86_64/updates/umd-release-3.14.4-1.el6.noarch.rpm | |
yum install -y mysql-server voms-admin-server voms-admin-client emi-voms-mysql ca-policy-egi-core | |
/etc/init.d/mysqld start | |
mysql -e "SET PASSWORD FOR 'root'@'localhost' = PASSWORD('[Edited]');" | |
mysql --user=root --password=[Edited] -e "create database voms_training_egi_eu" |
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
require 'yaml' | |
data = YAML.load_file("vm_records_export.yml") | |
puts "id,user,group,name,memory,vcpu,cpu,hostname,start_time,end_time,host_info.vcpu,host_info.memory,host_info.model" | |
data.each { |rec| | |
rec["runtime"].each { |runtime| | |
puts "#{rec["id"]},#{rec["user"]},#{rec["group"]},#{rec["name"]},#{rec["memory"]},#{rec["vcpu"]},#{rec["cpu"]},#{runtime["hostname"]},#{runtime["start_time"]},#{runtime["end_time"]},#{runtime["host_info"]["vcpu"]},#{runtime["host_info"]["memory"]},#{runtime["host_info"]["model"]}" |
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
require 'yaml' | |
data = YAML.load_file("vm_records_export.yml") | |
# 1 Jan 2014: 1388534400 | |
# 1 Jan 2015: 1420070400 | |
# 1 week: 604800 | |
weeks = Array.new(54, 0.0) |
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
require 'yaml' | |
data = YAML.load_file("vm_records_export.yml") | |
cpu_timeline = Hash.new | |
mem_timeline = Hash.new | |
now = Time.now.to_i | |
data.each { |rec| |
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
#!/bin/sh | |
#INSTALL EPEL, UMD and VOMS | |
rpm -ivh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm | |
rpm -ivh http://repository.egi.eu/sw/production/umd/3/sl6/x86_64/updates/umd-release-3.0.1-1.el6.noarch.rpm | |
yum install -y voms-server yum-priorities voms-admin-client voms-admin-server mysql-server voms-mysql-plugin xml-commons-apis | |
service mysqld start | |
/usr/bin/mysqladmin -u root password [Edited]; |
NewerOlder