View list of sane mimetypes for a "document" upload
parameters:
file_upload_mime_types:
- application/pdf
- application/x-pdf
- text/plain
- application/rtf
- image/*
- application/msword
- application/vnd.openxmlformats-officedocument.wordprocessingml.document
View platform.sh - gitlab autodeploy
# /dev/ci/setup_ssh.sh
#!/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()
->addJoin(
FooTableMap::COL_ID,
BarTableMap::COL_ITEM_ID,
Criteria::LEFT_JOIN
)
->addCond(BarTableMap::COL_UPDATED_AT, $updatedAt->format('Y-m-d H:i:s'), Criteria::LESS_THAN)
->toString()
;
View security_provider.php
<?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. https://onename.com/lsmith
View gist:f1ab3fe12fb0813ba4f7
<?php
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:
http://pqrs.org/macosx/keyremap4macbook/ -->
<root>
<devicevendordef>
<vendorname>LOGITECH</vendorname>
<vendorid>0x046d</vendorid>
</devicevendordef>
<deviceproductdef>
View gist:93a9c4431ad1bbe9f06a
brew update
brew outdated
brew upgrade
brew install maven
brew install mongodb
mongod --config /usr/local/etc/mongod.conf
wget http://www.eu.apache.org/dist/jackrabbit/oak/1.0.1/jackrabbit-oak-1.0.1-src.zip
View keybase.md

Keybase proof

I hereby claim:

  • I am lsmith77 on github.
  • I am lsmith (https://keybase.io/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:

View gist:6712898
<?php
interface ExceptionInterface
{
public function getMessage();
public function getCode();
public function getFile();