This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| set nocompatible " Disable vi-compatibility | |
| set t_Co=256 | |
| colorscheme xoria256 | |
| set guifont=menlo\ for\ powerline:h16 | |
| set guioptions-=T " Removes top toolbar | |
| set guioptions-=r " Removes right hand scroll bar | |
| set go-=L " Removes left hand scroll bar | |
| set linespace=15 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| set nocompatible " Disable vi-compatibility | |
| set t_Co=256 | |
| colorscheme xoria256 | |
| set guifont=menlo\ for\ powerline:h16 | |
| set guioptions-=T " Removes top toolbar | |
| set guioptions-=r " Removes right hand scroll bar | |
| set go-=L " Removes left hand scroll bar | |
| set linespace=15 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #Install Homebew | |
| ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
| sudo chown -R $(whoami) /usr/local | |
| brew prune | |
| echo 'export PATH="/usr/local/sbin:$PATH"' >> ~/.bash_profile | |
| brew update | |
| ### Install some apps for Mac with cask | |
| brew install caskroom/cask/brew-cask |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| '===================================================================================================================== | |
| ' | |
| ' | |
| ' ОПИСАНИЕ | |
| ' | |
| ' По подразбиране конвертира левове (в мъжки род), но може да се използва и за мярка в женски род (например метро | |
| ' единици) или среден род (например евро). | |
| ' | |
| ' ИНСТАЛАЦИЯ | |
| ' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 1- execute raw SQL queries with result | |
| $users = DB::select(DB:raw('SELECT * FROM users')); | |
| then just send users to the view | |
| return View::make('home.index',compact('users')); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # vi /etc/resolv.conf - DNS settings |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #WORK WITH ARCHIVES | |
| $ tar xvf archive.tar -> extract the archive to the current folder | |
| $ tar xvfz archive_name.tar.gz -> extract tar.gz or tgz files | |
| $ tar xvfj archive_name.tar.bz2 -> extract tar.bz2 ,tb2, tbz files | |
| $ tar cvf archive.tar folder/ -> create archive from a folder | |
| $ gzip file -> create gz archive from file | |
| $ gzip -d file.gz -> decompress gz archive |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # | |
| #This script adds VirtualHost directly to httpd.conf file | |
| #All you need to do is to change your sites path and your username | |
| # | |
| #Usage : sudo vhost.sh wordpress | |
| #This will generate | |
| # Server Name => wordpress.dev | |
| # Document Root => www/wordpress folder. | |
| if [ "$1" == "" ]; then |