ror, scala, jetty, erlang, thrift, mongrel, comet server, my-sql, memchached, varnish, kestrel(mq), starling, gizzard, cassandra, hadoop, vertica, munin, nagios, awstats
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
import _ from 'lodash' | |
import qs from 'qs' | |
// @see https://www.contentful.com/developers/docs/references/images-api/#/reference/resizing-&-cropping/specify-width-&-height | |
const CONTENTFUL_IMAGE_MAX_SIZE = 4000 | |
const isImage = image => | |
_.includes( | |
[`image/jpeg`, `image/jpg`, `image/png`, `image/webp`, `image/gif`], | |
_.get(image, `file.contentType`) | |
) |
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
const Encore = require('@symfony/webpack-encore'); | |
const tailwindcss = require('tailwindcss'); | |
const autoprefixer = require('autoprefixer'); | |
const purgecss = require('@fullhuman/postcss-purgecss')({ | |
content: [ | |
'./templates/**/*.twig', | |
'./assets/js/**/*.vue', | |
'./assets/js/**/*.js', |
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 | |
namespace Namespace\That\Suits\You; | |
/** | |
* @Annotation | |
* @Target("CLASS") | |
*/ | |
class DiscriminatorEntry implements \Doctrine\ORM\Mapping\Annotation | |
{ |
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 | |
namespace Plusquam\Bundle\ContractBundle\Block; | |
use Sonata\BlockBundle\Block\BlockContextInterface; | |
use Symfony\Bundle\FrameworkBundle\Templating\EngineInterface; | |
use Symfony\Component\HttpFoundation\Response; | |
use Sonata\AdminBundle\Form\FormMapper; | |
use Sonata\AdminBundle\Validator\ErrorElement; |
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 | |
use Doctrine\Common\DataFixtures\Executor\ORMExecutor; | |
use Doctrine\Common\DataFixtures\Purger\ORMPurger; | |
use Doctrine\DBAL\Migrations\AbstractMigration; | |
use Symfony\Bridge\Doctrine\DataFixtures\ContainerAwareLoader as Loader; | |
use Symfony\Component\Console\Output\ConsoleOutput; | |
use Symfony\Component\DependencyInjection\ContainerAwareInterface; | |
use Symfony\Component\DependencyInjection\ContainerInterface; |
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
{ | |
"id": "1", | |
"name": "Belle Vista", | |
"active": true, | |
"meta": { | |
"externalBookNowUrl": "https://www.bookingpage.com/payments/id/1234", | |
"events": { | |
"enquiry": [ | |
{ | |
"strategy": "email", |
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
require(['IgnoreModule!module/to/Ingore'], function (Ignore) {...}); |
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
16:04:43 <duggan> N. Virginia: ami-2400984d | |
16:04:43 <duggan> Ireland: ami-d8d2d8ac | |
16:04:43 <duggan> Tokyo: ami-a361e1a2 | |
16:04:43 <duggan> Singapore: ami-6e703c3c | |
16:04:43 <duggan> Sydney: ami-4e0e9f74 | |
16:04:45 <duggan> Sao Paolo: ami-9d7aa180 | |
16:04:48 <duggan> N. California: ami-94f6dbd1 | |
16:04:50 <duggan> Oregon: ami-cf9206ff | |
NB: your username goes in the user data field |
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
#!/usr/bin/env perl | |
use strict; | |
use warnings; | |
use autodie qw(:all); | |
use Data::Dumper; | |
use Getopt::Long; | |
# How to run this: | |
# 1. Clone this gist into ~/g/gist-git-untracked/ | |
# 2. git init ~/g/to-repository |
NewerOlder