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 / .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 / index.ts
Created May 19, 2020 11:07
hapi cookie authentication
const Hapi = require('@hapi/hapi');
const bcrypt = require('bcrypt');
import { User, UserType } from './model';
import connectDB, { user, createUser, updateUser } from './controller'
const init = async () => {
var server = Hapi.server({
port: process.env.PORT || 3000,
host: process.env.HOST || '0.0.0.0' || 'localhost',
@Parables
Parables / example.ts
Created December 21, 2022 17:22 — forked from nunof07/example.ts
TypeScript final and frozen class decorators
import { final } from './final.ts';
import { frozen } from './frozen.ts';
@final
@frozen
export class Example {
}
export class ExampleSub extends Example {
}
@Parables
Parables / multiple_ssh_setting.md
Created November 29, 2022 15:49 — forked from jexchan/multiple_ssh_setting.md
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "your_email@youremail.com"
@Parables
Parables / pvm.md
Created July 16, 2022 09:16
php version manager

Source: andrej 2021-02-26 13:38:56

  1. Have a directory for the user for shell scripts:
mkdir ~/bin
@Parables
Parables / apline-snippets.js
Created June 30, 2022 20:53
How to AlpineJS - Simple reusable components for AlpineJS
import plupload from "plupload";
export let alert = (
message = "Success",
details = [],
type = "default",
duration = 5000,
position = "bottom-center",
autoDismiss = true
) => ({
@Parables
Parables / alert.blade.php
Last active June 20, 2022 23:37
Alpine Components for Laravel
@props(['message' => 'THis is a demo msg', 'type' => 'danger', 'duration' => 5000, 'position' => 'bottom-center', 'autoDismiss' => true])
<div x-data="alert('{{ $message }}', '{{ $type }}', '{{ $duration }}', '{{ $position }}', '{{ $autoDismiss }}')" x-on:click="dismissAlert" x-id="['alert']"
:class="{
'text-light-area-color dark:text-light-area-color-dark bg-dark-area-color dark:bg-dark-area-color-dark': type ===
'basic',
'text-white bg-red-500': type ===
'danger',
'text-white bg-green-500': type ===
'success',
@Parables
Parables / OpenSourceCRM.rst
Created May 24, 2022 14:22 — forked from cstroe/OpenSourceCRM.rst
A distilled list of open-source CRM software
@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": {