Tuesday, January 22, 2019
Simon Tushev

Simon Tushev

Simon is IT professional with interests in web design, electronics, photography and astronomy. He writes about PHP, Yii, Joomla!, Arduino and several other topics.

MikroTik RB951G-2HnD is a wireless SOHO Gigabit AP/Router featuring five Gigabit Ethernet ports, one USB 2.0 port and a high power 2.4GHz 1000mW 802.11b/g/n wireless module with built-in antennas.

It's a robust and reliable device, however, it may be bricked if it was uploaded with incorrect firmware.

In this article I'm going to show how to recover it. The information here is applicable to RB951G-2HnD, but may be useful for other models as well.

Wednesday, 13 June 2012 22:14

SiteCensor

A small plugin that wipes off unnecessary words from your site.

In some cases you have to run multiple services on a domain secured by SSL certificate, on various ports.

Users, who want to access your server at https://example.com:1337 often type just example.com:1337, which leads to plain HTTP request and the error specified above.

A single line in nginx configuration can prevent nginx from showing this error message, and redirect user user using the correct scheme instead. Just add

error_page 497 https://$host:$server_port$request_uri;

to your host configuration inside server { ... } block and reload the configuration:

[[email protected] #]service nginx reload

If you upgrade to windows 8.1 64-bit, you may find that you cannot install argyll drivers for your colorimeter in a usual way.

To install them, you need:

The following script may help you to transfer or mirror your existing PHP+MySQL website completely from one server to another. You will need SSH accounts on both servers, with public key authentification set up (server 2 has public key in its ~/.ssh/authorized_keys for corresponding server 1's ~/.ssh/id_dsa (id_rsa)  ).

Save the following script as ~/transfer-site.sh, make it executable (chmod +x ~/transfer-site.sh) and launch it on server 1:

#!/bin/sh echo "Starting syncronization..." echo "Starting file transfer" rsync -rvz -e 'ssh -p 22' /PATH/TO/YOUR/EXISTING/SITE/ This email address is being protected from spambots. You need JavaScript enabled to view it.:/PATH/TO/YOUR/NEW/SITE/ --exclude="configuration.php" echo "Starting MySQL transfer" mysqldump --add-drop-table -u dbuser_1 -h mysql.example.com database_1 -pPASSWORD1 | ssh new-server mysql -h mysql.example.org -u dbuser_2 -pPASSWORD2 database_2 echo "All done!"

Is is assumed that you are transferring data from server 1 (example.com) to server 2 (example.org). And, sure, you do not need --exclude="configuration.php" in most cases. This will be useful only if you are synchronizing master Joomla! website with its mirror.

 

To use

ssh new-server

syntax you will need add the following to your ~/.ssh/config:

Host new-server Hostname example.org User username Port 22 PasswordAuthentication no
Page 4 of 7

Welcome!

Here I publish articles related to my areas of interest, my brief notes that may save some time to others, as well as some of my works.

This site is a work in progress. I will add more sections in the future, such as

  • More photos to photogallery
  • More Joomla!-related articles
  • ...

 

themeforest

New Posts

Using dynamic GeoIP module with nginx (CentOS)

nginx introduced dynamic module support in v. 1.9.11. This brief article provides step-by-step procedure...

13-04-2016 in Linux, BSD, Unix

READ MORE

Visual difference between pseudo and true random data

This is is "random" image generated using PHP rand() function: And this is an image...

20-11-2015 in Blog

READ MORE

Best EEPROM practices

(this article is a work in progress). My own advice will be added later...   Having...

12-10-2015 in Arduino

READ MORE
Scroll to top

We use cookies, just to track visits to our website, we store no personal details Privacy policy