Skip to content

Instantly share code, notes, and snippets.

View flowl's full-sized avatar
🌐
Connected

Daniel Wendler flowl

🌐
Connected
View GitHub Profile
@flowl
flowl / xdebug.ini
Last active July 25, 2023 12:56
xdebug.ini for XDebug 3
zend_extension=xdebug
;Enable logging by uncommenting the following line
;xdebug.log=/tmp/xdebug.log
;If the Docker host is also the machine you are using the IDE on
;xdebug.client_host=host.docker.internal
xdebug.start_with_request=trigger
xdebug.mode=debug
Pragma: akamai-x-cache-on, akamai-x-cache-remote-on, akamai-x-check-cacheable, akamai-x-get-cache-key, akamai-x-get-ssl-client-session-id, akamai-x-get-true-cache-key, akamai-x-get-request-id
@flowl
flowl / LinusTalk200705Transcript.wiki
Created August 12, 2019 14:33 — forked from dukeofgaming/LinusTalk200705Transcript.wiki
Linus google tech talk transcript

This is transcript of Tech Talk: Linus Torvalds on Git at Google on YouTube.


Andrew:

Thank you, for coming everybody, some of you probably already have heard of Linus Torvalds, those of you who haven't, you are the people with Macintoshes on your laps.

@flowl
flowl / gist:774c6e6335b6cb205c352ad67af2799c
Created June 28, 2018 13:33
Accessing a different's instance protected members in PHP
<?php
abstract class A {
abstract protected function test();
}
class Api extends A {
protected function test() { echo 'aaa ', __CLASS__, PHP_EOL; }
}
@flowl
flowl / gist:5cbc2bcd515e2b05f5a2e220508526b1
Created June 25, 2018 14:24
PHP; factorize any integer
<?php
/*
$ php factorize.php 90
Array
(
[2] => 45
[3] => 30
[5] => 18
[6] => 15
[9] => 10
db.input.aggregate([
{
$unwind: "$attributes"
},
{
$lookup: {
from: "input",
localField: "attributes.id",
foreignField: "attributeId",
as: "attribute"
<?php
class Vehicle
{
protected $brandName;
public function __construct($brandName) { $this->brandName = $brandName; }
public function getBrand() {
return $this->brandName;
}
}