I hereby claim:
- I am mpdroog on github.
- I am mpdroog (https://keybase.io/mpdroog) on keybase.
- I have a public key ASCAECt2B8dGFQJtmjIIPjKV_tBYUUT6Hj23-ug-YCVTNwo
To claim this, I am signing this object:
<?php | |
/** | |
* Dump received HTTP-request to console for quickly | |
* seeing what we're trying to send. | |
*/ | |
$address = '127.0.0.1'; | |
$port = 8080; | |
$sock = socket_create(AF_INET, SOCK_STREAM, 0); | |
socket_bind($sock, $address, $port) or die('Could not bind to address'); |
<?php | |
// Search&Replace all occurrences of a given string | |
// Got tired of all the harship with sed -i so made this | |
// small script to get the same result. | |
$search = "Fn"; | |
$replace = "Shared"; | |
$rii = new RecursiveIteratorIterator(new RecursiveDirectoryIterator('.')); | |
foreach ($rii as $file) { | |
if (in_array($file->getFilename(), [".", "..", "findreplace.php", ".git"])) continue; // Ignored files (in curdir) |
I hereby claim:
To claim this, I am signing this object:
[Unit] | |
Description=Headless Chrome | |
Requires=network.target | |
After=multi-user.target | |
[Service] | |
LimitNOFILE=100 | |
Restart=on-failure | |
Type=simple |
<?php | |
/** | |
* TOML to PO converter. | |
*/ | |
$args = $_SERVER["argv"]; | |
if ($args[0] === "php") { | |
array_shift($args); | |
} | |
array_shift($args); | |
$args = array_values($args); // php-file |
package sql | |
import ( | |
"database/sql" | |
"net/http" | |
"github.com/julienschmidt/httprouter" | |
"log" | |
"github.com/mpdroog/invoiced/writer" | |
) |