Skip to content

Instantly share code, notes, and snippets.

Crear un branch y subir cambios
git branch <nombre_rama>
git push <nombre_remoto> <nombre_rama>
Elimina los cambios que esten en el proyecto actualmente (sin hacer commit)
git reset --hard
https://www.freecodecamp.org/espanol/news/10-comandos-de-git-que-todo-desarrollador-deberia-saber/
@giosave
giosave / mysql_commands.md
Last active July 10, 2021 18:19
Comandos Esenciales Mysql

Modificar

Cambiar HOST al usuario

UPDATE mysql.user SET Host='%' WHERE Host='localhost' AND User='username';

UPDATE mysql.db SET Host='%' WHERE Host='localhost' AND User='username';

FLUSH PRIVILEGES;

Cambiar Contraseña de usuario

@giosave
giosave / dnsconfig.txt
Last active October 18, 2020 21:59
Referencias para la instalacion y configuracion de un DNS
Comandos y configuracion utilizada en el video
## Configuracion Inicial
apt install net-tools
sudo ifconfig
/sbin/ifconfig
dmesg | grep -i eth0
nano /etc/network/interfaces
nano /etc/default/grub
"net.ifnames=0 biosdevname=0"
@giosave
giosave / comandos.txt
Last active July 12, 2022 21:27
Instrucciones y Comandos LINUX[Ubuntu]
############ INSTALAR NODEJS
sudo apt install nodejs
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
sudo apt-get install gcc g++ make
curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt-get update && sudo apt-get install yarn
//npx create-react-app [NombreApp]
############## INSTALAR SQL SERVER
@giosave
giosave / linux.txt
Last active September 20, 2020 05:28
###### Inicial linux ######
sudo apt-get install libsdl2-dev qtbase5-dev libqt5opengl5-dev qtmultimedia5-dev libfdk-aac-dev build-essential cmake pkg-config git libao-dev libasound2-dev libavcodec-dev libavformat-dev libbluetooth-dev libenet-dev libgtk2.0-dev liblzo2-dev libminiupnpc-dev libopenal-dev libpulse-dev libreadline-dev libsfml-dev libsoil-dev libsoundtouch-dev libswscale-dev libusb-1.0-0-dev libwxbase3.0-dev libwxgtk3.0-dev libxext-dev libxrandr-dev portaudio19-dev zlib1g-dev libudev-dev libevdev-dev libcurl4-openssl-dev libegl1-mesa-dev libpng-dev qtbase5-private-dev
sudo apt-get install freeglut3-dev libodbc1 lib32stdc++6 libglu1-mesa:i386 libgl1-mesa-glx:i386 libodbc1 lib32stdc++6 git-all libglu1-mesa:i386
sudo dpkg --install
sudo apt install qemu-kvm libvirt-bin ubuntu-vm-builder bridge-utils libc6:i386 libncurses5:i386 libstdc++6:i386 lib32z1 libbz2-1.0:i386 python-apt cpu-checker
sudo apt install libsdl2-2.0-0:i386 libva-drm2:i386 libva-x11-2:i386 libva2:i386 (arreglar wine)
sudo apt instal
<html>
<head>
<style>
body {margin: 0}
canvas {width: 100%; height: 100%}
</style>
</head>
<body>
@giosave
giosave / gist:a2acaaea6cc01833431932042ee0bae8
Last active January 14, 2020 03:26
Linux sin ordernar
sudo apt-get install libsdl2-dev qtbase5-dev libqt5opengl5-dev qtmultimedia5-dev libfdk-aac-dev build-essential cmake pkg-config git
libao-dev libasound2-dev libavcodec-dev libavformat-dev libbluetooth-dev libenet-dev libgtk2.0-dev liblzo2-dev
libminiupnpc-dev libopenal-dev libpulse-dev libreadline-dev libsfml-dev libsoil-dev libsoundtouch-dev
libswscale-dev libusb-1.0-0-dev libwxbase3.0-dev libwxgtk3.0-dev libxext-dev libxrandr-dev portaudio19-dev
zlib1g-dev libudev-dev libevdev-dev libcurl4-openssl-dev libegl1-mesa-dev libpng-dev qtbase5-private-dev
composer php7.2 composer maria* curl apache2 php7.2-xml php7.2-mysql php7.2-xml php7.2-mysql
wget https://get.symfony.com/cli/installer -O - | bash (INSTALL SYMFONY)
///////////////////////////////////////////////////////////
@giosave
giosave / gist:469f36c938da2bdfbd4a7ea8486df667
Last active January 19, 2021 06:06
Linux problemas especificos, dependencias
INSTALACION INICIAL LINUX
sudo apt-get install libsdl2-dev qtbase5-dev libqt5opengl5-dev qtmultimedia5-dev libfdk-aac-dev build-essential cmake pkg-config git libao-dev libasound2-dev libavcodec-dev libavformat-dev libbluetooth-dev libenet-dev libgtk2.0-dev liblzo2-dev libminiupnpc-dev libopenal-dev libpulse-dev libreadline-dev libsfml-dev libsoil-dev libsoundtouch-dev libswscale-dev libusb-1.0-0-dev libwxbase3.0-dev libwxgtk3.0-dev libxext-dev libxrandr-dev portaudio19-dev zlib1g-dev libudev-dev libevdev-dev libcurl4-openssl-dev libegl1-mesa-dev libpng-dev qtbase5-private-dev composer php7.2 composer maria* curl apache2 php7.2-xml php7.2-mysql php7.2-xml php7.2-mysql
wget https://get.symfony.com/cli/installer -O - | bash //Symfony
sudo mysql_secure_installation
sudo mysql
CREATE USER 'g02'@'localhost' IDENTIFIED BY '51573masg01';
GRANT ALL PRIVILEGES ON *.* TO 'g02'@'localhost' WITH GRANT OPTION;