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
| SELECT | |
| `sights_lang`.`name`, | |
| `sights_lang`.`address`, | |
| `sights`.`category_id`, | |
| `sights_categories_lang`.` | |
| categoryName`, | |
| `sights`.`latitude`, | |
| `sights`.`longitude`, | |
| `sights`.`sights_id` | |
| FROM `partner_hotels`.`sights_lang` |
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
| find . -name "*.jsp" -exec fconv {} \; |
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
| $image = "/(<a[^<]+\>[^<]*|)\<img [^<]+\>([^<]*\<\/a\>|)/ism"; |
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
| /** | |
| * @example Object.byString(someObject, 'part1.name') | |
| * @example Object.byString(someObject, 'part2.qty') | |
| * @example Object.byString(someObject, 'part3[0].name') | |
| * | |
| * @param obj {Object} | |
| * @param str {String} | |
| * @returns {*} | |
| */ | |
| Object.byString = function(obj, str) { |
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
| # Inspired from http://blog.hio.fr/2011/09/17/doctrine2-yaml-mapping-example.html | |
| MyEntity: | |
| type: entity | |
| repositoryClass: MyRepositoryClass | |
| table: my_entity | |
| namedQueries: | |
| all: "SELECT u FROM __CLASS__ u" | |
| # Class-Table-Inheritance |
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 ~^(www\.)?(?<sname>.+?).local.com$; | |
| root /var/www/$sname/public; | |
| index index.html index.htm index.php; | |
| charset utf-8; | |
| location / { |
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
| parameters: | |
| routing.file: 'routing_%core.name%.yml' | |
| routing.cache: | |
| debug: %core.debug% | |
| cache_dir: '%core.cache_path%/routing/' | |
| generator_cache_class: '%core.name%UrlGenerator%core.env%' | |
| matcher_cache_class: '%core.name%UrlMatcher%core.env%' | |
| services: | |
| routing.file_locator: |
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
| parameters: | |
| doctrine_cache.class: Doctrine\Common\Cache\ArrayCache | |
| doctrine_metadata.class: Doctrine\Common\Annotations\Reader | |
| doctrine_configuration.class: Doctrine\ORM\Configuration | |
| doctrine_entity_manager.class: Doctrine\ORM\EntityManagerInterface | |
| doctrine_entity_manager_factory.class: Doctrine\ORM\EntityManager | |
| doctrine.proxy_dir.path: '/path/to/proxy' | |
| doctrine.proxy.namespace: 'Project\Proxies' |
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/sh | |
| sudo ln -s /usr/local/bin/node /usr/bin/node | |
| sudo ln -s /usr/local/lib/node /usr/lib/node | |
| sudo ln -s /usr/local/bin/npm /usr/bin/npm | |
| sudo ln -s /usr/local/bin/node-waf /usr/bin/node-waf |
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 mediawiki.com; | |
| root /var/www/mediawiki.com; | |
| client_max_body_size 5m; | |
| client_body_timeout 60; |