$ rails server |
$ rails s |
$ rails console |
$ rails c |
$ rails generate |
$ rails g |
$ bundle install |
$ bundle |
$ rake test |
$ rake |
Monthly Archives: July 2015
A crash course on the Unix command line
Description | Command | Example |
list contents | ls | $ ls -l |
make directory | mkdir <dirname> | $ mkdir workspace |
change directory | cd <dirname> | $ cd workspace/ |
cd one directory up | $ cd .. |
|
cd to home directory | $ cd ~ or just $ cd |
|
cd to path incl. home dir | $ cd ~/workspace/ |
|
move file (rename) | mv <source> <target> | $ mv README.rdoc README.md |
copy file | cp <source> <target> | $ cp README.rdoc README.md |
remove file | rm <file> | $ rm README.rdoc |
remove empty directory | rmdir <directory> | $ rmdir workspace/ |
remove nonempty directory | rm -rf <directory> | $ rm -rf tmp/ |
concatenate & display file contents | cat <file> | $ cat ~/.ssh/id_rsa.pub |
Fix https on Chrome links
In Chrome, WooCommerce is adding “https” in front of links.
To fix that, add this line on functions.php (on your active theme):
[php]
$_SERVER[‘HTTPS’] = false;
[/php]
And that should do the trick.
GIT commit
To upload files from local to git use this:
1. get inside folder;
2. use
git add -A
3. use
git commit -m "name_of_commit_action"
4. then
git push