This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"editor.renderWhitespace": "all", | |
"editor.scrollBeyondLastLine": false, | |
"editor.wrappingIndent": "indent", | |
"files.autoSave": "onWindowChange", | |
"git.autofetch": true, | |
"terminal.external.osxExec": "iTerm.app", | |
"terminal.integrated.rendererType": "dom", | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @copyright David Fuhr | |
* @license https://opensource.org/licenses/BSD-3-Clause BSD-3-Clause | |
*/ | |
declare(strict_types = 1); | |
namespace AppBundle\Validator\Constraints; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Verifying that "davidfuhr.id" is my Blockstack ID. https://onename.com/davidfuhr |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -eou pipefail | |
if [ ! -f "$1" ]; then | |
echo $1 is not readable. | |
exit 1 | |
fi | |
TEMPDIR=`mktemp -d` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace Pokus; | |
class Exception extends \Exception | |
{ | |
} | |
function tttt($string) | |
{ | |
try { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Disable E_USER_DEPRECATED until 3.0 --> | |
<ini name="error_reporting" value="-16385"/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
HHVMinfo - phpinfo page for HHVM HipHop Virtual Machine | |
Author: _ck_ | |
License: WTFPL, free for any kind of use or modification, I am not responsible for anything, please share your improvements | |
Version: 0.0.6 | |
* revision history | |
0.0.6 2014-08-02 display fix for empty vs zero | |
0.0.5 2014-07-31 try to determine config file from process command line (may not always work), style improvements |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
transport: { | |
parameterMap: function (options, operation) { | |
if (operation === "update" || operation === "create") { | |
$.each(options, function (key, value) { | |
if (value instanceof Date) { | |
options[key] = Math.round(value.getTime() / 1000); | |
} | |
}); | |
} | |
return options; |
NewerOlder