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
@mshoaibdev
mshoaibdev / reverb-instructions.md
Created June 30, 2024 10:34 — forked from lewislarsen/reverb-instructions.md
Instructions for how to setup Laravel Reverb in Production.

Reverb Walkthrough

This is a walkthrough of how to configure Laravel Reverb for production using services like Laravel Forge or Ploi. The first step is nginx configuration changes, then .env changes and finally spinning up your Reverb server.

1. Configuring Nginx

Ensure your nginx site configuration has the following inside the server block:

 location /app {
@ShaneShipston
ShaneShipston / php.ini
Created July 23, 2023 16:20
NativePHP Windows Support
[PHP]
;;;;;;;;;;;;;;;;;;;
; About php.ini ;
;;;;;;;;;;;;;;;;;;;
; PHP's initialization file, generally called php.ini, is responsible for
; configuring many of the aspects of PHP's behavior.
; PHP attempts to find and load this configuration from a number of locations.
; The following is a summary of its search order:
@arif98741
arif98741 / lemp_stack.text
Created January 14, 2023 21:27
LEMP Stack Setup PHP 8.1, Nginx, MySQL, Git, Composer
LEMP Stack Setup - Ubuntu
=================================Install Nginx ==========================
sudo apt update
sudo apt install nginx
sudo ufw status
sudo ufw app list
i. sudo ufw allow 'Nginx Full'
ii. sudo ufw allow 'OpenSSH'
@danielscarvalho
danielscarvalho / downloadtxt
Last active November 29, 2022 06:02
Git commit automatic message for Linux Bash
#!/bin/bash
# Get the dictionary data file... run it just once...
# put those 3 files at ~/bin directory and give execution permission
cd ~/bin
wget https://www.mit.edu/~ecprice/wordlist.10000 -o wordlist.10000.txt
@arif98741
arif98741 / attendance_query.sql
Last active January 30, 2025 06:00
Attendance Table view QUery by Column and Row MySQL
SET @sql = NULL;
SET SESSION group_concat_max_len = 1000000;
SELECT
GROUP_CONCAT(DISTINCT
CONCAT(
'max(CASE WHEN ca.date = ''',
date_format(date, '%Y-%m-%d'),
''' THEN coalesce(p.status, ''P'') END) AS `',
date_format(date, '%Y-%m-%d'), '`'
# Nginx.conf
# Project 1(Path: /var/www/msdsl/shipment, Url: http://192.168.0.132)
# Project 2(Path: /var/www/msdsl/restora, Url: http://192.168.0.132/restora)
# Project 3(Path: /var/www/msdsl/tposreport, Url: http://192.168.0.132/tposreport)
server {
# Listing port and host address
# If 443, make sure to include ssl configuration for the same.
listen 80;
listen [::]:80;
@arif98741
arif98741 / github_ci_deployment.yml
Last active May 17, 2022 18:13
Github CI Pipeline for FTP
on:
push:
branches: [ production ]
name: Phpdark.com Deployment
jobs:
FTP-Deploy-Action:
name: FTP-Deploy-Action
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
@raviagheda
raviagheda / github-action-ssh.md
Last active December 3, 2025 22:10
Github Action with EC2 using SSH
@stancl
stancl / deploy.sh
Last active July 24, 2025 20:44
Deploy using GitHub actions and SSH to a VPS
#!/bin/sh
set -e
vendor/bin/phpunit
npm run prod
git add .
(git commit -m "Build frontend assets for deployment to production") || true
(git push) || true
@alaminfirdows
alaminfirdows / Bengali.php
Created July 9, 2019 13:02
Laravel Bangla Date, Time and Number
<?php
class Bengali
{
// Numbers
public static $bn_numbers = ["১", "২", "৩", "৪", "৫", "৬", "৭", "৮", "৯", "০"];
public static $en_numbers = ["1", "2", "3", "4", "5", "6", "7", "8", "9", "0"];
// Months
public static $en_months = ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'];
public static $en_short_months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'June', 'July', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];