Pre-requisites
#!/bin/sh
# Path to the downloaded bundletool jar
BUNDLETOOL_PATH=bundletool-all-1.16.0.jar| <mxfile host="app.diagrams.net"> | |
| <diagram id="activity_diagram" name="Assignment Hand-in"> | |
| <mxGraphModel dx="769" dy="1263" grid="1" gridSize="10" guides="1" tooltips="1" connect="1" arrows="1" fold="1" page="1" pageScale="1" pageWidth="850" pageHeight="1400" math="0" shadow="0"> | |
| <root> | |
| <mxCell id="0" /> | |
| <mxCell id="1" parent="0" /> | |
| <mxCell id="title" parent="1" style="text;html=1;strokeColor=none;fillColor=none;align=center;verticalAlign=middle;whiteSpace=wrap;rounded=0;" value="<b><font style="font-size: 18px;">Assignment Hand-in</font></b>" vertex="1"> | |
| <mxGeometry height="40" width="720" x="80" as="geometry" /> | |
| </mxCell> | |
| <mxCell id="lane1" parent="1" style="swimlane;whiteSpace=wrap;html=1;startSize=30;" value="Student" vertex="1"> |
| #!/bin/bash | |
| # Volume backup script | |
| read -p 'Insert volume to backup name (project_postgres)' TO_BKP_VOLUME | |
| TO_BKP_VOLUME=${TO_BKP_VOLUME:-project_postgres} | |
| if docker volume inspect "${TO_BKP_VOLUME}" && exit 0; then | |
| BKP_VOLUME="${TO_BKP_VOLUME}_$(date date +%Y-%m-%d-%H-%M)" |
Pre-requisites
#!/bin/sh
# Path to the downloaded bundletool jar
BUNDLETOOL_PATH=bundletool-all-1.16.0.jar| #!/bin/sh | |
| # Remove old docker installs | |
| sudo apt-get remove -qy docker docker-engine docker.io containerd runc > /dev/null 2>&1 | |
| # Update cache and install dependencies | |
| sudo apt-get update -qm | |
| sudo apt-get install -qy \ | |
| apt-transport-https \ | |
| ca-certificates \ | |
| curl \ |
| package main | |
| import ( | |
| "encoding/binary" | |
| "encoding/hex" | |
| "flag" | |
| "fmt" | |
| "math" | |
| "os" | |
| "strconv" |
| # Ver https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale-walkthrough/#autoscaling-on-multiple-metrics-and-custom-metrics | |
| # Definição do recurso a ser criado (HPA do autoscaling/v2beta2 chamado php-apache) | |
| apiVersion: autoscaling/v2beta2 | |
| kind: HorizontalPodAutoscaler | |
| metadata: | |
| name: php-apache | |
| # Configuração do recurso | |
| spec: | |
| # Lógica de seleção do recurso monitorado, seleciona um Deployment do apps/v1, | |
| # chamado php-apache |
| version: "2.4" | |
| services: | |
| jupyter: | |
| init: true | |
| image: continuumio/anaconda3 | |
| command: "jupyter notebook \ | |
| --ip='*' \ | |
| --allow-root \ | |
| --no-browser \ |
| #include <iostream> | |
| #include <fstream> | |
| #include <string> | |
| #include <vector> | |
| #include <chrono> | |
| using std::string; | |
| using std::vector; | |
| typedef struct contrato_t |
| #!/bin/bash | |
| vlc --no-video -I dummy -L -q 'https://www.youtube.com/watch?v=G1IbRujko-A' & | |
| echo 'Enjoy some Epic Sax from https://www.youtube.com/watch?v=G1IbRujko-A during the build :)' | |
| # Your build command goes here | |
| kill $! |