Skip to content

Instantly share code, notes, and snippets.

View xujialiang's full-sized avatar

ElliottXU xujialiang

View GitHub Profile
@xujialiang
xujialiang / gist:6991351
Created October 15, 2013 13:11 — forked from sukum/gist:6991293
Silent install a module loadable package from the command line
#!/usr/bin/env php
<?php
function usage()
{
print("usage: -i /path/to/instance -p /path/to/expanded/module -z /path/to/zipfile\n");
exit(1);
}
$opts = getopt('i:p:z:');
@xujialiang
xujialiang / gist:6991307
Created October 15, 2013 13:08 — forked from sukum/gist:6991293
Silent install a module loadable package from the command line
#!/usr/bin/env php
<?php
function usage()
{
print("usage: -i /path/to/instance -p /path/to/expanded/module -z /path/to/zipfile\n");
exit(1);
}
$opts = getopt('i:p:z:');