Skip to content

Instantly share code, notes, and snippets.

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

Ion Jaureguialzo Sarasola ijaureguialzo

🌍
...
View GitHub Profile
@ijaureguialzo
ijaureguialzo / laravel_docker.md
Last active April 29, 2024 17:45
Crear un proyecto Laravel usando solo Docker

Laravel con Docker

Crear la carpeta para alojar los proyectos

Linux y macOS

mkdir laravel; cd laravel
@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 / maven+ojdbc8.md
Last active January 4, 2022 10:48
Añadir el driver Oracle JDBC a un proyecto Maven en IntelliJ

Añadir el driver Oracle JDBC a un proyecto Maven en IntelliJ

  1. Descargar el archivo ojdbc8.jar desde la web de Oracle.
  2. Crear la carpeta lib en la carpeta raíz del proyecto de IntelliJ (al mismo nivel que el pom.xml)
  3. Mover el archivo ojdbc8.jar a la carpeta lib.
  4. Añadir la dependencia al fichero pom.xml:
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
@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
Last active October 20, 2021 21:46
Configuración de Oh My Zsh
ZSH_DISABLE_COMPFIX=true
export ZSH="$HOME/.oh-my-zsh"
ZSH_THEME="powerlevel10k/powerlevel10k"
plugins=(
git docker sublime vagrant brew node npm sudo pod pip
)
@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>