Skip to content

Instantly share code, notes, and snippets.

View drupol's full-sized avatar

Pol Dellaiera drupol

View GitHub Profile
@drupol
drupol / flake.nix
Last active September 14, 2022 11:56
Basic flake for PHP development
{
description = "A PHP development environment";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, flake-utils, nixpkgs }:
flake-utils.lib.eachDefaultSystem
@drupol
drupol / flake.nix
Created September 12, 2022 09:36
flake.nix failing
{
description = "A PHP development environment";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, flake-utils, nixpkgs }:
flake-utils.lib.eachDefaultSystem
@drupol
drupol / resume.json
Last active August 25, 2022 17:24
resume.json
{
"$schema": "https://raw.githubusercontent.com/jsonresume/resume-schema/v1.0.0/schema.json",
"basics": {
"name": "Pol Dellaiera",
"label": "Senior Infinidash architect, half fullstack developer by choice",
"image": "https://www.libravatar.org/avatar/a869a4a04af576127976049d17c353f079881218bf1a00b21e9d7929daeef2f2",
"email": "[email protected]",
"phone": "",
"url": "https://not-a-number.io",
"summary": "Find a better description on my personal website: https://not-a-number.io/about/",
@drupol
drupol / flake.nix
Created August 11, 2022 07:58
Flake for NodeJS dev
{
description = "The NodeJS development environment";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, flake-utils, nixpkgs }:
flake-utils.lib.eachDefaultSystem
@drupol
drupol / flake.nix
Last active June 30, 2022 15:42
flake.nix
{
description = "A very basic flake";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
flake-utils.url = "github:numtide/flake-utils";
flake-utils.inputs.nixpkgs.follows = "nixpkgs";
nix-shell.url = "/home/devlin/Code/loophp/nix-shell";
@drupol
drupol / test.php
Created June 11, 2022 06:41
Bug in loophp/collection
<?php
/**
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
declare(strict_types=1);
include __DIR__ . '/vendor/autoload.php';
<?php
declare(strict_types=1);
namespace Snippet;
use loophp\TypedGenerators\TG;
use function PHPStan\Testing\assertType;
include __DIR__ . '/vendor/autoload.php';
@drupol
drupol / test.php
Last active June 8, 2022 04:53
loophp/typed-generators test
<?php
declare(strict_types=1);
namespace Snippet;
use Faker\Generator;
use loophp\TypedGenerators\TG;
include __DIR__ . '/vendor/autoload.php';
@drupol
drupol / test-typed-generators.php
Created June 5, 2022 20:18
test-typed-generators.php
<?php
/**
* For the full copyright and license information, please view
* the LICENSE file that was distributed with this source code.
*/
declare(strict_types=1);
namespace App;
@drupol
drupol / flake.nix
Created March 18, 2022 12:37
flake.nix for PHP apps
{
description = "PHP App demo";
inputs.nixpkgs.url = "nixpkgs/nixpkgs-unstable";
inputs.flake-utils.url = "github:numtide/flake-utils";
inputs.phps.url = "github:loophp/nix-shell";
outputs = { self, nixpkgs, flake-utils, phps }: flake-utils.lib.eachDefaultSystem
(system:
let