Skip to content

Instantly share code, notes, and snippets.

View AJ-Derteano's full-sized avatar

Andrés Josué Neyra Derteano AJ-Derteano

View GitHub Profile
@AJ-Derteano
AJ-Derteano / mysql_workbench_intall_linux.md
Last active July 10, 2024 07:16
Instalar MySql y Workbench en linux

Instalar MySQL y MySQL Workbench en Ubuntu

Instalar MySQL

  1. Actualizar los repositorios
    sudo apt update && sudo apt upgrade
  2. Instalar MySQL
@AJ-Derteano
AJ-Derteano / ssh_config.md
Last active April 30, 2024 15:09
Configurar llave SSH en linux y windows

Configurar llaves SSH en linux y windows

Pasos a seguir:

  1. Verificar la existencia de la carpeta .ssh
# Listar contenido de la carpeta
$ ls .ssh
known_hosts

# Ingresar a la carpeta
@AJ-Derteano
AJ-Derteano / install_docker.md
Last active February 28, 2025 14:21
Pasos para instalar Docker en Windows

Instalar docker en Window

Paso 1: Habilitar WSL2

dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart

Paso 2: Activar las características de virtualización

dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
@jonmircha
jonmircha / helpHttp.js
Last active January 29, 2025 04:11
Script que te permite simplificar peticiones HTTP con Fetch, esta escrita en VanillaJS por lo que puedes usarla con cualquier framework o librería
export const helpHttp = () => {
const customFetch = (endpoint, options) => {
const defaultHeader = {
accept: "application/json",
};
const controller = new AbortController();
options.signal = controller.signal;
options.method = options.method || "GET";
@ajdruff
ajdruff / fix-git-line-endings
Last active March 4, 2025 00:01
Forces all line endings to LF in your git repo.
#####################
#
# Use this with or without the .gitattributes snippet with this Gist
# create a fixle.sh file, paste this in and run it.
# Why do you want this ? Because Git will see diffs between files shared between Linux and Windows due to differences in line ending handling ( Windows uses CRLF and Unix LF)
# This Gist normalizes handling by forcing everything to use Unix style.
#####################
# Fix Line Endings - Force All Line Endings to LF and Not Windows Default CR or CRLF