Skip to content

Instantly share code, notes, and snippets.

View dragoonis's full-sized avatar

Paul Dragoonis dragoonis

View GitHub Profile
# Run each thru the linter
shopt -s nullglob
for jenkinsFile in "${SEARCH_FOLDER}"/Jenkinsfile* ; do
echo "Linting ${jenkinsFile}"
if ! java -jar ~/tools/jenkins-cli.jar -i JENKINS_KEY -s JENKINS_URL declarative-linter<"${jenkinsFile}" ; then
OVERALL_RESULT=1
fi
done
=====================================================================
TIME END 2016-12-10 00:27:43
=====================================================================
TEST RESULT SUMMARY
---------------------------------------------------------------------
Exts skipped : 41
Exts tested : 33
---------------------------------------------------------------------
<?php
use Application\Controller\Shared as SharedController;
use Psr\Http\Message\RequestInterface;
class Index extends SharedController
{
public function exampleAction(RequestInterface $request)
{
<?php
// mymodule/config/routes/laravel.php
use PPI\Framework\Router\LaravelRouter;
/**
* @var LaravelRouter $router
*/
$router->get('/', function() { return 'HELLO LARAVEL USER'; });
[alias]
gui = !sh -c '/usr/local/opt/git/libexec/git-core/git-gui'
st = status
ci = commit
br = branch
co = checkout
df = diff
lg = log -p
hist = log --pretty=format:'%h %ad | %s%d [%an]' --graph --date=short
truncate table controllers;
INSERT INTO `controllers` (`id`, `uniqid`, `module`, `controller`, `description`, `disabled`, `is_hidden`, `created_ts`, `modified_ts`)
VALUES
(1, 'default_cron', 'default', 'cron', '', 0, 0, '2012-10-01 07:36:13', '2013-05-25 05:30:00'),
(2, 'default_error', 'default', 'error', '', 0, 0, '2012-10-01 07:36:13', '2013-05-25 05:30:00'),
(3, 'default_user', 'default', 'user', '', 0, 0, '2012-10-01 07:36:13', '2013-05-25 05:30:00'),
(4, 'default_cargo', 'default', 'cargo', '', 0, 0, '2012-10-01 07:36:13', '2013-05-25 05:30:00'),
(5, 'default_index', 'default', 'index', '', 0, 0, '2012-10-01 07:36:13', '2013-05-25 05:30:00'),
(6, 'admin_acl', 'admin', 'acl', '', 0, 0, '2012-10-01 07:36:13', '2013-05-25 05:30:00'),

Common Interface for Caching libraries

This document describes a simple yet extensible interface for a cache item and a cache driver.

The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in [RFC 2119][].

<?php
namespace Psr\Cache;
use Psr\CacheItem;
interface Cache
{
/**
* Remove an item from the cache by its unique key
Foursquare_Index:
pattern: /foursquare/
defaults: { _controller: "FoursquareModule:Index:index" }
<?php
return array(
'activeModules' => array('Framework', 'Application', 'UserModule', 'FoursquareModule'),
'listenerOptions' => array('module_paths' => array('./modules')),
);