- Instalar infinality para Ubuntu
$ sudo add-apt-repository ppa:no1wantdthisname/ppa
$ sudo apt-get update
$ sudo apt-get install fontconfig-infinality
#!/usr/bin/perl | |
use strict; | |
use warnings; | |
use POSIX qw(strftime); | |
my @dmesg_new = (); | |
my $dmesg = "/bin/dmesg"; | |
my @dmesg_old = `$dmesg`; | |
my $now = time(); |
$ sudo add-apt-repository ppa:no1wantdthisname/ppa
$ sudo apt-get update
$ sudo apt-get install fontconfig-infinality
#!/bin/bash | |
/usr/bin/mosh --no-init $1 -- screen -dR |
#!/bin/sh | |
sync; echo 3 > /proc/sys/vm/drop_caches | |
swapoff -a && swapon -a |
#!/usr/bin/perl -w | |
# | |
# pfdel - deletes message containing specified address from | |
# Postfix queue. Matches either sender or recipient address. | |
# | |
# Usage: pfdel <email_address> | |
# | |
use strict; |
# http://markmcb.com/2013/02/04/cleanup-unused-linux-kernels-in-ubuntu/ | |
dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d'| xargs sudo apt-get purge -y |
# por ftp con wget | |
wget -r --user=<usuario> --password=<password> ftp://<host> | |
# por http con wget | |
wget --mirror --convert-links --adjust-extension --page-requisites --no-parent --domains <dominio> -H <dominio> | |
# por http con httrack | |
httrack "http://<dominio>/" -O <path_almacenamiento> "+*.<dominio>/*" -v |
### IMPROVE SYSTEM MEMORY MANAGEMENT ### | |
# Increase size of file handles and inode cache | |
fs.file-max = 2097152 | |
# Do less swapping | |
vm.swappiness = 10 | |
vm.dirty_ratio = 60 | |
vm.dirty_background_ratio = 2 |
# Reparar as tablas de mongodb, por exemplo cando se cerrou mal o servidor, para correxir o erro: | |
# exception in initAndListen: 12596 old lock file, terminating | |
mongodb mongod --repair --dbpath /var/lib/mongodb/ | |
chown -R mongodb:mongodb /var/lib/mongodb |
set -g terminal-overrides 'xterm*:smcup@:rmcup@' | |
set-window-option -g xterm-keys on |