Search

Rss Posts

Rss Comments

Login

 

Setlocale debian russian (unix, linux)

Nov 13

The Easy Way read all »

joomla debug info -howto

Oct 10

To turn on debug mode do the following:

read all »

charset .htaccess

Aug 27

Open .htaccess
read all »

how to Scroll by javascript to footer of page ?

Aug 09

to Scroll to footer of page on javascript
write
read all »

CURL Big files download

Jul 07

It is not so trivial task but i do not know till now how to make this!
read all »

How to Clear Debian cache on webserver ?

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

vBulletin Chmod – fast install

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 {} \;

IPB 3.x.x text replace in all posts

Jan 26


Run this queries in phpmyadmin to replace text1 to text2 read all »

Secure server backup (ftp + openssh+encode) !

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;

RewriteRule – host redirect

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]
 
Get Adobe Flash playerPlugin by wpburn.com wordpress themes
27 queries. 0.283 seconds.