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 / 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.
-->
@Parables
Parables / updateVSCodeExtensionsInstallationScript.sh
Created June 26, 2021 01:30 — forked from jvlad/updateVSCodeExtensionsInstallationScript.sh
Export Installed Visual Studio Code Extensions in a Form of Installation Script
#!/usr/bin/env zsh
#
# This script generates and writes to file another bash-script (output_script)
# that implements "vscodeInstallExtensions" function which installs all
# Visual Studio Code extensions that were originally installed on your machine
# at the moment of generation output_script by running
# "vscodeUpdateExtensionsInstallationScript" function that is implemented here below.
#
# # How to use
#
@Parables
Parables / .vscode--extensions.json
Last active March 11, 2024 20:24
VS Code Laravel Recommended Extensions
{
"recommendations": [
"aaron-bond.better-comments",
"adpyke.codesnap",
"adrianwilczynski.alpine-js-intellisense",
"ahinkle.laravel-model-snippets",
"ahmadawais.shades-of-purple",
"aibnuhibban.laravel-smart-command",
"alefragnani.project-manager",
"amiralizadeh9480.laravel-extra-intellisense",
@Parables
Parables / fish_alias.md
Created June 12, 2021 03:26 — forked from tikolakin/fish_alias.md
Create alias in Fish shell and save this as a permanent function

Directly from CLI

alias x='exit'
funcsave x

or create a file in

~/.config/fish/functions 

with name

#Option 1
set -U fish_user_paths /usr/local/bin $fish_user_paths
#option 2
set PATH $PATH /usr/local/bin
export PATH
function ll
ls -lh $argv
end