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 usermod -a -G groupname username |
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
| RewriteEngine On | |
| RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /(.*)index\.php/?(.*)\s [NC] | |
| RewriteRule ^.*$ /%1%2 [R=301,L] | |
| # if the requested path and file doesn't directly match a physical file | |
| RewriteCond %{REQUEST_FILENAME} !-f | |
| # and the requested path and file doesn't directly match a physical folder | |
| RewriteCond %{REQUEST_FILENAME} !-d | |
| # internally rewrite the request to the index.php script |
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
| server { | |
| listen 80; | |
| server_name symfony.localhost www.symfony.localhost; | |
| root /var/www/symfony/web; | |
| error_log /var/log/nginx/symfony.error.log; | |
| access_log /var/log/nginx/symfony.access.log; | |
| # strip app_dev.php/ prefix if exists |
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
| home_redirect: | |
| host: "%domain%" | |
| pattern: /%locale%/ | |
| defaults: | |
| _controller: FrameworkBundle:Redirect:urlRedirect | |
| path: / | |
| permanent: false | |
| home_locale: | |
| host: "%domain%" |
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
| <?php | |
| /** | |
| * @var string $name | |
| * | |
| * @ORM\Column(type="string") | |
| */ | |
| private $name = ''; | |
| public function setName($name) { |
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
| function getDefaultSelector() { | |
| return '.home'; | |
| } | |
| function hashToSelector(hash) { | |
| return hash.match(/^#.+/) | |
| ? hash.replace(/^#/, '.') | |
| : getDefaultSelector() | |
| ; | |
| } |
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
| <?php | |
| /** | |
| * Convert current object to array | |
| */ | |
| public function toArray() | |
| { | |
| $data = array(); | |
| foreach (get_object_vars($this) as $property => $value) { |
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
| #path/to/project/.htaccess | |
| # Rewrite all requests to subdirectory, except exists file requests | |
| <IfModule mod_rewrite.c> | |
| RewriteEngine On | |
| RewriteCond %{REQUEST_FILENAME} !-f | |
| RewriteRule ^(.*)$ /web/$1 [QSA,L] | |
| </IfModule> |
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
| _ | |
| / ) | |
| .--.; | _...,-"""-, | |
| .-""-.-""""-. / _`'-._.' /` \ | |
| /' \ \| (/'-._/ ) ; | |
| .-""""-; ( '--' /-' _ | | |
| .' | ; e / a , ; | |
| / \ | __.'`-.__, ; / | |
| / `._ ; .-' `--.,__.\ /` | |
| //| \ \,-' /\_.' |
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
| http://jesseforrest.name/resolving-vmwares-unable-to-update-run-time-folder-sharing-status-unknown-error/305 | |
| The Problem | |
| Sometimes when upgrading VMware, I noticed that I can no longer share directories between my local file system and the VMs file system. | |
| In an effort to get shared folders working, I would then go to the following location in VMware: | |
| Virtual Machine -> Sharing -> Sharing Settings … | |
| I would accurately see the folders I want to share and I would see that Shared Folders is “ON”. In an attempt to re-share the folders I toggled Shared Folders to “OFF”. I then toggled it back to “ON” and noticed the following error: |