Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View Marlinc's full-sized avatar

Marlinc Marlinc

  • Eindhoven, The Netherlands
View GitHub Profile

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@Marlinc
Marlinc / routes.php
Last active June 13, 2016 13:52 — forked from anonymous/routes
<?php
/**
* Routes configuration
*
* In this file, you set up routes to your controllers and their actions.
* Routes are very important mechanism that allows you to freely connect
* different URLs to chosen controllers and their actions (functions).
*
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
* Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
<?php
namespace App\Controller;
use App\Controller\AppController;
/**
* Students Controller
*
* @property \App\Model\Table\StudentsTable $Students
*/
<?php
public function testStatusUpdate()
{
$client = $this->getMockBuilder('Cake\\Network\\Http\\Client')
->setMethods([
'post'
])
->getMock();
$client
@Marlinc
Marlinc / bootstrap.php
Created June 29, 2015 08:54
Croogo 3.0 boostrap
Plugin::load('Acl', ['bootstrap' => true]);
Plugin::load('Migrations');
Plugin::load('Croogo', ['bootstrap' => true]);
Plugin::load('Croogo/Core', ['bootstrap' => true, 'routes' => true]);
<?xml version="1.0" encoding="UTF-8"?>
<code_scheme name="CakePHP">
<CssCodeStyleSettings>
<option name="HEX_COLOR_LOWER_CASE" value="true" />
<option name="HEX_COLOR_LONG_FORMAT" value="true" />
<option name="VALUE_ALIGNMENT" value="2" />
</CssCodeStyleSettings>
<JSCodeStyleSettings>
<option name="ALIGN_OBJECT_PROPERTIES" value="2" />
</JSCodeStyleSettings>
@Marlinc
Marlinc / bisect.sh
Created April 7, 2013 09:49 — forked from winks/bisect.sh
#!/bin/bash
# git bisect job for jenkins, originally by @bashlog
GOOD_BUILD=$(curl 'http://jenkins.example.org:8080/job/BUILDNAME/lastStableBuild/api/json' | sed 's:[{},]:\n:g'|grep '"number":'|sed 's/.*://')
BAD_BUILD=$(($GOOD_BUILD + 1))
curl -f "http://jenkins.example.org:8080/job/BUILDNAME/$BAD_BUILD/api/json" || BAD_BUILD=$(($GOOD_BUILD + 2))
curl -f "http://jenkins.example.org:8080/job/BUILDNAME/$BAD_BUILD/api/json" || BAD_BUILD=$(($GOOD_BUILD + 3))
curl -f "http://jenkins.example.org:8080/job/BUILDNAME/$BAD_BUILD/api/json" || BAD_BUILD=$(($GOOD_BUILD + 4))
curl -f "http://jenkins.example.org:8080/job/BUILDNAME/$BAD_BUILD/api/json" || BAD_BUILD=$(($GOOD_BUILD + 5))
curl -f "http://jenkins.example.org:8080/job/BUILDNAME/$BAD_BUILD/api/json" || BAD_BUILD=$(($GOOD_BUILD + 6))
loadmodule "src/modules/commands.so";
loadmodule "src/modules/cloak.so";
me {
name "dev.mms-projects.net";
info "MMS-Projects Development server";
numeric 100;
};
admin {