Skip to content

Instantly share code, notes, and snippets.

View pascaldevink's full-sized avatar
💭
Recruiters: stop looking at my profile

Pascal de Vink pascaldevink

💭
Recruiters: stop looking at my profile
View GitHub Profile
@pascaldevink
pascaldevink / gist:413fdd9d9436e138150ff14d6ae022ea
Created January 25, 2017 10:21
overblog/graphql-bundle JSON exception stack trace
{
"error": {
"code": 500,
"message": "Internal Server Error",
"exception": [
{
"message": "Warning: mb_strlen() expects parameter 1 to be string, array given",
"class": "Symfony\\Component\\Debug\\Exception\\ContextErrorException",
"trace": [
{
@pascaldevink
pascaldevink / .git-commit-template.txt
Last active March 11, 2016 09:13 — forked from adeekshith/.git-commit-template.txt
A Git commit template to make it easy to enforce a good and uniform commit message style across teams.
# <type>: (If applied, this commit will...) <subject> (Max 50 char)
# |<---- Using a Maximum Of 50 Characters ---->|
# Explain why this change is being made
# |<---- Try To Limit Each Line to a Maximum Of 72 Characters ---->|
# Provide links or keys to any relevant tickets, articles or other resources
# Example: Github issue #23
@pascaldevink
pascaldevink / dod.md
Created November 25, 2015 08:30
Definition Of Done
  1. Code produced (all ‘to do’ items in code completed)
  2. Code commented
  3. Checked in and run against current version in source control
  4. Meeting development standards
  5. Unit tests written and passing
  6. Functional tests written and passing
  7. Peer reviewed (or produced with pair programming)
  8. Deployed
@pascaldevink
pascaldevink / things-i-was-unprepared-for.md
Last active October 7, 2015 20:12
Things I was unprepared for as a lead developer (working title)

This is not a story of how I survived a big technology company or startup. This is not the story of a young junior developer working his way through the ranks to become the greatest leader of all.

No. Instead, this is the story of how I became a lead developer and all the things I did wrong. It's about delegating, culture building, mentoring, planning, meetings (oh dreadful meetings), upper management and all the other stuff that a leader has to go through. It's also about all the fun I had and the things I learned. Next to that, I'm going to hand out some tips that can prepare you for the job a little better. And hopefully, it will inspire you to be the greatest leader of all.

Side note: This talk is based on my well received blog post on dev-human: http://dev-human.com/entries/2015/09/07/things-i-was-unprepared-for/

@pascaldevink
pascaldevink / gist:4ded7e3d6a8ab02f513a
Last active August 29, 2015 14:20
Separate image on canvas
<canvas id="image" style="border:2px solid black"></canvas>
<canvas id="topImage" style="border:2px solid black; display: none;"></canvas>
<canvas id="bottomImage" style="border:2px solid black; display: none;"></canvas>
@pascaldevink
pascaldevink / most-changed-cc
Created April 22, 2015 13:49
Find the cyclomatic complexity of the most changed PHP files
git log --pretty=format: --name-only | sort | uniq -c | grep .php | sort -rg | head -100 | awk -F ' ' '{print $2}' | xargs -I input phpmd input text codesize | grep class | grep complexity | awk -F " " '{print $1 " " $10}'
@pascaldevink
pascaldevink / gist:b9daad998be0a196f683
Created September 29, 2014 13:27
Tracepath to github.com
$ tracepath github.com
1: autotrack.tweakers.lan 0.102ms pmtu
1500
1: kerberos.tweakers.lan 0.350ms
1: kerberos.tweakers.lan 0.381ms
2: 212.41.134.177 0.991ms
3: t2c4-ge-10-3-0-0.nl-ams2.eu.bt.net 3.399ms
4: t2c4-xe-1-0-0-0.uk-lon1.eu.bt.net 9.310ms
5: 82.112.101.73 11.142ms
6: ae-7.r23.londen03.uk.bb.gin.ntt.net 9.518ms
@pascaldevink
pascaldevink / gist:f28637dc930cb006be31
Created September 29, 2014 13:26
Traceroute to github.com
$ traceroute github.com
traceroute to github.com (192.30.252.129), 64 hops max, 52 byte packets
1 kerberos.tweakers.lan (10.75.99.1) 10.485 ms 0.969 ms 0.973 ms
2 212.41.134.177 (212.41.134.177) 1.620 ms 1.717 ms 1.402 ms
3 t2c4-ge-10-3-0-0.nl-ams2.eu.bt.net (166.49.157.89) 3.846 ms 3.136 ms 3.848 ms
4 t2c4-xe-1-0-0-0.uk-lon1.eu.bt.net (166.49.208.229) 10.170 ms
t2c4-xe-0-0-0-0.uk-lon1.eu.bt.net (166.49.208.225) 9.193 ms
t2c4-xe-2-2-1-0.uk-lon1.eu.bt.net (166.49.208.104) 32.765 ms
5 82.112.101.73 (82.112.101.73) 20.358 ms 21.266 ms 15.990 ms
6 ae-7.r23.londen03.uk.bb.gin.ntt.net (129.250.6.54) 10.260 ms 10.496 ms 30.222 ms

Keybase proof

I hereby claim:

  • I am pascaldevink on github.
  • I am johnydoe (https://keybase.io/johnydoe) on keybase.
  • I have a public key whose fingerprint is CEEA AE7C 65EC 48CF C715 124A 5120 7035 DC7A D2BE

To claim this, I am signing this object:

@pascaldevink
pascaldevink / push
Created August 28, 2014 11:50
Recall push data
{
"user": {
"name": "Bob",
"email": "bob@doctors.org",
},
"data": {
"prescriptionNumber": 12345,
"dateAndTime": "2014-08-26 16:45:22 UTC-1",
"prescribingMedic": {
"name": "Bob",