Skip to content

Instantly share code, notes, and snippets.

View mamun724682's full-sized avatar
:octocat:
Working from home

Abdullah Al Mamun mamun724682

:octocat:
Working from home
View GitHub Profile
@mamun724682
mamun724682 / CreateGeneralExportFileJob.php
Created October 4, 2023 16:35 — forked from brytey2k/CreateGeneralExportFileJob.php
A simple Laravel job that can help you export data through CSV from a database with millions of rows.
<?php
namespace App\Jobs;
use App\Models\GeneralExport;
use Storage;
class CreateGeneralExportFileJob implements ShouldQueue
{
@mamun724682
mamun724682 / ssh-tutorial.md
Created May 9, 2023 16:06 — forked from slowkow/ssh-tutorial.md
ssh to a server without typing your password

How to ssh to a remote server without typing your password

Save yourself a few keystrokes. Follow the steps below:

  1. Run this Bash script on your laptop:

    #!/usr/bin/env bash
    

The hostname of your remote server.

@mamun724682
mamun724682 / lemp_stack.text
Created January 27, 2023 01:54 — forked from arif98741/lemp_stack.text
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'
@mamun724682
mamun724682 / ssh-deploy-github-action-push-to-server.yml
Last active March 15, 2022 15:41 — forked from Robiussani152/github-action-push-to-server.yml
Github action for laravel shared hosting SSH Deploy
name: push-to-do-server
on:
push:
branches: [ main ]
jobs:
automatic-deploy:
runs-on: ubuntu-latest
steps:
<?php
use Carbon\Carbon;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Log;
use Illuminate\Support\Facades\Session;
use Illuminate\Support\Facades\Storage;
use Illuminate\Support\Facades\Validator;
@mamun724682
mamun724682 / main.yml
Created January 16, 2022 03:54
Github action for laravel shared hosting ftp deploy
on: push
name: πŸš€ Deploy website on push
jobs:
web-deploy:
name: πŸŽ‰ Deploy
runs-on: ubuntu-latest
steps:
- name: 🚚 Get latest code
uses: actions/checkout@v2
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
# don't put duplicate lines in the history. See bash(1) for more options
# ... or force ignoredups and ignorespace
HISTCONTROL=ignoredups:ignorespace
# Alias for pythons
alias py=python
# Alias for composer
alias cr=composer
alias cri="composer install"
alias crd="composer dump-autoload"
alias cru="composer update"
# Alias for artisan commands
@mamun724682
mamun724682 / Terminal.sublime-settings
Created September 5, 2018 05:22 — forked from kujiy/Terminal.sublime-settings
open git bash using `terminal` plugin for sublime
{
// The command to execute for the terminal, leave blank for the OS default
// On OS X the terminal can be set to iTerm.sh to execute iTerm
"terminal": "C:\\Program Files\\Git\\git-bash.exe",
// A list of default parameters to pass to the terminal, this can be
// overridden by passing the "parameters" key with a list value to the args
// dict when calling the "open_terminal" or "open_terminal_project_folder"
// commands
"parameters": ["-c", "cd \"%CWD%\" && \"C:\\Program Files\\Git\\bin\\sh.exe\" -i -l"]