Skip to content

Instantly share code, notes, and snippets.

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

Ion Jaureguialzo Sarasola ijaureguialzo

🌍
...
View GitHub Profile
@ijaureguialzo
ijaureguialzo / docker_engine.json
Last active February 8, 2023 01:04
Configuración de Docker Engine para la red de Egibide
{
"bip": "10.200.0.1/24",
"builder": {
"gc": {
"defaultKeepStorage": "20GB",
"enabled": true
}
},
"debug": false,
"default-address-pools": [
@ijaureguialzo
ijaureguialzo / scoop.ps1
Created March 17, 2022 14:27
Instalar Scoop
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
Invoke-Expression (New-Object System.Net.WebClient).DownloadString('https://get.scoop.sh')

Vagrant and VMWare Tech Preview on Apple M1 Pro

This document summarizes notes taken while to make the VMWare Tech preview work on Apple M1 Pro, it originated from discussions in hashicorp/vagrant-vmware-desktop#22

Installing Rosetta

First install Rosetta if not already done, this is needed to run x86 code:

@ijaureguialzo
ijaureguialzo / cocoapods.swift
Created December 1, 2021 18:24
Prueba de CocoaPods con SwiftUI
//
// ContentView.swift
// EjemploCocoaPods
//
// Created by Ion Jaureguialzo Sarasola on 1/12/21.
//
import SwiftUI
import Alamofire
@ijaureguialzo
ijaureguialzo / .zshrc
Created October 3, 2021 05:25
Run PHP, Composer or Node from Docker
phpcli() {
docker run -it --rm --name php-cli \
--env "PHP_EXTENSIONS=gd intl" \
-v "$PWD:/usr/src/app" thecodingmachine/php:8.0.11-v4-cli-node16 \
"$1"
}
@ijaureguialzo
ijaureguialzo / Ventana.java
Created May 20, 2021 19:56
Cerrar un JFrame desde dentro de un JPanel
package com.jaureguialzo;
import javax.swing.*;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
public class Ventana {
private JButton cerrarButton;
private JPanel panel;
<!DOCTYPE html>
<html lang="es">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<link href="https://unpkg.com/tailwindcss@^2/dist/tailwind.min.css" rel="stylesheet">
<title>Title</title>
</head>
<body>
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)
@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}' \
@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