Skip to content

Instantly share code, notes, and snippets.

View Marlinc's full-sized avatar

Marlinc Marlinc

  • Eindhoven, The Netherlands
View GitHub Profile
View CakePHP.xml
<?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 / bootstrap.php
Created June 29, 2015 08:54
Croogo 3.0 boostrap
View bootstrap.php
Plugin::load('Acl', ['bootstrap' => true]);
Plugin::load('Migrations');
Plugin::load('Croogo', ['bootstrap' => true]);
Plugin::load('Croogo/Core', ['bootstrap' => true, 'routes' => true]);
View gist:2383785
d8:announce17:http://trackerurl7:comment17:This is a comment13:creation datei1323713688e4:infod5:filesld6:lengthi6939e4:pathl10:BitTorrent11:Decoder.phpeed6:lengthi4276e4:pathl10:BitTorrent11:Encoder.phpeed6:lengthi1777e4:pathl10:BitTorrent13:Exception.phpeed6:lengthi1803e4:pathl10:BitTorrent7:Torrent13:Exception.phpeed6:lengthi15448e4:pathl10:BitTorrent11:Torrent.phpeee4:name3:PHP12:piece lengthi262144e6:pieces20:�C�o�F�r*���o��D�u\ee
View gist:2883913
Sequence found with data 10, operation minus and a split at 2 chars
7363 | 73-63
Sequence found with data 10, operation minus and a split at 2 chars
7464 | 74-64
Sequence found with data 2, operation plus and a split at 2 chars
1618 | 16-18
Sequence found with data 10, operation minus and a split at 2 chars
1808 | 18-08
Sequence found with data 2, operation minus and a split at 2 chars
1816 | 18-16
View gist:3156855
<?php
echo "Time: " . Zend_Date::get(Zend_date::TIMES) . "<br>" . Zend_Locale_Format::toNumber(13524678.677);
View gist:4143005
loadmodule "src/modules/commands.so";
loadmodule "src/modules/cloak.so";
me {
name "dev.mms-projects.net";
info "MMS-Projects Development server";
numeric 100;
};
admin {
@Marlinc
Marlinc / bisect.sh
Created April 7, 2013 09:49 — forked from winks/bisect.sh
View 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))
View StatusesWebserviceTest.php
<?php
public function testStatusUpdate()
{
$client = $this->getMockBuilder('Cake\\Network\\Http\\Client')
->setMethods([
'post'
])
->getMock();
$client