Blog et Aide mémoire informatique

mardi 2 mai 2017

Add Address to IPTABLE DROP

Block a region. Usefull for China.
iptables -A INPUT -s 202.109.0.0/16 -j DROP

Add Address to IPTABLE DROP

Block a region. Usefull for China.
iptables -A INPUT -s 202.109.0.0/16 -j DROP

samedi 6 février 2016

Inodes

List inodes of mounted device
df -i
List inodes for directory
ls -id
find / -xdev -printf '%h\n' | sort | uniq -c | sort -k 1 -n

mercredi 2 décembre 2015

Hardware monitoring

Install this tool ipmitool few command Print system event log
ipmitool sel list
ipmitool 

lundi 23 novembre 2015

Logrotate

Some tips on logrotate

Lire la suite

mercredi 27 mai 2015

Network Config + Proxy : Fast Facts

Some quick reminder of file to modify

Lire la suite

mercredi 14 janvier 2015

Mail : interesting short cut

list mail queue
mailq  | tail -1 | awk '{print $5}'
See detail of queue
qshape
Flush mail queue
postfix -f
Flush defered mail queue
postsuper -d ALL deferred

dimanche 11 mai 2014

BBox DNS

Copy/Paste of this URL, in case of this page will be removed. Link

Lire la suite

mercredi 19 février 2014

Open Port Process : reminder

sudo lsof -i
sudo netstat -lptu
sudo netstat -tulpn

jeudi 19 juillet 2012

Discover Ubuntu version on your server

Short command line to check your Ubuntu version

Lire la suite

lundi 22 août 2011

Remove file older than *

This small command allow you to remove files based on time.

Lire la suite

samedi 5 décembre 2009

SFTP CHROOTING

This is a small tutorial to configure and securise an SFTP server based on OpenSSH

Lire la suite

mercredi 14 octobre 2009

PHP CodeSniffer into Eclipse

php

This small article details the installation of CodeSniffer into Eclipse as an external tool, and run your test directly in your favorite IDE.

Lire la suite

mercredi 25 juin 2008

Incredible


Big Ideas (don't get any) from James Houston on Vimeo.

mardi 26 février 2008

MySQL CRON Backup with file date named

This is a fast and easy way to backup MySQL DB every N-Time.

This solution is based on Shell, mysqldump command and CRON deamon

Lire la suite