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
| # Ubuntu - install sublime text 3 | |
| sudo add-apt-repository ppa:webupd8team/sublime-text-3 | |
| sudo apt-get update | |
| sudo apt-get install sublime-text-installer | |
| # create symlink | |
| sudo ln -s /opt/sublime_text/sublime_text /usr/local/bin/subl | |
| # use sublime like so: | |
| subl someFile.php |
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
| # skin to download with install instruction | |
| http://plugins.netbeans.org/plugin/51424/sublime-theme |
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
| sudo add-apt-repository universe | |
| sudo apt-get update | |
| sudo apt-get install nautilus-open-terminal | |
| sudo apt-get install nautilus-actions | |
| nautilus -q |
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
| # Cache and logs (Symfony2) | |
| /app/cache/* | |
| /app/logs/* | |
| !app/cache/.gitkeep | |
| !app/logs/.gitkeep | |
| # Cache and logs (Symfony3) | |
| /var/cache/* | |
| /var/logs/* | |
| !var/cache/.gitkeep |
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
| # WORKING FROM WINDOWS HOSTING SYMFONY APP ON SERVER ON LINUX (UBUNTU) | |
| # install Wirtual Box from Oracle | |
| # download and mount Ubuntu Desktop version | |
| # Install GuestEdytion | |
| # SYMFONY ENV CONFIGURATION INSTRUTION | |
| sudo apt-get update | |
| # INSTALL APACHE2 | |
| sudo apt-get-repository ppa:ptn107/apache |
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
| $app->error(function(\Exception $e, $code) use ($app) { | |
| if (404 === $code) { | |
| $path = $app['request']->getPathInfo(); | |
| $path = explode('/',$path); | |
| echo $path[1]; | |
| if($path[1] == 'php'){ | |
| return $app->redirect($app['url_generator']->generate('php')); | |
| } | |
| if($path[1] == 'css'){ |
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
| // I wrote this for my own use, but please feel free to shear it or use it if you find it useful. | |
| //.scss-------------------------------------------------------------------------------------------------------------------- | |
| @mixin rounded($amount: "10px",$position: null) { | |
| @if $position != null { | |
| @if $position == "top" or $position == "bottom" { | |
| // top or bottom | |
| -webkit-border#{$position}-left-radius: $amount; |
NewerOlder