| command | description |
|---|---|
| ctrl + a | Goto BEGINNING of command line |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # cat << EOF > /dev/null | |
| # https://github.com/gpakosz/.tmux | |
| # (‑●‑●)> dual licensed under the WTFPL v2 license and the MIT license, | |
| # without any warranty. | |
| # Copyright 2012— Gregory Pakosz (@gpakosz). | |
| # /!\ do not edit this file | |
| # instead, override settings in ~/.tmux.conf.local, see README.md | |
| # -- general ------------------------------------------------------------------- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| call plug#begin('~/.vim/plugged') | |
| Plug 'williamjameshandley/vimteractive' | |
| Plug 'valloric/youcompleteme' | |
| Plug 'gruvbox-community/gruvbox' | |
| Plug 'lervag/vimtex' | |
| Plug 'tpope/vim-surround' | |
| Plug 'anosillus/vim-ipynb' | |
| Plug 'jpalardy/vim-slime', { 'for': 'python' } | |
| Plug 'hanschen/vim-ipython-cell', { 'for': 'python' } | |
| Plug 'ludovicchabant/vim-gutentags' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # replace the line 1 and the first match of STRING with new_code | |
| # of all files in find. | |
| for file in $(find . -type f -name '*'); do | |
| mv $file $file.old | |
| cat new_code <(sed '1,/STRING/d' $file.old) > $file | |
| rm $file.old | |
| done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from __future__ import division | |
| import string | |
| class BayesianSpam: | |
| # training-set[categoria] := lista de mails en una categoria | |
| # mail := lista de palabras | |
| training = {'spam': [], 'no-spam': []} | |
| # probabilidades de cero ocurrencia en cada categoria, a priori | |
| # y de ocurrencia de cada palabra en cada categoria. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| \documentclass[margin]{res} | |
| \usepackage[utf8]{inputenc} | |
| \usepackage[spanish]{babel} | |
| \usepackage{graphics} | |
| \usepackage{graphicx} | |
| %\usepackage{amsmath} | |
| \usepackage{textpos} | |
| \oddsidemargin -.5in | |
| \evensidemargin -.5in |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 1. Configurar el path para el maillog, setear MAILLOG en check_postfix y update_postfix_stats | |
| 2. Copiar archivos al directorio de plugins de nagios y bin | |
| 3. Dar permisos al usuario definido en nrpe.cfg para que pueda leer maillog | |
| 4. Agregar al crontab: | |
| */5 * * * * root /usr/local/bin/update_postfix_stats |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #/bin/bash | |
| if [ ! "$(pidof rsync)" ] | |
| then | |
| rsync -ansd-js | |
| else | |
| echo "rsync andando" | |
| fi |
