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
| Vagrant.configure("2") do |config| | |
| config.vm.box = "peru/windows-server-2022-standard-x64-eval" | |
| config.vm.provider :libvirt do |libvirt| | |
| libvirt.nested = true | |
| libvirt.cpu_mode = "host-model" | |
| libvirt.cpus = 4 | |
| libvirt.memory = 4096 | |
| end | |
| config.vm.provision "shell", privileged: true, inline: <<-PS |
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
| terraform { | |
| required_providers { | |
| libvirt = { | |
| source = "dmacvicar/libvirt" | |
| version = "0.8.1" | |
| } | |
| } | |
| required_version = "~> 1.10.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
| FILES=certificaciones.pdf autor.pdf distinciones.pdf expositor.pdf titulos.pdf | |
| CONVERT_FLAGS=-auto-orient -quality 100 -density 200 | |
| all.pdf: $(FILES) | |
| pdfunite $(FILES) all-pre.pdf | |
| ./cpdf -scale-to-fit a4portrait -o all.pdf all.pdf | |
| rm all-pre.pdf | |
| certificaciones.pdf: | |
| convert Certificaciones/* $(CONVERT_FLAGS) certificaciones.pdf |
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
| #include <stdio.h> | |
| #include <errno.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| #include <stdarg.h> | |
| #define MAX_LENGTH 4096 | |
| typedef void (* t_matrix_file_handler_by_type)(FILE *); |
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
| kind: ClusterRole | |
| apiVersion: rbac.authorization.k8s.io/v1 | |
| metadata: | |
| name: system:aggregated-metrics-reader | |
| labels: | |
| rbac.authorization.k8s.io/aggregate-to-view: "true" | |
| rbac.authorization.k8s.io/aggregate-to-edit: "true" | |
| rbac.authorization.k8s.io/aggregate-to-admin: "true" | |
| rules: | |
| - apiGroups: ["metrics.k8s.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
| #!/bin/bash | |
| usage() { | |
| echo $0 DIRECTORY | |
| exit 1 | |
| } | |
| [ "$#" -ne 1 ] && usage | |
| echo Installing bootways... |
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
| DPI=300 | |
| # Como las dimensiones del A3 son 16.5x11.7 pulgadas, para poder hacer esto en shell: | |
| X=165 | |
| Y=117 | |
| ANCHO=$(( $X*$DPI/10 )) | |
| AlTO=$(( $Y*$DPI/10 )) | |
| COUNT=0 | |
| FILES="" | |
| DONE=0 | |
| SPACES=50 |
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 | |
| set -eo pipefail | |
| usage() { | |
| if [ ! -z "$1" ]; then | |
| echo -e "ERROR:\n" 1>&2 | |
| echo -e "\t$@" | |
| echo | |
| fi |
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 | |
| usage() { | |
| if [ ! -z $1 ]; then | |
| echo -e "ERROR:\n" 1>&2 | |
| fi | |
| echo "Usage: $0 -f /path/to/README.md -u dockerhub-username [-r dockerhub-repo-prefix] -n repo-name" 1>&2 | |
| exit 1; | |
| } | |
| while getopts ":r:u:f:n:" o; do |
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 | |
| set -e | |
| [ -z "$PHP_CLI_DOCKER_IMAGE" ] && ( echo You must set PHP_CLI_DOCKER_IMAGE environment variable ; exit 1) | |
| PHP_OPTIONS=${PHP_OPTIONS:- -d 'date.timezone=America/Argentina/Buenos_Aires' -d memory_limit=512M} | |
| PHP_CLI_DOCKER_RUN_OPTIONS=${PHP_CLI_DOCKER_RUN_OPTIONS:-'--add-host local.docker:172.17.0.1'} | |
| docker run --rm -it -u `id -u $USER`:`id -g $USER` -v "`pwd`:`pwd`" -w "`pwd`" $PHP_CLI_DOCKER_RUN_OPTIONS $PHP_CLI_DOCKER_IMAGE $PHP_OPTIONS $@ |
NewerOlder