Nginx enable site command

If you have installed the nginx package from the Ubuntu repositories, you will have two directories. /etc/nginx/sites-enabled and /etc/nginx/sites-available. In the main nginx configuration, /etc/nginx/nginx.conf, you have the following line: include /etc/nginx/sites-enabled/*.conf; So basically to list all available virtualhosts, you can run the following command: ls /etc/nginx/sites-available To activate one of them, run the following … Read more

What is the difference between the remap, noremap, nnoremap and vnoremap mapping commands in Vim?

remap is an option that makes mappings work recursively. By default it is on and I’d recommend you leave it that way. The rest are mapping commands, described below: :map and :noremap are recursive and non-recursive versions of the various mapping commands. For example, if we run: Then: j will be mapped to gg. Q will also be mapped to gg, because j will be expanded for the recursive mapping. W will be mapped to j (and … Read more

Run Command Prompt Commands

this is all you have to do run shell commands from C# EDIT: This is to hide the cmd window. EDIT: 2 Important is that the argument begins with /C otherwise it won’t work. How Scott Ferguson said: it “Carries out the command specified by the string and then terminates.”

How do I ignore files in Subversion?

(This answer has been updated to match SVN 1.8 and 1.9’s behaviour) You have 2 questions: Marking files as ignored: By “ignored file” I mean the file won’t appear in lists even as “unversioned”: your SVN client will pretend the file doesn’t exist at all in the filesystem. Ignored files are specified by a “file … Read more