Skip to content

Instantly share code, notes, and snippets.

View arif98741's full-sized avatar
🏠
Actively Working

Ariful Islam arif98741

🏠
Actively Working
View GitHub Profile
@arif98741
arif98741 / ssh github action pipeline.txt
Created July 27, 2025 05:16
SSH Github action Deployment pipeline
name: Deployment to SSH Server
on:
push:
branches:
- dev
- production
pull_request:
branches:
- dev
@arif98741
arif98741 / ublock install.txt
Last active August 1, 2025 11:38
Ublock Origin Adblock installation process for Chrome
How is it Working ?
I Haven't done any of it !!
You can still use this extension! If you want to manually load this version, here are the instructions from the developer:
1. Enter chrome://flags in chrome's URL input
2. Search for "Allow legacy extension manifest versions"
3. Enable it and relaunch browser
4. Download the latest zip file of ublock version from github: (the following is the link of the latest releases) https://github.com/gorhill/uBlock/releases/latest
5. Download the chromium zip and extract it
6. Enter chrome://extensions in chrome's URL input to open the extension page in chrome, click the "Load Unpacked" button on top left side load (enable Developer Mode in the top right if it doesn't appear), then select the extracted file. Show less
@arif98741
arif98741 / getfile.php
Created January 30, 2025 06:55
get file
use Illuminate\Support\Facades\Auth;
use Illuminate\Support\Facades\Storage;
use Illuminate\Support\Facades\Response;
function getFile($fileName)
{
// Check if the user is logged in
if (!Auth::check()) {
return response('Unauthorized', 401); // Return an unauthorized response
}
@arif98741
arif98741 / PostTest.php
Created January 12, 2025 13:12
PostTestCase File
<?php
namespace Tests\Unit;
use Illuminate\Foundation\Testing\RefreshDatabase;
use Tests\TestCase;
use App\Models\Post;
class PostTest extends TestCase
{
@arif98741
arif98741 / social share
Created November 5, 2024 14:25
Gist for Social Share
<div class="row">
<div class="col-md-12">
<!-- Social Media Share Buttons -->
<div class="mt-2">
<h4>Share this post:</h4>
<a href="https://www.facebook.com/sharer/sharer.php?u={{ urlencode(url()->current()) }}" target="_blank" class="btn btn-primary btn-sm my-2 btn-social">
<i class="fab fa-facebook-f"></i>&nbsp;Facebook
</a>
<a href="https://api.whatsapp.com/send?text={{ urlencode($singlePost->title . ' ' . url()->current()) }}" target="_blank" class="btn btn-success btn-sm btn-social">
<i class="fab fa-whatsapp"></i>&nbsp;WhatsApp
@arif98741
arif98741 / combination-2-dimention.js
Created March 21, 2024 18:19
Print Combination using Javascript using two dimentional array
let colorsSizes = [["Red","Blue","Black"],["M","L","XL"]];
for (let i = 0; i < colorsSizes[0].length; i++) {
for (let j = 0; j < colorsSizes[1].length; j++) {
console.log(colorsSizes[0][i] + " - " + colorsSizes[1][j]);
}
}
Red - M
Red - L
Red - XL
@arif98741
arif98741 / index.html
Last active January 27, 2024 07:44
soemthign
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="style.css">
</head>
@arif98741
arif98741 / supervisor-install.txt
Created December 11, 2023 07:51
Install Supervisor for Running Laravel Background Job
sudo apt-get install supervisor
sudo systemctl stop supervisor
sudo systemctl start supervisor
sudo systemctl status supervisor
sudo nano /etc/supervisor/conf.d/laravel-queue-project1.conf
[program:laravel-queue-project1]
process_name=%(program_name)s_%(process_num)02d
command=php /var/www/project1/artisan queue:work --queue=default --sleep=3 --tries=3 --max-time=3600
@arif98741
arif98741 / gitlab-runner.yml
Created September 11, 2023 11:52
Gitlab Runner
stages:
- build
- test
- deploy
variables:
APP_NAME: "your-app-name"
SERVER_USER: "your-server-user"
SERVER_HOST: "your-server-host"
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
@arif98741
arif98741 / laravel root composer.json for packge dev
Last active September 19, 2023 10:29
Laravel Root Package Composer.json
//////////project composer.json////////////
{
"name": "laravel/laravel",
"type": "project",
"description": "The skeleton application for the Laravel framework.",
"keywords": ["laravel", "framework"],
"license": "MIT",
"repositories": {
"demo-package": {