Note: I configured this thinkfan setup for my old Thinkpad w520 on Ubuntu 17.10.
Install lm-sensors
and thinkfan
.
sudo apt-get install lm-sensors thinkfan
# 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 ------------------------------------------------------------------- |
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' |
#!/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 |
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. |
\documentclass[margin]{res} | |
\usepackage[utf8]{inputenc} | |
\usepackage[spanish]{babel} | |
\usepackage{graphics} | |
\usepackage{graphicx} | |
%\usepackage{amsmath} | |
\usepackage{textpos} | |
\oddsidemargin -.5in | |
\evensidemargin -.5in |
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 |
#/bin/bash | |
if [ ! "$(pidof rsync)" ] | |
then | |
rsync -ansd-js | |
else | |
echo "rsync andando" | |
fi |