Skip to content

Instantly share code, notes, and snippets.

View DevWL's full-sized avatar

Wiktor Liszkiewicz DevWL

  • Gajda-Med
  • Poland
View GitHub Profile
# 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
# skin to download with install instruction
http://plugins.netbeans.org/plugin/51424/sublime-theme
sudo add-apt-repository universe
sudo apt-get update
sudo apt-get install nautilus-open-terminal
sudo apt-get install nautilus-actions
nautilus -q
# 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
# 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
$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'){
@DevWL
DevWL / sass rounded corners in .scss
Last active December 30, 2015 16:19
Round corners with sass in .scss file
// 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;