I hereby claim:
- I am jmather on github.
- I am thejmather (https://keybase.io/thejmather) on keybase.
- I have a public key whose fingerprint is 398D AEDD 8EA9 DC5A 1F2B 4E1B 8494 4ADB 482B B934
To claim this, I am signing this object:
/** | |
* Created by Jacob Mather <jmather@jmather.com> on 2019-06-25. | |
*/ | |
global with sharing class Sentry_Exception extends Exception { | |
global Map<String, Object> context = new Map<String, Object>(); | |
private List<String> stackTrace; | |
global void setStackTrace(List<String> lines) { | |
stackTrace = lines; |
import jenkins.model.* | |
import com.cloudbees.plugins.credentials.* | |
import com.cloudbees.plugins.credentials.common.* | |
import com.cloudbees.plugins.credentials.domains.* | |
import com.cloudbees.plugins.credentials.impl.* | |
import com.cloudbees.jenkins.plugins.sshcredentials.impl.* | |
import hudson.plugins.sshslaves.*; | |
domain = Domain.global() | |
store = Jenkins.instance.getExtensionList('com.cloudbees.plugins.credentials.SystemCredentialsProvider')[0].getStore() |
I hereby claim:
To claim this, I am signing this object:
{ | |
"repositories": [ | |
{ | |
"type": "composer", | |
"url": "https://s3.amazonaws.com/my_satis_repo/" | |
}, | |
{ | |
"packagist": false | |
} | |
], |
if tput setaf 1 &> /dev/null; then | |
tput sgr0 | |
if [[ $(tput colors) -ge 256 ]] 2>/dev/null; then | |
MAGENTA=$(tput setaf 9) | |
ORANGE=$(tput setaf 172) | |
GREEN=$(tput setaf 190) | |
PURPLE=$(tput setaf 141) | |
WHITE=$(tput setaf 256) | |
else | |
MAGENTA=$(tput setaf 5) |
<?php | |
class MediaServerFilter extends sfFilter | |
{ | |
public function execute($filterChain) | |
{ | |
$filterChain->execute(); | |
// Execute this filter only once | |
if ($this->isFirstCall() && sfConfig::get('app_media_filter_disable', false) == false) { | |
// Filters don't have direct access to the request and user objects. |
<?php | |
namespace Demo\Bundle\WebsiteBundle\DataFixtures\ORM; | |
use Doctrine\Common\DataFixtures\AbstractFixture; | |
use Doctrine\Common\DataFixtures\OrderedFixtureInterface; | |
use Doctrine\Common\Persistence\ObjectManager; | |
use Doctrine\Common\DataFixtures\FixtureInterface; | |
use Application\Sonata\UserBundle\Entity\User; | |
use Symfony\Component\DependencyInjection\ContainerAwareInterface; |
#!/bin/sh | |
NFSUID=`stat -c %u /vagrant/` | |
/usr/bin/sudo su -c "cat /etc/passwd | grep -v vagrant:x: > /etc/passwd.new" | |
/usr/bin/sudo su -c "echo \"vagrant:x:${NFSUID}:502::/home/vagrant:/bin/bash\" >> /etc/passwd.new" | |
/usr/bin/sudo su -c "chown -R ${NFSUID}:vagrant /home/vagrant" | |
/usr/bin/sudo su -c "mv -f /etc/passwd.new /etc/passwd" | |
/usr/bin/sudo su -c "chown -R vagrant:vagrant /var/lib/php/session" | |
/usr/bin/sudo su -c "chown vagrant:vagrant /tmp/vagrant-*" |
#!/bin/sh | |
cp -f app/config/parameters.dist.yml app/config/parameters.yml | |
rm -rf app/cache/* | |
php app/console doctrine:database:create | |
php app/console doctrine:migrations:migrate --no-interaction | |
yes | php app/console doctrine:fixtures:load | |
php app/console cache:clear | |
php app/console assetic:dump | |
php app/console assets:install --symlink |
<?php | |
namespace My\Bundle\BlockBundle\Block; | |
use Symfony\Component\HttpFoundation\Response; | |
use Sonata\BlockBundle\Model\BlockInterface; | |
use Sonata\BlockBundle\Block\BaseBlockService; | |
use Sonata\AdminBundle\Form\FormMapper; | |
use Sonata\AdminBundle\Validator\ErrorElement; |