Skip to content

Instantly share code, notes, and snippets.

View starikovs's full-sized avatar
👨‍💻
Coding

Viacheslav Starikov starikovs

👨‍💻
Coding
View GitHub Profile
--- get laravel.phar ---
wget http://laravel.com/laravel.phar
sudo mv laravel.phar /usr/local/bin/laravel
sudo chmod +x /usr/local/bin/laravel
which laravel
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install php5-curl
@starikovs
starikovs / git
Last active August 29, 2015 13:57
--- install git ---
git ---version (in Debian git is installed)
dpkg -s git | grep Status
dpkg -s git
apt-cache pkgnames git
apt-get install git
--- bare repo on server ---
@starikovs
starikovs / linux
Last active August 29, 2015 13:56
--- ls ---
ls -dl */ (list only directories)
ls -l | grep "^d"
--- copy ---
rsync options source destination (http://cloudtips.org/rsync.html)
rsync -zvr /tmp/helloworld/ /root/message
brew update; # update packages' info
brew upgrade; # upgrade outdated packages
brew install <some_package>; # install package which you want
brew install vim
brew install mysql
brew doctor
brew search vim
--- text ---
(many of these commands may be combined with ⇧ Shift to select a region of text)
Cmd + right, Cmd + left (end and beginning of line)
Opt + right, Opt + left (end and beginning of word)
Cmd + up, Cmd + down (beginning and end of document)
--- cwd Projects/long-dialog ---
:CtrlP
:CtrlP site
-- when CtrlP is open ---
F5 - cache
c-f - forward
c-b - back
c-d - path/file