Skip to content

Instantly share code, notes, and snippets.

View davidfuhr's full-sized avatar

David Fuhr davidfuhr

  • esentri AG
  • Karlsruhe, Germany
View GitHub Profile
Docker for Mac Beta 1.11.0-beta8 (build: 6072)
Transactions: 290 hits
Availability: 100.00 %
Elapsed time: 156.66 secs
Data transferred: 1.71 MB
Response time: 0.53 secs
Transaction rate: 1.85 trans/sec
Throughput: 0.01 MB/sec
Concurrency: 0.98
Verifying that "davidfuhr.id" is my Blockstack ID. https://onename.com/davidfuhr
@davidfuhr
davidfuhr / DateInterval.php
Last active November 3, 2016 12:28
DateInterval Doctrine Type and Symfony Validator Constraint
<?php
/**
* @copyright David Fuhr
* @license https://opensource.org/licenses/BSD-3-Clause BSD-3-Clause
*/
declare(strict_types = 1);
namespace AppBundle\Validator\Constraints;
@davidfuhr
davidfuhr / copy-postgres-db.sh
Last active September 12, 2017 07:52
copy remote postgres db to localhost
echo 'localhost:5432:my_database:my_user:my_password' >> ~/.pgpass
chmod 0600 ~/.pgpass
ssh -C db.example.com 'echo my_password|pg_dump -h localhost -n my_schema -U my_remote_user -c my_remote_db' | psql -h localhost -U my_user my_database
@davidfuhr
davidfuhr / settings.json
Last active September 10, 2018 06:57
Visual Studio Code User Settings
{
"editor.renderWhitespace": "all",
"editor.scrollBeyondLastLine": false,
"editor.wrappingIndent": "indent",
"files.autoSave": "onWindowChange",
"git.autofetch": true,
"terminal.external.osxExec": "iTerm.app",
"terminal.integrated.rendererType": "dom",
}