Skip to content

Instantly share code, notes, and snippets.

View thecyrilcril's full-sized avatar
🏠
Working from home

Cyril Fehintoluwa thecyrilcril

🏠
Working from home
View GitHub Profile
@thecyrilcril
thecyrilcril / .json
Created April 11, 2025 16:33
Courses
// Put Courses JSON here
@thecyrilcril
thecyrilcril / flake.nix
Created February 14, 2025 19:19 — forked from JustSteveKing/flake.nix
Current Nix configuration
{
description = "JustSteveKing Nix MacOS Setup";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
nix-darwin.url = "github:LnL7/nix-darwin";
nix-darwin.inputs.nixpkgs.follows = "nixpkgs";
nix-homebrew.url = "github:zhaofengli-wip/nix-homebrew";
};
@thecyrilcril
thecyrilcril / ApiRenderer.php
Created January 29, 2025 05:54 — forked from JustSteveKing/ApiRenderer.php
Handling Errors in Laravel
<?php
declare(strict_types=1);
namespace App\Exceptions\Rendering;
use Illuminate\Contracts\Support\Responsable;
use Illuminate\Http\Request;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
use Throwable;
@thecyrilcril
thecyrilcril / rector.php
Created January 29, 2025 05:53 — forked from JustSteveKing/rector.php
Laravel Rector Config
<?php
declare(strict_types=1);
use Rector\CodeQuality\Rector\Class_\InlineConstructorDefaultToPropertyRector;
use Rector\Config\RectorConfig;
use Rector\Set\ValueObject\LevelSetList;
use Rector\Set\ValueObject\SetList;
return static function (RectorConfig $rectorConfig): void {
@thecyrilcril
thecyrilcril / rector.php
Created January 29, 2025 05:53 — forked from JustSteveKing/rector.php
Laravel Rector Config
<?php
declare(strict_types=1);
use Rector\CodeQuality\Rector\Class_\InlineConstructorDefaultToPropertyRector;
use Rector\Config\RectorConfig;
use Rector\Set\ValueObject\LevelSetList;
use Rector\Set\ValueObject\SetList;
return static function (RectorConfig $rectorConfig): void {
@thecyrilcril
thecyrilcril / ANSI.md
Created December 27, 2023 08:34 — forked from fnky/ANSI.md
ANSI Escape Codes

ANSI Escape Sequences

Standard escape codes are prefixed with Escape:

  • Ctrl-Key: ^[
  • Octal: \033
  • Unicode: \u001b
  • Hexadecimal: \x1B
  • Decimal: 27
@thecyrilcril
thecyrilcril / bash-colors.md
Created December 27, 2023 08:34 — forked from JBlond/bash-colors.md
The entire table of ANSI color codes.

Regular Colors

Value Color
\e[0;30m Black
\e[0;31m Red
\e[0;32m Green
\e[0;33m Yellow
\e[0;34m Blue
\e[0;35m Purple
@thecyrilcril
thecyrilcril / php.ini
Created July 31, 2023 16:26 — forked from ShaneShipston/php.ini
NativePHP Windows Support
[PHP]
;;;;;;;;;;;;;;;;;;;
; About php.ini ;
;;;;;;;;;;;;;;;;;;;
; PHP's initialization file, generally called php.ini, is responsible for
; configuring many of the aspects of PHP's behavior.
; PHP attempts to find and load this configuration from a number of locations.
; The following is a summary of its search order:
@thecyrilcril
thecyrilcril / pint.json
Created June 20, 2023 11:19 — forked from JustSteveKing/pint.json
Laravel Pint configuration
{
"preset": "psr12",
"rules": {
"align_multiline_comment": true,
"array_indentation": true,
"array_syntax": true,
"blank_line_after_namespace": true,
"blank_line_after_opening_tag": true,
"combine_consecutive_issets": true,
"combine_consecutive_unsets": true,
@thecyrilcril
thecyrilcril / laravel-controller-method-commands.php
Created March 31, 2023 04:11 — forked from nasirkhan/laravel-controller-method-commands.php
Call Laravel Controller methods via command line
<?php
php artisan tinker
$controller = app()->make('App\Http\Controllers\MyController');
app()->call([$controller, 'myMethodName'], []);
//the last [] in the app()->call() can hold arguments such as [user_id] => 10 etc'