Skip to content

Instantly share code, notes, and snippets.

View aduartem's full-sized avatar
🏠
Working from home

Andrés Duarte M. aduartem

🏠
Working from home
View GitHub Profile
@avoidwork
avoidwork / gist:3749973
Created September 19, 2012 14:29
MySQL sp_split() splits a comma delimited string into a recordset & inserts it into target table or returns it
-- ----------------------------
-- Procedure structure for `sp_split`
-- ----------------------------
DROP PROCEDURE IF EXISTS `sp_split`;
delimiter ;;
CREATE DEFINER=`root`@`localhost` PROCEDURE `sp_split`(IN toSplit text, IN target char(255))
BEGIN
# Temp table variables
SET @tableName = 'tmpSplit';
SET @fieldName = 'variable';
@kevin-smets
kevin-smets / iterm2-solarized.md
Last active May 3, 2024 12:59
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)

Default

Default

Powerlevel10k

Powerlevel10k

@madeagency
madeagency / gist:79dc86e8aa09aa512af5
Created April 23, 2015 08:16
OSX Terminal Fix - perl: warning: Setting locale failed.
When running certain commands like ssh or git within Terminal on OSX you may get notices like the one below, which can be annoying.
perl: warning: Setting locale failed.
perl: warning: Please check that your locale settings:
LANGUAGE = (unset),
LC_ALL = (unset),
LANG = "en_US.UTF-8"
are supported and installed on your system.
perl: warning: Falling back to the standard locale ("C").
@parmentf
parmentf / GitCommitEmoji.md
Last active May 4, 2024 16:59
Git Commit message Emoji
@aduartem
aduartem / apuntes_mysql.md
Last active June 17, 2022 01:56
Notas de MySQL

MySQL

MySQL desde línea de comandos

Para cambiar los parámetros de autenticación del usuario root

Primero debemos ingresar a mysql

$ sudo mysql
@aduartem
aduartem / linux.md
Last active May 21, 2022 19:05
Linux

Comandos de uso frecuente en Linux (Distribuciones Debian)

Loguear al usuario con permisos temporales de administrador:

$ sudo -i

Mostrar la arquitectura que soporta el kernel actual instalado (32 o 64 bit):

@aduartem
aduartem / ubuntu.md
Last active June 15, 2022 15:32
Ubuntu

Ubuntu

Métodos abreviados de teclado

1.- Ctrl+Alt+T para abrir la Terminal

2.- Ctrl+Alt+F1 (F1, F2, F3, F4, F5 ó F6) para pasar desde el modo gráfico al modo texto (intérprete de comandos)

3.- Ctrl+Alt+F7 o Alt+F7 para pasar desde el modo texto al modo gráfico.

@aduartem
aduartem / debian_iwlwifi.md
Last active May 21, 2022 19:06
Instalar iwlwifi (driver wifi) en Debian >= 7

Instalar iwlwifi (driver wifi) en Debian >= 7

Intel Wireless WiFi Link, Wireless-N, Advanced-N, Ultimate-N devices

The iwlwifi Linux kernel driver supports several Intel wireless LAN adapters:

  • Intel Wireless WiFi 5100AGN, 5300AGN, and 5350AGN
  • Intel Wireless WiFi 5150AGN
  • Intel WiFi Link 1000BGN
  • Intel 6000 Series WiFi Adapters (6200AGN and 6300AGN)
@aduartem
aduartem / debian.md
Last active June 10, 2022 04:19
Programas a instalar en Debian >=7

Programas a instalar en Debian >= 7

OBS: Ser root.

Instalar sudo

Generalmente en Debian no viene instalado y configurado por defecto este programa. Para instalarlo, desde la terminal de super usuario ejecutar:

@aduartem
aduartem / vim.md
Last active September 1, 2016 00:15
Vim

Vim

Comandos de uso frecuente

Comando Descripción
ESC Volver al modo de comandos. También se usa para cancelar comandos.
Ctrl+F Avanzar una página hacia adelante
Ctrl+B Avanzar una página hacia atrás
Ctrl+L Refrescar pantalla