Description | Command |
---|---|
Start a new session with session name | screen -S <session_name> |
List running sessions / screens | screen -ls |
Attach to a running session | screen -x |
Attach to a running session with name | screen -r |
This file contains 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
<!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 |
This file contains 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
//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 |
This file contains 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
/** | |
* 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; |
This file contains 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
// 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>"); | |
} |
This file contains 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
{ | |
"1101": "Iquique", | |
"1107": "Alto Hospicio", | |
"1401": "Pozo Almonte", | |
"1402": "Camiña", | |
"1403": "Colchane", | |
"1404": "Huara", | |
"1405": "Pica", | |
"2101": "Antofagasta", | |
"2102": "Mejillones", |
This file contains 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
# 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 | | |
+---------------------------------------------+--------------------------------------+ |
This file contains 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
query IntrospectionQuery { | |
__schema { | |
queryType { | |
name | |
} | |
mutationType { | |
name | |
} | |
subscriptionType { | |
name |
This file contains 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 | |
# 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) |