Skip to content

Instantly share code, notes, and snippets.

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

Faysal Ahamed devfaysal

🏠
Working from home
View GitHub Profile
@devfaysal
devfaysal / composer.json
Last active December 14, 2019 08:36
Add local composer package
"repositories": [
{
"type": "path",
"url": "../pkg/laravel-admin"
},
{
"type": "vcs",
"url": "[email protected]:vendor/my-private-repo.git"
}
]
@devfaysal
devfaysal / History|-1024bc6d|entries.json
Last active December 31, 2022 04:11
Visual Studio Code Settings Sync Gist
{"version":1,"resource":"file:///var/www/html/laravel/filament/app/Models/User.php","entries":[{"id":"gjXE.php","timestamp":1663760020239},{"id":"xJ9X.php","timestamp":1663760031893}]}
@devfaysal
devfaysal / vscode shortcut.txt
Created May 1, 2020 04:36
vscode shortcuts
Bulk Multiple cursor:
Mark all then Atl + shift + i
@devfaysal
devfaysal / OpenGraphImageController.php
Created October 8, 2020 09:50
OpenGraphImageController
<?php
namespace App\Http\Controllers;
use GDText\Box;
use GDText\Color;
use App\Post;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Cache;
@devfaysal
devfaysal / countdown_timer.js
Last active February 4, 2021 06:20
Countdown Timer
var endDate = new Date("Feb 5, 2021 12:00:00 GMT-0800").getTime();
var timer = setInterval(function() {
let now = new Date().getTime();
let t = endDate - now;
if (t >= 0) {
let days = Math.floor(t / (1000 * 60 * 60 * 24));