This file contains 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
# Sample configuration for overriding Assetic's default LessFilter | |
# configuration in order to define one or more "load paths". | |
# | |
# Setting load paths allows to load libraries (such as Twitter's Bootstrap | |
# less sources) from different directories. | |
# | |
# Save this file in your bundle's `config` directory and import it into | |
# yor `services.yml` using the `imports` directive, eg.: | |
# | |
# imports: |
This file contains 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
services: | |
# Use an entity's ClassMetadata as if it where a service (for example, in | |
# other services definitions). | |
# | |
# See http://symfony.com/doc/2.0/components/dependency_injection/factories.html | |
foo.foo_class_metadata: | |
class: "Doctrine\\Common\\Persistence\\Mapping\\ClassMetadata" | |
factory_service: doctrine.orm.entity_manager | |
factory_method: getClassMetadata | |
arguments: |
This file contains 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
daemon off; | |
http { | |
proxy_cache_path /usr/local/var/cache/nginx keys_zone=anon:10m; | |
server { | |
listen 8888; | |
server_name foo; | |
This file contains 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
.vagrant/* |
This file contains 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 | |
/** | |
* Boots a Symfony 2.0 kernel when running boris from the project directory, and | |
* make the DIC available as $container. | |
*/ | |
require_once __DIR__ . '/app/bootstrap.php.cache'; | |
require_once __DIR__ . '/app/AppKernel.php'; |
This file contains 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 | |
$doc = new \DomDocument(); | |
$doc->loadXML(file_get_Contents(__DIR__ . '/cities.xml')); | |
$xp = new \DOMXpath($doc); | |
echo $xp->query("//return/country[contains(., 'Italy (IT)')]")->length; | |
This file contains 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
{ | |
"manifest_version": 2, | |
"name": "Mocklocation", | |
"description": "Override navigator.geolocation with Mocklocation", | |
"version": "0.1", | |
"permissions": [ | |
"http://*/*", | |
"https://*/*" | |
], |
This file contains 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
tell application "iTerm" | |
set tt to sessions of tabs of terminal windows whose tty is equal to "/dev/ttys001" | |
-- result is this nested list: | |
-- {{{select 1 of select 1 of application "iTerm"}}} | |
end tell |
This file contains 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 | |
use Symfony\Component\HttpFoundation\Request; | |
use Symfony\Component\Process\ProcessBuilder; | |
/** | |
* @author marzocchi | |
*/ | |
class RequestToCurlTranslator { |
This file contains 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 | |
# Needs jira-cmd: https://github.com/germanrcuriel/jira-cmd | |
set -e | |
monday=$(date -v "-"$(date +"%u")"d" -v +1d +"%Y-%m-%d 00:00") | |
query="assignee was currentUser() AND updatedDate > '"$monday"'" | |
jira jql -- "$query" | |
echo Query: $query | |
unset query |