Installation de contrôle package pour Text Sublime 2

L’installation est via la Sublime Text 2 console. Une fois ouvert, collez la commande suivante dans la console:

import urllib2,os; pf=’Package Control.sublime-package’; ipp=sublime.installed_packages_path(); os.makedirs(ipp) if not os.path.exists(ipp) else None; urllib2.install_opener(urllib2.build_opener(urllib2.ProxyHandler())); open(os.path.join(ipp,pf),’wb’).write(urllib2.urlopen(‘http://sublime.wbond.net/’+pf.replace(‘ ‘,’%20’)).read()); print ‘Please restart Sublime Text to finish installation’

via wbond

Installing WordPress via SSH command line

Sometimes it is easier to install WordPress on your server without downloading it locally and then uploading it to your website.

1. Log in to the server via SSH.

ssh username@mondomain.ca -p 22

2. Change to mondomain.ca/public_html directory and download the file there.

cd /home/mondomain.ca/public_html

3. The newest version of WordPress is always available at http://wordpress.org/latest.tar.gz

wget http://wordpress.org/latest.tar.gz

4. Extract it.

tar -zxvf latest.tar.gz

5. Move all files and folders (*) to the folder above the one you are in.

mv wordpress/* ../

6. Remove wordpress folder and the downloaded file.

rm -r wordpress
rm latest.tar.gz

7. Rename wp-config-sample.php to wp-config.php.

mv wp-config-sample.php wp-config.php

8. Then we need to edit wp-config.php.

nano wp-config.php

9. Add DataBase databasename/username/password/host.

/** The name of the database for WordPress */
define(‘DB_NAME’, ‘database_name_here’);
/** MySQL database username */
define(‘DB_USER’, ‘username_here’);
/** MySQL database password */
define(‘DB_PASSWORD’, ‘password_here’);
/** MySQL hostname */
define(‘DB_HOST’, ‘localhost’);

10. Create uploads folder and change chmod.

cd wp-content/
mkdir uploads
chmod 755 uploads/

11. Open mondomain.ca in browser, complete the installation, choose a username and password!

lynx http://mondomain.ca

12. Congrats!

Stonehenge

One of theory ( by Ahmed Boudjani) of how the Stonehenge stones were transported and erected.

Stonehenge is a prehistoric monument located in the English county of Wiltshire, about 2.0 miles west of Amesbury and 8 miles north of Salisbury.