Skip to content

Instantly share code, notes, and snippets.

View basz's full-sized avatar

Bas Kamer basz

View GitHub Profile
---
- debug: msg="{{ item | to_json }}"
with_items:
- unzip
- python-pip
- name: mysql | s3 import | setup
apt: name={{ item }} state=present
with_items:
- unzip
192.168.33.10 web.localhost # VAGRANT: ebc283c1f8ffc9e5cbe2478efab4e0ce (web) / b442f183-a01f-47d3-b3fc-eed832482bfb
192.168.33.11 db.localhost # VAGRANT: 6326d8261d43a18c63fb327a9d37abb4 (db) / 50816a6b-921e-4079-bedb-11f04a14987d
192.168.33.12 worker.localhost # VAGRANT: f0a3c4cc0918527022d4b00405ad86ac (worker) / ea8fbb1c-459d-455b-ae35-3f2c55c83201
import Ember from 'ember';
/**
* MaterializeCSS Dropdown Component
*
* @see http://materializecss.com/dropdown.html
*/
export default Ember.Component.extend({
tagName: 'a',
classNames: ['dropdown-button'],
overriding the classNames does not seem to work
{{select-2
content=this.styleOptions
value = this.selectedStyle
placeholder="A Style"
classNames=+++WHAT SHOULD I PUT HERE+++
searchEnabled=false
}}
<?xml version="1.0"?>
<doctrine-mapping xmlns="http://doctrine-project.org/schemas/orm/doctrine-mapping" xsi="http://www.w3.org/2001/XMLSchema-instance" schemaLocation="http://doctrine-project.org/schemas/orm/doctrine-mapping.xsd">
<entity name="HF\Model\Utility\RecordLock" table="util_recordlock">
<id name="id" type="integer">
<generator strategy="AUTO"/>
</id>
<field name="table_name" type="string" length="64" nullable="false"/>
<field name="row_id" type="integer" nullable="false"/>
<field name="by" type="string" length="64" nullable="false"/>
<field name="until" type="datetime" nullable="false"/>
<?php
/**
* This doctrine event subscriber will join a user table to the client table
* thereby freeing the user table from the OAuth2 contraints
*/
namespace ZF\OAuth2\Doctrine\EventListener;
use Doctrine\Common\EventSubscriber;
$em = $e->getApplication()->getServiceManager()->get('doctrine.entity_manager.orm_default');
$filter = new CamelCaseToUnderscore();
$entities = array(
'ZF\OAuth2\Doctrine\Entity\AccessToken',
'ZF\OAuth2\Doctrine\Entity\AuthorizationCode',
'ZF\OAuth2\Doctrine\Entity\Client',
'ZF\OAuth2\Doctrine\Entity\Jti',
'ZF\OAuth2\Doctrine\Entity\Jwt',
'ZF\OAuth2\Doctrine\Entity\PublicKey',
'ZF\OAuth2\Doctrine\Entity\RefreshToken',
@basz
basz / Authentication
Created May 6, 2015 11:09
UserId Provider
<?php
namespace Authentication\ZFOAuth2UserIdProvider\Provider\UserId;
use Zend\Authentication\AuthenticationServiceInterface;
use Zend\Stdlib\RequestInterface;
use ZF\OAuth2\Provider\UserId\UserIdProviderInterface;
class Authentication implements UserIdProviderInterface
{
<?php
namespace Application\Navigation\Service\Factory;
use Zend\Navigation\Service\AbstractNavigationFactory;
use Zend\ServiceManager\ServiceLocatorInterface;
class FSNavigationFactory extends AbstractNavigationFactory
{
<?php
return [
'bsb_flysystem' => [
'adapters' => [
'rackspace->order' => [
'type' => 'rackspace',
'options' => [
'url' => \OpenCloud\Rackspace::US_IDENTITY_ENDPOINT,
'secret' => [