Translate

Friday, February 26, 2016

Sublime | How to change selected tab color





If you want to change sublime  selected tab color  in order to achieve this:


You must follow  these steps:
  1. Got to:  Preference->Browse Packages..
  2. In the  packages windows , go to the folder User/
  3. Create a new file called "Default.sublime-theme"
  4. Open the file Default.sublime-theme and add the following code:
      
    [{"class": "tab_control", "attributes": ["selected", "file_medium_dark"],"tint_modifier": [91,123,33]}]
    
    
  5. Save the changes and see the result immediately

Thursday, February 18, 2016

Linux Command Shell : how to make Apache owner of folder

If  you need to make Apache owner of a specific folder, you can  achieve it , by executing the following  Linux command:

  
     chown -R apache /var/www/symfony_app/My_Folder/
   
This command will cause Apache is the owner of the folder and the contents in it.




Tuesday, February 9, 2016

The most usefull GIT Commands






These are the most common GIT commands



  • Create an empty repository
  
      git init
   
  • Staging your changes
  
     git add
   

    • If you are your  root directory , I mean myapplication/ you can use the paramter -A to stage all changes in one execution.
  
     git add -A
   

  • Putting you changes in your local repo
                  git commit
  
    git commit
   
    • If you want to add a message in your commit you can use the parameter  -m
  
   git commit -m "login fixed"
   

  • Switching between branches
  
   git checkout develop
   
  • Creating a new branch
  
   git checkout -b MyNewBranch
   


  • Adding new remote
  
   git remote add origin https://github.com/plataformatec/devise.git
   

  • Saving your changes to the remote repo  
  
     git push origin develop
   

  • Pull down new changes


  
     git pull origin develop