start new:
tmux
start new with session name:
tmux new -s myname
| #!/bin/bash | |
| # This script is meant to be run on a fresh Ubuntu 24.04 LTS installation. | |
| # Tired of manually installing LEMP stack on Ubuntu? This script will do it for you. | |
| # | |
| # Optionally, This script restores a server from a backup. It assumes the following directory structure: | |
| # - backup/ | |
| # - nginx/ (contains nginx configuration files) | |
| # - db/ (contains .sql files for database restoration) | |
| # - sites.zip (zipped file containing site files) |
| query IntrospectionQuery { | |
| __schema { | |
| queryType { | |
| name | |
| } | |
| mutationType { | |
| name | |
| } | |
| subscriptionType { | |
| name |
| # Cheatsheet Cloudfront Managed Policies | |
| # Updated at 2022-01-16 | |
| # Juan <@pottersys> | |
| # https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/using-managed-origin-request-policies.html | |
| +---------------------------------------------+--------------------------------------+ | |
| | Origin requests | | |
| +---------------------------------------------+--------------------------------------+ | |
| | Name | ID | | |
| +---------------------------------------------+--------------------------------------+ |
| { | |
| "1101": "Iquique", | |
| "1107": "Alto Hospicio", | |
| "1401": "Pozo Almonte", | |
| "1402": "Camiña", | |
| "1403": "Colchane", | |
| "1404": "Huara", | |
| "1405": "Pica", | |
| "2101": "Antofagasta", | |
| "2102": "Mejillones", |
| // http://ruuddottech.blogspot.com/2009/07/php-vardump-method-for-c.html | |
| public string var_dump(object obj, int recursion = 0) | |
| { | |
| StringBuilder result = new StringBuilder(); | |
| // Protect the method against endless recursion | |
| if (null == obj) | |
| { | |
| result.Append("<i>NULL</i>"); | |
| } |
| /** | |
| * Clase colaboradora para generar certificados, que representa a la persona | |
| * | |
| * author Juan Correa | |
| */ | |
| public class Persona { | |
| private String rut; | |
| private String sexo; | |
| private int edad; | |
| private boolean donante; |
| //Mi pais tiene 15 regiones. | |
| ciudades_15 = new Array("Arica"); | |
| ciudades_1 = new Array("Alto Hospicio","Iquique","Pozo Almonte"); | |
| ciudades_2 = new Array("Antofagasta","Calama","María Elena","Mejillones","Taltal","Tocopilla"); | |
| ciudades_3 = new Array("Caldera","Chañaral","Copiapó","Diego de Almagro","El Salvador","Huasco","Tierra Amarilla","Vallenar"); | |
| ciudades_4 = new Array("Andacollo","Combarbalá","Coquimbo","El Palqui","Illapel","La Serena","Los Vilos","Montepatria","Ovalle","Salamanca","Vicuña"); | |
| ciudades_5 = new Array("Algarrobo","Cabildo","Calle Larga","Cartagena","Casablanca","Catemu","Concón","El Melón","El Quisco","El Tabo","Hijuelas","La Calera","La Cruz","La Ligua","Las Ventanas","Limache","Llaillay","Los Andes","Nogales","Olmué","Placilla de Peñuelas","Putaendo","Quillota","Quilpué","Quintero","Rinconada","San Antonio","San Esteban","San Felipe","Santa María","Santo Domingo","Valparaíso","Villa Alemana","Villa Los Almendros","Viña del Mar"); | |
| ciudades_6 = new Array("Chimbarongo","Codegua","Doñi |
| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" | |
| "http://www.w3.org/TR/html4/strict.dtd" | |
| > | |
| <html lang="en"> | |
| <head> | |
| <title><!-- Insert your title here --></title> | |
| </head> | |
| <body> | |
| <script type="text/javascript"> | |
| top.location.href = 'https://www.facebook.com/pottersys'; // La URL |