Coloritos en bash

Es posible escribir texto a color en un terminal, por ejemplo con la función printf. Los códigos ANSI para los colores están aquí: http://en.wikipedia.org/wiki/ANSI_escape_code#Colors Básicamente, este es el formato: printf ‘\x1b[$EFFECT;$FOREGROUND;$BACKGROUNDmTEST_STRING\x1b[0m’ donde EFFECT son los efectos que se le puede aplicar

Github cheat sheet

https://help.github.com/articles/create-a-repo mkdir ~/Hello-World # Creates a directory for your project called «Hello-World» in your user directory cd ~/Hello-World # Changes the current working directory to your newly created directory git init # Sets up the necessary Git files # Initialized

Apuntes mysql

Crear/borrar usuario con distintos comandos create user MYUSER identified by ‘MYPWD’; grant all privileges on *.* to ‘MYUSER’@’SERVER’ identified by ‘MYPWD’ with grant option; # crea el usuario si no existe drop user MYUSER; En mysql, % y localhost no