Tag: terminal
-
Clone Git Repository Into Non Empty Folder
This can be done by cloning to a new directory, then moving the .git directory into your existing directory. If your existing directory is named “code”. git clone https://myrepo.com/git.git temp mv temp/.git code/.git rm -rf temp
-
GIT: Clone From Private Git Repository Example
A terminal command example for Git clone from private git repository. $ git clone username@domain.com:/home/username/repo_hub.git repo
-
Remove all .git files, recursively.
When we use .git in a project some times we need to do a fresh start or abandon the project we definitely need to delete all hidden git repository files.
-
Symfony2 Fondamental Terminal Command List
List of Routers $ php app/console debug:router Create Database $ php app/console doctrine:database:drop –force $ php app/console doctrine:database:create Create Entity Class $ php app/console doctrine:generate:entity Generating Getters & Setters $ php app/console doctrine:generate:entities AppBundle/Entity/Product Generating Entities in Namespace # generates all entities in the AppBundle $ php app/console doctrine:generate:entities AppBundle #…
-
Symfony2 Fresh Install On OS X
There are many method exists, (check on official web site) for me easiest way was writing this lines on OS X terminal. $ sudo curl -LsS http://symfony.com/installer -o /usr/local/bin/symfony $ sudo chmod a+x /usr/local/bin/symfony
-
Add Virtual Host On OS X
Add Virtual Host folder into apache config file by editing terminal command; sudo nano /etc/apache2/extra/httpd-vhosts.conf Like; <VirtualHost *:80> ServerName myproject.dev ServerAlias www.myproject.dev DocumentRoot “/Users/USERNAME/Sites/myproject” ErrorLog “/private/var/log/apache2/mypriject.dev-error_log” CustomLog “/private/var/log/apache2/myproject.dev-access_log” common ServerAdmin web@somedomain.com </VirtualHost> Save document, exit.
-
Bulk Image Resize By Using OS X Terminal Command
Mac OS X some times fascinating me! Isn’t it fantastic to able to resize a folder of image (jpg, png etc.) with a single line of command!?
-
PhpMyAdmin Installation On Laravel Homestead (Vagrant)
Laravel Homestead with VirtualBox and Vagrant is wonderful server environment. But PhpMyAdmin is not included out of the box, so let’s install with 3 basic steps.
-
How to Customize your Terminal Prompt On OS X Yosemite 10.10
Edit your .bash_profile with terminal command below; nano .bash_profile Add this line: export PS1=”(emoji) \W (emoji) $ ” (emoji) you can simply drag and drop the emoji into the text line.
-
How to find the serial port number on Mac OS X?
To find find your serial port list; It’s a build-in method in Mac OS X to find all ports with a terminal command.