Skip to content

Instantly share code, notes, and snippets.

@lesm
lesm / mysql.md
Last active January 7, 2016 22:23 — forked from nihilismus/mysql.md

/etc/rc.d/rc.mysqld-instancia1

#!/bin/sh

# Depende del usuario bajo el cual se ha de ejecutar el demonio
USER_DB=mysql

# Los directorios y archivos deben permitir a $USER_DB el acceso a lectura y escritura
DATADIR_DB=/home/mysql/instancia1
@lesm
lesm / .conkyrc
Last active March 12, 2017 19:06
Configuración personal de conky
# Conky, a system monitor, based on torsmo
# Any original torsmo code is licensed under the BSD license
# All code written since the fork of torsmo is licensed under the GPL
# Please see COPYING for details
# Copyright (c) 2004, Hannu Saransaari and Lauri Hakkarainen
# Copyright (c) 2005-2010 Brenden Matthews, Philip Kovacs, et. al. (see AUTHORS)
# All rights reserved.
@lesm
lesm / start_conky.sh
Last active January 11, 2016 00:19
Script para inicar conky después de 10 segundos, de iniciar el sistema
#!/bin/bash
sleep 10 && conky
@lesm
lesm / .vimrc
Last active March 26, 2021 05:34
Configuración personal de vim
" mkdir -p ~/.vim/pack/my-plugins/start
" cd ~/.vim/pack/my-plugins/start
" git clone https://github.com/dense-analysis/ale.git
" git clone https://github.com/mattn/emmet-vim.git
" git clone https://tpope.io/vim/fugitive.git
" git clone https://github.com/junegunn/fzf.vim.git
" git clone https://github.com/othree/html5.vim.git
" git clone https://github.com/Yggdroot/indentLine.git
" git clone https://github.com/scrooloose/nerdcommenter.git
@lesm
lesm / lesm.sh
Last active January 22, 2016 13:50
tema para tmux-powerline
#Cambiar el tema "default" por "lesm"
#/home/luis/.tmux-powerline/tmux-powerline/config/defaults.sh
# Lesm Theme
if patched_font_in_use; then
TMUX_POWERLINE_SEPARATOR_LEFT_BOLD=""
TMUX_POWERLINE_SEPARATOR_LEFT_THIN=""
TMUX_POWERLINE_SEPARATOR_RIGHT_BOLD=""
TMUX_POWERLINE_SEPARATOR_RIGHT_THIN=""
@lesm
lesm / .tmux.conf
Last active December 11, 2024 19:37
Configuración personal de tmux
set -g @plugin 'tmux-plugins/tpm'
set -g @plugin 'tmux-plugins/tmux-sensible'
set -g @plugin 'tmux-plugins/tmux-resurrect'
set -g @plugin 'tmux-plugins/tmux-continuum'
set -g @plugin 'christoomey/vim-tmux-navigator'
set -g @continuum-restore 'on'
set -g @resurrect-capture-pane-contents 'on'
set -g @resurrect-strategy-nvim 'session'
@lesm
lesm / start_tmux_with_zsh
Created January 11, 2016 06:48
Iniciar tmux junto con la consola (bash | zsh)
# Iniciar tmux automáticamente
[[ $- != *i* ]] && return
[[ $TERM != screen* ]] && exec tmux -2
@lesm
lesm / lesm.zsh-theme
Last active February 27, 2017 14:40
Theme personal para zsh
# Theme personal lesm
PROMPT='%{$fg_bold[green]%} ➜ %{$fg[cyan]%}%c %{$fg_bold[blue]%}$(git_prompt_info)%{$reset_color%}$(git_prompt_status)%{$reset_color%}'
#git_prompt_info
ZSH_THEME_GIT_PROMPT_PREFIX="git:(%{$fg[red]%}"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%}"
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%})%{$fg[yellow]%} ✘ %{$reset_color%}"
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%})%{$fg[green]%} ✔ %{$reset_color%}"
#git_prompt_status
@lesm
lesm / LS_COLORS
Last active March 22, 2021 01:18
Personalizar LS_COLORS
#configuración de dircolor
export LS_COLORS="di=01;33:fi=07;36:ex=01;37:ow=01;04:*.avi=01;34:*.mp4=01;34:*.mp3=01;34:*.jpg=01;91:*.jpeg=01;91:*.gif=01;91:*.png=01;91:*.PDF=01;36:*.pdf=01;36:*.zip=01;32:*.tar=01;32:*.gz=01;32:*.bz2=01;32:*.iso=01;32:*.odt=01;36:*.txt=01;36:*.docx=01;36:*.cpp=1;36:*.c=1;34:*.rb=01;35:*.erb=01;35:*.vim=1;32:*.ova=1;32:*.java=1;31:*.js=0;33:*.html=1;31:*.css=1;34:*.scss=1;34:*.markdown=01;36:*.ruby-version=01;35:*.ruby-gemset=01;35:*.gitignore=01;32:*.lock=0:*.rdoc=0:*.ru=01;31:"
zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS}
@lesm
lesm / .zshrc
Last active December 2, 2016 05:11
Configuración personal de ~/.zshrc
# Path to your oh-my-zsh installation.
export ZSH=/home/luis/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
ZSH_THEME="lesm"
# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)