Skip to content

Instantly share code, notes, and snippets.

/**
* Create and Edit
* @param \Sonata\AdminBundle\Form\FormMapper $formMapper
*
* @return void
*/
protected function configureFormFields(FormMapper $formMapper)
{
$formMapper
->with(
<?php
if (!in_array(@$_SERVER['REMOTE_ADDR'], array(
'127.0.0.1',
'::1',
))) {
header('HTTP/1.0 403 Forbidden');
exit('You are not allowed to access this file.');
}
---
vagrantfile-local:
vm:
box: centos64-x64-vbox43-1383512148
box_url: 'http://box.puphpet.com/centos64-x64-vbox43.box'
hostname: null
network:
private_network: 192.168.56.101
forwarded_port:
IfBGQF5hN1A8:
Stderr from the command:
Warning: Could not retrieve fact fqdn
Error: Could not find package php-sqlite
Error: /Stage[main]/Main/Php_mod[sqlite]/Php::Module[sqlite]/Package[PhpModule_sqlite]/ensure: change from absent to present failed: Could not find package php-sqlite
Error: Execution of '/usr/bin/gem install --no-rdoc --no-ri mailcatcher' returned 1: ERROR: Error installing mailcatcher:
sinatra requires tilt (~> 1.3, >= 1.3.4, runtime)
Building native extensions. This could take a while...
HEADS UP! Haml 4.0 has many improvements, but also has changes that may break

Keybase proof

I hereby claim:

  • I am tocacar on github.
  • I am tocacar (https://keybase.io/tocacar) on keybase.
  • I have a public key whose fingerprint is 11A9 E0BA 3964 42F4 7ABC E988 FEE0 F6FC 0EE6 EE14

To claim this, I am signing this object:

services:
twig.loader.filesystem:
class: %twig.loader.filesystem.class%
arguments:
- @templating.locator
- @templating.name_parser
tags:
- { name: twig.loader }
twig.loader.string:
<p>Briefly summarise your progress to date<p>
<div>
<p>
Μεις δισερετ περφεσθο ετ φιμ. Συμ κυας φελιτ δενικυε νο. Ναμ υθ μαγνα δετερρυισεθ, τιβικυε γυβεργρεν φορενσιβυς συμ νο. Φελ ομνεσκυε ινθελλεγατ υθ, δεμωσριθυμ σονστιθυαμ αν υσυ, σεδ αδ φιδε σολεατ. Πωσιθ δισεντιας ηις ετ, δυο υτιναμ δεθραξιθ ηωνεσθαθις ιδ. Νο πρι δισυντ φιφενδυμ νομινατι, μελ ιυδισαβιτ ιρασυνδια ετ. Κυας σονγυε αεθερνο υθ φελ, σεα ελεστραμ περσιπιθυρ συ.
Θωτα φασιλισι εσθ συ. Σεα ερροριβυς μωλεστιαε δισεντιας υθ, ιδ ναμ ιυσθο ελιγενδι συσιπιθ, θιμεαμ ιισκυε ρεπριμικυε εξ δυο. Δετερρυισεθ σωνσλυδαθυρκυε περ αν, ειυς φενιαμ πριμις ετ σιθ. Ηις μολλις σριβενθυρ ατ. Φις εα φαστιδιι ινφενιρε. Εξ δομινγ σωνσλυδαθυρκυε εσθ, μελ δυις χαρυμ σωνσεθεθυρ αν, ινανι δισπυθανδο ευμ αδ.
</p>
</div>
//error
What versions of the OpenSSL are affected?
Status of different versions:
OpenSSL 1.0.1 through 1.0.1f (inclusive) are vulnerable
OpenSSL 1.0.1g is NOT vulnerable
OpenSSL 1.0.0 branch is NOT vulnerable
OpenSSL 0.9.8 branch is NOT vulnerable
Bug was introduced to OpenSSL in December 2011 and has been out in the wild since OpenSSL release 1.0.1 on 14th of March 2012. OpenSSL 1.0.1g released on 7th of April 2014 fixes the bug.
public function executeIndex(sfWebRequest $request)
{
$this->mouses = Doctrine::getTable('Mouse')
->createQuery('m')
->leftJoin('m.LabStrain s')
->leftJoin('m.MouseCage j')
->leftJoin('j.Cage c')
->where('j.dateout = ?', "0000-00-00")
->execute();
@Tocacar
Tocacar / gist:2037474
Created March 14, 2012 16:00
YUI2in3 Calendar Plugin
/*
* @class AMS.Calendar
* @extends Widget
* @version 1.0.0
*
*/
YUI.add("ams-calendar", function(Y) {
Y.log('ams-calendar is loaded', 'info');