Skip to content

Instantly share code, notes, and snippets.

@ralphschindler
ralphschindler / code-complete-stub-generator.php
Last active March 14, 2020 20:52
IDE code-completion stub generation script that utilizes reflection. (Primary use would be for extension stubs.)
<?php
define('T', ' ');
define('N', PHP_EOL);
$functions = array();
$classes = array();
$constant_prefix = 'X_';
$php = '<?php' . N;
@xshyamx
xshyamx / gav.sh
Created January 22, 2018 05:17
Shell script to generate a maven pom.xml from a list of jars
#!/bin/sh
lib_dir="$1"
if [ "$lib_dir" == "" ]; then
echo Please specifiy the directory for the jars
exit 1
fi
cat <<EOF | tee pom.xml
<project xmlns="http://maven.apache.org/POM/4.0.0"