Skip to content

Instantly share code, notes, and snippets.

Avatar

Pol Dellaiera drupol

View GitHub Profile
@drupol
drupol / flake.nix
Created Aug 11, 2022
Flake for NodeJS dev
View flake.nix
{
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
View php82-beta2-build.log
This file has been truncated, but you can view the full file.
2022-08-07T10:04:03.0719667Z Requested labels: ubuntu-20.04
2022-08-07T10:04:03.0719708Z Job defined at: fossar/nix-phps/.github/workflows/build.yaml@refs/heads/php82/bump
2022-08-07T10:04:03.0719731Z Waiting for a runner to pick up this job...
2022-08-07T10:04:06.9798389Z Job is waiting for a hosted runner to come online.
2022-08-07T10:04:09.6446799Z Job is about to start running on the hosted runner: GitHub Actions 19 (hosted)
2022-08-07T10:04:13.3266038Z Current runner version: '2.294.0'
2022-08-07T10:04:13.3292769Z ##[group]Operating System
2022-08-07T10:04:13.3293409Z Ubuntu
2022-08-07T10:04:13.3293664Z 20.04.4
@drupol
drupol / flake.nix
Last active Jun 30, 2022
flake.nix
View 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 Jun 11, 2022
Bug in loophp/collection
View test.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);
include __DIR__ . '/vendor/autoload.php';
View phpstan-bug.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 Jun 8, 2022
loophp/typed-generators test
View test.php
<?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 Jun 5, 2022
test-typed-generators.php
View 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 / collection-extend.php
Last active May 31, 2022
Extend Collection
View collection-extend.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 My\Own\Namespace;
@drupol
drupol / implode.c
Last active Apr 30, 2022
implode.c
View implode.c
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define ARRAY_SIZE 100
int array_to_sort[ARRAY_SIZE];
char* implode(int arr[], int size, char* separator);
@drupol
drupol / flake.nix
Created Mar 18, 2022
flake.nix for PHP apps
View flake.nix
{
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