##Preview
Display your iOS App Rating info. It uses iTunes Store website as the source.
##Usage
$ git branch -r --merged | | |
grep origin | | |
grep -v '>' | | |
grep -v master | | |
xargs -L1 | | |
awk '{split($0,a,"/"); print a[2]}' | | |
xargs git push origin --delete |
#!/bin/bash | |
# Script for placing sudoers.d files with syntax-checking | |
# Making a temporary file to contain the sudoers-changes to be pre-checked | |
TMP=$(mktemp -t vagrant_sudoers) | |
cat /etc/sudoers > $TMP | |
cat >> $TMP <<EOF | |
# Allow passwordless startup of Vagrant when using NFS. | |
Cmnd_Alias VAGRANT_EXPORTS_ADD = /usr/bin/su root -c echo '*' >> /etc/exports |
<?php | |
namespace Acme\DBAL\Platforms; | |
use Doctrine\DBAL\Platforms\PostgreSqlPlatform as DoctrinePostgreSqlPlatform; | |
class PostgreSqlPlatform extends DoctrinePostgreSqlPlatform | |
{ | |
public function getTruncateTableSQL($tableName, $cascade = false) | |
{ |
<?php | |
namespace Application\ProdrepHelperBundle\Component\Event; | |
use Symfony\Component\HttpFoundation\Response; | |
use Symfony\Component\Security\Core\Exception\AuthenticationException; | |
use Symfony\Component\Security\Core\Exception\AccessDeniedException; | |
use Symfony\Component\HttpKernel\Event\GetResponseForExceptionEvent; | |
/** | |
*/ | |
class AjaxAuthenticationListener |
##Preview
Display your iOS App Rating info. It uses iTunes Store website as the source.
##Usage
<?php | |
// ... | |
class AbstractInvoiceLineType extends AbstractType | |
{ | |
public function buildForm(FormBuilderInterface $builder, array $options) | |
{ | |
// ... |
#!/usr/bin/env osascript -l JavaScript | |
ObjC.import("Cocoa"); | |
function run(argv) { | |
var app = $.NSApplication.sharedApplication; | |
var statusBarItem = $.NSStatusBar.systemStatusBar.statusItemWithLength($.NSVariableStatusItemLength); | |
var track = Application('Spotify').currentTrack | |
ObjC.registerSubclass({ | |
name: "ProgramDelegate", |
If you want to run it on phantomjs (a headless browser) you can add this profile to your behat.yml and you need phantomjs >= 1.8.0
phantomjs:
extensions:
Behat\MinkExtension\Extension:
base_url: http://dev.local
goutte: ~
selenium2:
wd_host: "http://localhost:8643/wd/hub"
<?php | |
require_once __DIR__.'/autoload.php.dist'; | |
use Symfony\Component\ExpressionLanguage\ExpressionLanguage; | |
use Symfony\Component\Routing\Matcher\UrlMatcher; | |
use Symfony\Component\Routing\Matcher\RequestMatcherInterface; | |
use Symfony\Component\Routing\RequestContext; | |
use Symfony\Component\Routing\RouteCollection; | |
use Symfony\Component\Routing\Route; |