Skip to content

Instantly share code, notes, and snippets.

View Flyingmana's full-sized avatar
📄
Fighting against bureaucracy

Daniel Fahlke Flyingmana

📄
Fighting against bureaucracy
View GitHub Profile
@Flyingmana
Flyingmana / composer.json
Created January 5, 2015 21:03
conflict/require max version
{
"require": {
"magento-hackathon/magento-composer-installer": "*"
},
"require-dev": {
"magento-hackathon/composer-command-integrator": "dev-master#e33f65a0e1b687fb5c610ac01357b11",
"composer/composer": "dev-master"
},
"repositories": [
{"type":"vcs","url":"https://github.com/magento-hackathon/composer-command-integrator"},
@Flyingmana
Flyingmana / router.php
Created October 19, 2014 18:49
Magento2 router.php for php built-in Server
<?php
$debug = function($val){
return;
echo $val.PHP_EOL.'<br/>'.PHP_EOL;
};
/**
* Caution, this is very experimental stuff
* no garant for working result

Keybase proof

I hereby claim:

  • I am Flyingmana on github.
  • I am flyingmana (https://keybase.io/flyingmana) on keybase.
  • I have a public key whose fingerprint is 1452 62F4 CD41 71EC 87F8 94C6 7A1A 6AC2 BDA3 6922

To claim this, I am signing this object:

@Flyingmana
Flyingmana / session.php
Created August 16, 2014 08:09
session_regenerate_test
<?php
$debug = array();
$debug[] = session_start();
$debug[] = session_id();
$debug[] = session_regenerate_id();
{
"type": "package",
"package": {
"name": "connect20/tbt_enhancedgrid",
"version": "1.3.2.1",
"dist": {
"url": "http://connect20.magentocommerce.com/community/TBT_Enhancedgrid/1.3.2.1/TBT_Enhancedgrid-1.3.2.1.tgz",
"type": "tgz"
}
@Flyingmana
Flyingmana / _magento_composer_taf_result.out
Last active August 29, 2015 13:56
Magneto Composer TAF result
PHPUnit 3.6.10 by Sebastian Bergmann.
Configuration read from /work/magento/wf_magento_example/taf/phpunit.xml.dist
.................................FF........F.............EE.F 61 / 1570 ( 3%)
FFFEFSSSSSSSSSSSFSSSSSSSSSSSSSSFSSSSSSSSSSSSSSSFSSSSSSSSSSSSS 122 / 1570 ( 7%)
SSSSSSSSSSSSSSSSSFSSSSSSSSSSSFSSSSSSSSSSSSSSFSSSSSSSSSSSSSSSF 183 / 1570 ( 11%)
SSSSSSSSSSSSSSSSSSSSFSSSSSSSSSSSFSSSSSSSSSSSSSSFSSSSSSSSSSSSS 244 / 1570 ( 15%)
SSFSSSSSSSSSSSFSSSSSSSFSSFSSSSSSSSSSSFSSSSSSSFSSFSSSSSSSSSSSS 305 / 1570 ( 19%)
SSSSSSSSSFSSSSSSSSSSSFSSSSSSSFSSFFSSSSSSSSSSSSSSSSSSSSSSSSSSS 366 / 1570 ( 23%)
<?php
error_reporting(-1);
function magento_removeTags($html){
$html = @preg_replace("# <(?![/a-z]) | (?<=\s)>(?![a-z]) #exi", "htmlentities('$0')", $html);
$html = strip_tags($html);
return htmlspecialchars_decode($html);
}
function magento_removeTags_fixed($html){
@Flyingmana
Flyingmana / config.xml
Last active December 23, 2015 04:39
improve magento performance by deactivate db logging and a few page parts
<?xml version="1.0" encoding="UTF-8"?>
<config>
<modules>
<Cotya_Performance>
<version>0.1.0</version>
</Cotya_Performance>
</modules>
<frontend>
@Flyingmana
Flyingmana / dabblet.css
Created June 11, 2012 11:51 — forked from anonymous/dabblet.css
format dd and dt as group
/**
* format dd and dt as group
*/
hmtl{
background: #f06;
background: white;
min-height: 100%;
}
.block{
float:left;
<?php
/**
a little simulation for my brother who thought,
you can make money with the right roulette strategy.
**/
$budget = 1000000;
$games = 0;