gitlog.sh - gets Apache CloudStack repository and exports git history data to a csv file
download-mboxes.sh - downloads various CloudStack ML archives
parse-mbox-data.sh - parses downloaded mbox archives and exports ML data to a csv file
| # the following can be used to have nginx-proxy/ssl termination on port 8080 for console proxy domain | |
| listen 8080 ssl http2; | |
| location /websockify { | |
| proxy_pass http://192.168.1.42:8080/websockify; | |
| proxy_set_header Host $host; | |
| proxy_set_header X-Real-IP $remote_addr; | |
| proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | |
| proxy_http_version 1.1; | |
| proxy_set_header Upgrade $http_upgrade; | |
| proxy_set_header Connection "upgrade"; |
| (Note: tested on Ubuntu 19.10 host/x86_64 machine) | |
| ~~ | |
| Install dependencies: | |
| apt-get install binutils-aarch64-linux-gnu gcc-9-aarch64-linux-gnu bison flex build-essential kpartx | |
| sudo apt-get install libgmp-dev libmpfr-dev libmpc-dev | |
| cd /usr/bin | |
| sudo ln -s aarch64-linux-gnu-gcc-9 aarch64-linux-gnu-gcc | |
| # Build armstubs: |
| #!/bin/bash | |
| # Licensed to the Apache Software Foundation (ASF) under one | |
| # or more contributor license agreements. See the NOTICE file | |
| # distributed with this work for additional information | |
| # regarding copyright ownership. The ASF licenses this file | |
| # to you 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 |
| #!/bin/bash | |
| # Licensed to the Apache Software Foundation (ASF) under one | |
| # or more contributor license agreements. See the NOTICE file | |
| # distributed with this work for additional information | |
| # regarding copyright ownership. The ASF licenses this file | |
| # to you 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 |
| # Using docker container: https://hub.docker.com/r/bhaisaab/ubuntu-cloudstack-slave/ | |
| set -e | |
| #apt-get install -y software-properties-common python-software-properties | |
| #add-apt-repository -y ppa:openjdk-r/ppa | |
| #apt-get update -y | |
| #apt-get install -y git debhelper openjdk-7-jdk genisoimage python python-mysql.connector python-mysqldb python-setuptools maven lsb-release dh-systemd sshpass jq curl wget | |
| export ROOT=$PWD |
gitlog.sh - gets Apache CloudStack repository and exports git history data to a csv file
download-mboxes.sh - downloads various CloudStack ML archives
parse-mbox-data.sh - parses downloaded mbox archives and exports ML data to a csv file
| import fcntl | |
| # Expected output: | |
| # lock acquired | |
| # failed to lock | |
| # lock acquired | |
| lf = '/tmp/some.lock' | |
| h = None |
I hereby claim:
To claim this, I am signing this object:
| #wip |
| #!/bin/env python | |
| # Usage: python <script> <commands.properties file> | |
| import sys | |
| import uuid | |
| def createMappings(apis): | |
| # All apis allowed for root Admin | |
| print("INSERT INTO `cloud`.`role_permissions` (`uuid`, `role_id`, `rule`, `permission`) values (UUID(), 1, '*', 'Allow')") | |
| # ResourceAdmin, DomainAdmin, User | |
| roles = [2, 3, 4] |