Setlocale debian russian (unix, linux)
Nov 13
The Easy Way read all »
Aug 09
to Scroll to footer of page on javascript
write
read all »
Jul 07
It is not so trivial task but i do not know till now how to make this!
read all »
Jun 10
rm -r /var/log/apache2
rm -r /var/cache/eaccelerator
rm -r /root/Maildir
rm -r /home/internetfastnews/Maildir
rm -r /home/zxnews/Maildir
rm -r /home/seoch/Maildir
rm -r /home/otvetish/Maildir
rm -r /home/teaseo/Maildir
rm -r /home/school/Maildir
Mar 21
vBulletin Chmod – fast install forum
1 2 3 | find ./ -type f -exec chmod 777 {} \;
THEN After install
find ./ -type f -exec chmod 644 {} \; |
Jan 26
![]()
Run this queries in phpmyadmin to replace text1 to text2 read all »
Jan 12
Secure server backup logic
1) find all buckup files *.gz
2) encode them to *.gz.out
3) remove gz file
4) upload to ftp
5) remove encoded file
Secure server backup script
1 2 3 4 5 6 7 8 9 10 11 | #!/bin/sh
BACKUPDATE=`date +%Y-%m-%d`;
find . -type f -name "*.gz" -print|while read myfile
do
openssl enc -aes-256-cbc -salt -in "$myfile" -out "$myfile".out -pass pass:PaSSwordThere;
rm "$myfile" ;
curl -v -T "$myfile".out ftp://login:"FTppassThere"@ftpserveraddres.com/${BACKUPDATE}/"$myfile" -Q "MKD ${BACKUPDATE}";
curl -v -T "$myfile".out ftp://login:"FTppassThere"@ftpserveraddres.com/${BACKUPDATE}/"$myfile" ;
rm "$myfile".out ;
echo "$myfile" "\n" ;
done |
This is my first backup script!
Also decode example
openssl enc -d -aes-256-cbc -in zzzz.gz.out -out zzzz.gz -pass pass:PaSSwordThere;
Dec 03
Will redirect all request from _ld/ folder to another website
(.htaccess!!)
1 2 | RewriteRule ^_ld/(.*)$ http://fantasy-worlds.ru/_ld/$1 [L] RewriteRule ^_nw/(.*)$ http://fantasy-worlds.ru/_nw/$1 [L] |