Skip to content

Instantly share code, notes, and snippets.

@pscheit
pscheit / docker-compose.dev.yaml
Created January 19, 2022 03:33
A small express server to execute markdown to story blok richtext in a node container
node:
image: node:17
command: ["node", "src/nodejs/express-server-converter-app.js"]
working_dir: /app
ports:
- 83:80
volumes:
- .:/app
- /var/www/.cache

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

<?php
class Closures
{
public static function create($methodName)
{
return function($thing) use ($methodName) {
return $thing->{$methodName}();
};
@pscheit
pscheit / gist:5795394
Created June 17, 2013 08:17
sample windows patch with backslash paths
diff --git "a/C:\\Users\\PHILIP~1\\AppData\\Local\\Temp\\TortoiseGit\\Fil37B7.tmp\\File-21c8cf5-left.php" "b/D:\\www\\php-refactoring-browser\\src\\main\\QafooLabs\\Refactoring\\Domain\\Model\\File.php"
index d63e258..52ff6ca 100644
--- "a/C:\\Users\\PHILIP~1\\AppData\\Local\\Temp\\TortoiseGit\\Fil37B7.tmp\\File-21c8cf5-left.php"
+++ "b/D:\\www\\php-refactoring-browser\\src\\main\\QafooLabs\\Refactoring\\Domain\\Model\\File.php"
@@ -35,7 +35,7 @@ class File
}
$code = file_get_contents($path);
- $relativePath = ltrim(str_replace($workingDirectory, "", $path), "/");
+ $relativePath = ltrim(str_replace($workingDirectory, "", $path), "/\\");
@pscheit
pscheit / psc.ini
Created March 15, 2013 11:42
ini file for overwriting some default parameters in php.ini
display_errors = On
error_reporting = E_ALL | E_STRICT
log_errors_max_len = 0
mbstring.internal_encoding = UTF-8