Skip to content

Instantly share code, notes, and snippets.

View Parables's full-sized avatar
💭
Contributing to Open Source projects... #GivingBack2éCommunity

Parables Boltnoel Parables

💭
Contributing to Open Source projects... #GivingBack2éCommunity
  • Ghana
View GitHub Profile
@Parables
Parables / analysis_options.yaml
Last active May 20, 2022 20:36 — forked from rydmike/analysis_options.yaml
RydMike lints v1.2.9 - Personal preferences and my starting point for my Dart & Flutter linter rules setup
# RydMike LINTER Preferences v1.2.9
#
# All original source credit and thanks to @rydmike (https://gist.github.com/rydmike)
# for his Gist here:
# https://gist.github.com/rydmike/fdb53ddd933c37d20e6f3188a936cd4c
#
# Include `all_lint_rules.dart` file, which lists all available lint rules as
# enabled.
# Source: https://dart-lang.github.io/linter/lints/options/options.html
#
@Parables
Parables / composer.json
Created April 22, 2022 02:00 — forked from mfurlend/composer.json
composer require git repository
{
"name": "my_vendor_name/my_package",
"description": "My Package Description",
"license": "GPL-3.0",
"autoload": {
"classmap": [ // search these directories for classes
"lib/"
]
},
"repositories": {
#!/bin/bash
# curl -s https://laravel.build/projectName
echo "Creating a new Laravel Sail project..."
projectName="$1"
@Parables
Parables / main.dart
Last active January 12, 2022 12:53
Zizag triples in Dart
// Author: Parables Boltnoel
void main() {
var numbers = [1, 2, 1, 3, 4];
findZigZagTriples(numbers);
}
//
// This function determines whether three numbers a, b, and c is a zigzag triples
@Parables
Parables / multiple-repository-and-identities-git-configuration.md
Created January 6, 2022 17:44 — forked from bgauduch/multiple-repository-and-identities-git-configuration.md
Git config with multiple identities and multiple repositories

Setup multiple git identities & git user informations

/!\ Be very carrefull in your setup : any misconfiguration make all the git config to fail silently ! Go trought this guide step by step and it should be fine 😉

Setup multiple git ssh identities for git

  • Generate your SSH keys as per your git provider documentation.
  • Add each public SSH keys to your git providers acounts.
  • In your ~/.ssh/config, set each ssh key for each repository as in this exemple:
@Parables
Parables / ravendb.php
Created November 27, 2021 21:15 — forked from ayende/ravendb.php
<?php
class RavenDB {
var $server;
var $database;
var $pem;
function __construct($server, $database, $pem = NULL) {
$this->server = $server;
$this->database = $database;
@Parables
Parables / BrowserConsole.php
Last active October 27, 2021 05:37
BrowserConsole.php
<?php
namespace App\Http\Middleware;
use Closure;
use Illuminate\Http\Request;
use Monolog\Handler\BrowserConsoleHandler;
class BrowserConsole
{
@Parables
Parables / flutter-persmissions.md
Last active October 19, 2021 09:38
flutter arch-linux permissions

Permissions for Flutter

Flutter was installed on /opt/flutter

If you intend to use it as a regular user, add your user into the group flutterusers:

gpasswd -a <user> flutterusers

You need to source /etc/profile or relogin to add flutter to your path.

@Parables
Parables / phpcs.xml
Created September 11, 2021 17:47
My custom version
<?xml version="1.0"?>
<ruleset name="PHP_CodeSniffer">
<description>PHPCS configuration file.</description>
<!-- check all files in the app directory, feel free to add more files with:
<file>FOLDER NAME</file>
-->
<file>app</file>
<file>bootstrap</file>
@Parables
Parables / phpcs.xml
Created June 26, 2021 14:25 — forked from paulund/phpcs.xml
PHP PSR-2 CodeSniffer Config for Laravel
<?xml version="1.0"?>
<ruleset name="Laravel Standards">
<!--
The name attribute of the ruleset tag is displayed
when running PHP_CodeSniffer with the -v command line
argument. The description tag below is not displayed anywhere
except in this file, so it can contain information for
developers who may change this file in the future.
-->