Skip to content

Instantly share code, notes, and snippets.

View rdohms's full-sized avatar
🔧
fixing all the things

Rafael Dohms rdohms

🔧
fixing all the things
View GitHub Profile
A little project we started 2 years ago at Usabilla has now grown into a full-blown message-based architecture, powered by technology like Kafka, Debezium, KConnect, Kstreams and a fair share of Java flavors that is now part of the SurveyMonkey family.
We are now looking for more Java Engineers to help us build an innovative ecosystem with self-service pioneering and a team that spans from Amsterdam to San Francisco.
Does this sound like something you are interested in? Come work at our lovely Amsterdam HQ with an amazing crew of creative devs.
Follow the link below, or https://lnkd.in/eUVqqpG #java #kafka #amsterdam #streams #messagebased #usabilla #surveymonkey #powerthecurious
@rdohms
rdohms / links.md
Last active May 26, 2017 17:32
Object Calisthenics Resources
@rdohms
rdohms / index.js
Created June 8, 2016 08:51
Writing tests
require('mocha-generators').install();
var path = require('path');
var Nightmare = require('nightmare');
var expect = require('chai').expect;
describe('AmsterdamPHP Raffler', function () {
this.timeout(15000); // Set timeout to 15 seconds, instead of the original 2 seconds
var url = 'http://localhost:8080',
nightmare;
@rdohms
rdohms / post-checkout
Created November 9, 2015 21:09
Auto-run Composer on branch checkout
# .git/hooks/post-checkout
#!/bin/bash
#
source ~/.profile
# Allows us to read user input below, assigns stdin to keyboard
exec < /dev/tty
@rdohms
rdohms / TextTransformer.php
Created June 30, 2015 09:32
A simple html to email friendly text
<?php
namespace Symbid\Library\Bundle\MessagingBundle\Twig;
use Twig_Extension;
class TextTransformer extends Twig_Extension
{
/**
* Returns the name of the extension.
@rdohms
rdohms / email.css
Created August 12, 2014 15:07
Sample for testing
#outlook a{padding:0}body{width:100% !important;min-width:100%;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%;margin:0;padding:0}.ExternalClass{width:100%}.ExternalClass,.ExternalClass p,.ExternalClass span,.ExternalClass font,.ExternalClass td,.ExternalClass div{line-height:100%}#backgroundTable{margin:0;padding:0;width:100% !important;line-height:100% !important}img{outline:none;text-decoration:none;-ms-interpolation-mode:bicubic;width:auto;max-width:100%;float:left;clear:both;display:block}center{width:100%;min-width:580px}a img{border:none}p{margin:0 0 0 10px}table{border-spacing:0;border-collapse:collapse}td{word-break:break-word;-webkit-hyphens:auto;-moz-hyphens:auto;hyphens:auto;border-collapse:collapse !important}table,tr,td{padding:0;vertical-align:top;text-align:left}hr{color:#d9d9d9;background-color:#d9d9d9;height:1px;border:none}table.body{height:100%;width:100%}table.container{width:580px;margin:0 auto;text-align:inherit}table.row{padding:0;width:100%;position:relative}table.container ta
@rdohms
rdohms / keybase.md
Created March 24, 2014 16:38
keybase

Keybase proof

I hereby claim:

  • I am rdohms on github.
  • I am rdohms (https://keybase.io/rdohms) on keybase.
  • I have a public key whose fingerprint is 8E14 C26B 4813 C17F BA00 B455 F4D0 8DB7 AA11 BD2F

To claim this, I am signing this object:

@rdohms
rdohms / default.vcl
Created January 22, 2013 12:20
Adding my own cookies to VCL
backend default {
.host = "127.0.0.1";
.port = "80";
}
acl purge {
"localhost";
"69.195.222.132";
}
sub vcl_recv {
@rdohms
rdohms / MyFormType.php
Last active February 23, 2016 22:58
Adding Validation Errors in an array without a data_class. On line 64 and 68 i tried both `addViolationAtSubPath` and `addViolationAtPath` to get the error to show on the relative fields, but they always show at top of form. How can i do this?
<?php
namespace MyProject\Bundle\WebBundle\Form;
use Symfony\Component\Form\AbstractType;
use Symfony\Component\Form\FormBuilderInterface;
use Symfony\Component\OptionsResolver\OptionsResolverInterface;
use Symfony\Component\Validator\Constraints\Callback;
use Symfony\Component\Validator\Constraints\NotBlank;
use Symfony\Component\Validator\ExecutionContext;
use Symfony\Component\Validator\Constraints\Date;
@rdohms
rdohms / MyAbstractType.php
Created December 5, 2012 15:22
Binding Events in Parent Form
<?php
abstract class MyAbstractType extends AbstractType
{
/** CODE */
}