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
@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 / hostmultiple_laravel.conf
Created July 18, 2022 04:53
Host Multiple Laravel Project on Same Port 80 Nginx
# 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 13, 2024 05:31
Github Action with EC2 using SSH
@stancl
stancl / deploy.sh
Last active December 10, 2024 10:58
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'];
@ibaiul
ibaiul / Protonmail.md
Last active November 1, 2024 14:23
Configure the protonmail bridge linux client on CentOS server and Fedora

Protonmail on CentOS server

#protonmail #centos #fedora #linux

Before you start

Currently protonmail bridge for linux is distributed as part of an open beta program, but soon it will be made public (https://protonmail.com/bridge/install).

Consider that the bridge linux client requires a paid protonmail account to work.

Get the protonmail bridge linux installer

@bradtraversy
bradtraversy / docker_wordpress.md
Last active December 19, 2024 19:11
Docker Compose FIle For Wordpress, MySQL & phpmyadmin

Wordpress & Docker

This file will setup Wordpress, MySQL & PHPMyAdmin with a single command. Add the code below to a file called "docker-compose.yaml" and run the command

$ docker-compose up -d

# To Tear Down
$ docker-compose down --volumes