View DoctrineMigrationTest.php
namespace AppBundle\Tests;
use Doctrine\DBAL\Connection;
use Doctrine\ORM\Tools\SchemaTool;
use Doctrine\DBAL\Driver\PDOMysql\Driver as MySQLDriver;
class DoctrineMigrationTest extends WebTestCase
View list of sane mimetypes for a "document" upload
- application/pdf
- application/x-pdf
- text/plain
- application/rtf
- image/*
- application/msword
- application/vnd.openxmlformats-officedocument.wordprocessingml.document
View - gitlab autodeploy
# /dev/ci/
#!/usr/bin/env bash
which ssh-agent || (apt-get update -y && apt-get install openssh-client -y)
eval $(ssh-agent -s)
ssh-add <(echo "$PLATFORMSH_DEPLOY_KEY")
mkdir -p ~/.ssh
[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config
View gist:6f352592b0a460fb0886f4cec82d51de
// also tried using addJoinObject + addJoinCondition but either way the condition just gets ignored
$results = $this->getFooQuery()
->addCond(BarTableMap::COL_UPDATED_AT, $updatedAt->format('Y-m-d H:i:s'), Criteria::LESS_THAN)
View security_provider.php
$security_provider = getenv('SECURITY_PROVIDER');
if (empty($security_provider)) {
if ('dev' === getenv('APP_ENVIRONMENT')) {
$security_provider = 'chain_provider';
} else {
$security_provider = 'ldap';
View Onename
Verifying that +lsmith is my blockchain ID.
View gist:f1ab3fe12fb0813ba4f7
namespace Liip\TranslationBundle\DependencyInjection\Compiler;
use Doctrine\ODM\PHPCR\Mapping\Annotations\Reference;
use Symfony\Component\DependencyInjection\Compiler\CompilerPassInterface;
use Symfony\Component\DependencyInjection\ContainerBuilder;
* Compiler pass to dynamically set the service for isGrant checks (can be removed when requiring Symfony 2.6+
View Logitech R700 with reveal.js
<?xml version="1.0"?>
<!-- Use with KeyRemap4MacBook: -->
View gist:93a9c4431ad1bbe9f06a
brew update
brew outdated
brew upgrade
brew install maven
brew install mongodb
mongod --config /usr/local/etc/mongod.conf

Keybase proof

I hereby claim:

  • I am lsmith77 on github.
  • I am lsmith ( on keybase.
  • I have a public key whose fingerprint is 280C F185 F4AF A00F EE49 3F71 0D4E 225B 7B2F 7EDC

To claim this, I am signing this object: