MySQLRebuildAndOptimiseIndexCron
MySQL command mysqlcheck this can be run whilst mysql is running, unlike myasmchk which ideally shouldn’t be run on a live mySQL server mysql – rebuild indexes by database in crontab * 00 11 * * *...
View ArticleMySQL
rename a table RENAME TABLE old_table TO tmp_table, new_table TO old_table, tmp_table TO new_table; re-index massive tables that are taking too long to re-index and are highly volatile rename the...
View ArticleSettingUpSSHPrivateKeyPairsAndKeyRings
1. Firstly, generate your public/private keys using ssh-keygen % ssh-keygen -t rsa You must use the -t option to specify that you are producing keys for SSHv2 using RSA. This will generate your id_rsa...
View ArticleTeeForSavingOutputsWhenCompilingOrWhatever
Compiling nicely with tee make 2>&1 | tee log.make
View ArticleIfConfig
Solaris ifconfig ifconfig iprb0:1 plumb ifconfig iprb0:1 192.168.0.3 netmask 255.255.255.0
View Articlequick hacks
copy files from a directory to a destination by number offset: #!/usr/bin/perl -w use strict; use Getopt::Std; use File::Copy; my %opts = (); getopts('d:n:f:', \%opts); my $dir = $opts{d}; my $num =...
View ArticleTelnet router
Terminale: route [invio] l’ip della riga default è quello del modem/router (di solito 192.168.1.1) Terminale: telnet xxx.xxx.xxx.xxx [invio] Inserisci user/psw Se l’accesso telnet non è abilitato va...
View ArticleServer DNS
apt-get install bind9 dnsutils cd /etc/bind mkdir -p zones/master cd zones/master/ /etc/init.d/bind9 start Starting domain name service...: bind9.
View ArticleSSL
yum install mod_ssl openssl # Generate private key openssl genrsa -out ca.key 2048 # Generate CSR openssl req -new -key ca.key -out ca.csr # Generate Self Signed Key openssl x509 -req -days 365 -in...
View ArticleUSB Stick UMTS/HSDPA
La configurazione dipende da quale chiavetta internet si sta utilizzando… comunque queste si possono considerare come linee guida Take a look at the output of lsusb. You should see your modem assigned...
View Article
More Pages to Explore .....