Adding an existing project to GitHub using the command line

My way of adding project to GitHub This is my shortest possible explanation, I am glad if someone finds this post useful. This is for Linux users. For Win and Mac user you can find instructions here, on the original GitHub documentation. Create a new repository on GitHub. To avoid errors, do not initialize the new repository with README, license, or gitignore files. You can add these […]

WordPress code highlighting

// Crayon C++ #include <iostream> using namespace std; int main() { int a; cout << “1,2 or 3” << endl; cin >> a; } // Enlighter C++ #include <iostream> using namespace std; int main() { int a; cout << “1,2 or 3” << endl; cin >> a; } [cpp] using namespace std; int main() { int a; cout << "1,2 […]

How to enable .htaccess in Apache HTTP server

.htaccess A .htaccess file is a directory-level configuration file for Apache HTTP server, which allows one to override the web server’s system-wide settings without modifying the global configuration file (e.g., httpd.conf or apache2.conf). Things like per-directory access control, password protection, URL redirection or hotlink prevention can be configured in the .htaccess file. You should avoid using file.htaccess completely if you have […]

Running several name-based web sites on a single IP address.

If your server has multiple hostnames that resolve to a single address, and you want to respond differently for and Creating virtual host configurations on your Apache server does not magically cause DNS entries to be created for those hostnames. You must have the names in DNS, resolving to your IP address, or nobody else will be able to see your website. You […]