Skip to content

Instantly share code, notes, and snippets.

@ChrisDBrown
ChrisDBrown / JsonSerializer.php
Created March 13, 2020 17:06
Quick autowire named config argument
<?php
class JsonSerializer implements SerializerInterface
{
public function serialize()
{
// do json
}
}
@ChrisDBrown
ChrisDBrown / keybase.md
Created March 5, 2017 14:07
Keybase identification

Keybase proof

I hereby claim:

  • I am chrisdbrown on github.
  • I am chrisdbrown (https://keybase.io/chrisdbrown) on keybase.
  • I have a public key ASAYpleZX6hsEjyLEFSRQTXQPZdBSuA8SM5gPqq8YCI9iAo

To claim this, I am signing this object:

@ChrisDBrown
ChrisDBrown / aliases
Last active June 26, 2017 20:09
Selection of useful aliases
# Show all configured ~/.ssh/config entries
alias sshosts='cat ~/.ssh/config | grep "Host " | sed s/"Host "/""/'
# Show current public ip
myip='curl ipecho.net/plain ; echo'