Skip to content

Instantly share code, notes, and snippets.

View ijaureguialzo's full-sized avatar
🌍
...

Ion Jaureguialzo Sarasola ijaureguialzo

🌍
...
View GitHub Profile
@ijaureguialzo
ijaureguialzo / README.md
Last active February 11, 2019 09:17
Vídeo en Markdown
@ijaureguialzo
ijaureguialzo / docker_remote_engine.md
Last active February 28, 2019 16:16
Configurar las variables de entorno para un Docker Engine remoto con certificado cliente

GNU/Linux y macOS

export DOCKER_HOST=tcp://SERVIDOR:2376
export DOCKER_TLS_VERIFY=1
export DOCKER_CERT_PATH=~/.docker

Windows (CMD)

@ijaureguialzo
ijaureguialzo / docker-compose.yml
Created March 14, 2019 22:28
MySQL en Docker
version: "3.5"
services:
bd:
environment:
- MYSQL_ROOT_PASSWORD=12345Abcde
- MYSQL_DATABASE=blog
- MYSQL_USER=blog
- MYSQL_PASSWORD=12345Abcde
@ijaureguialzo
ijaureguialzo / _open_multiple_intellij_projects.md
Last active April 2, 2019 08:28
Script para abrir varios proyectos de IntelliJ a la vez

Abrir todos los proyectos de IntelliJ que haya en subdirectorios

@ijaureguialzo
ijaureguialzo / ComboBoxModel.java
Created April 12, 2019 18:57
Crear un ComboBox desde código
DefaultComboBoxModel<String> modelo = new DefaultComboBoxModel<>();
modelo.addElement("Opción 1");
modelo.addElement("Opción 2");
modelo.addElement("Opción 3");
comboBox1.setModel(modelo);
@ijaureguialzo
ijaureguialzo / pom.xml
Created May 10, 2019 15:04
Configurar versión mínima de Java en Maven
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.jaureguialzo</groupId>
<artifactId>ejemplo</artifactId>
<version>1.0-SNAPSHOT</version>
@ijaureguialzo
ijaureguialzo / windows_10_hyperv_dual_boot.md
Last active June 8, 2020 10:04
Crear arranque dual de Windows 10 con/sin Hyper-V
@ijaureguialzo
ijaureguialzo / docker_windows.md
Last active June 9, 2020 09:13
Notas sobre Docker en Windows

GNU Make

En Windows, para usar el comando make, hay que instalar Chocolatey y después instalarlo mediante choco install make.

Gestor de credenciales de Windows

Para que no de error, editar el archivo ~/.docker/config.json y borrar la clave credsStore.

Recursos y filesharing

@ijaureguialzo
ijaureguialzo / ejemplo_mapreduce.md
Last active June 11, 2020 15:18
Ejemplo MapReduce
make hadoop
wc -l /ficheros/GlobalLandTemperaturesByCity.csv
awk 'NR != 1 {print}' \
fileprivate func alerta(titulo: String, mensaje: String) {
// REF: How to use UIAlertController in Swift: https://medium.com/ios-os-x-development/how-to-use-uialertcontroller-in-swift-70143d7fbede
let alertController = UIAlertController(title: titulo, message: mensaje, preferredStyle: .alert)
let accion = UIAlertAction(title: "Ok", style: .default) { (action: UIAlertAction) in
// Acciones cuando se pulsa en OK
}
alertController.addAction(accion)