Skip to content

Instantly share code, notes, and snippets.

View valiantboymaksud's full-sized avatar
📚
Focusing

MaD valiantboymaksud

📚
Focusing
View GitHub Profile
@valiantboymaksud
valiantboymaksud / ubuntu_tips.text
Last active December 8, 2022 05:05
Ubuntu Tips
Copy File from Remote to Local using SSH:
------------------------------------------------------------
scp -r username@remoteIP:/remote_Directory /local_Directory
KILL RUNNING PORT IN UBUNTU
-------------------------------------------------------------
sudo kill -9 `sudo lsof -t -i:9001`
@valiantboymaksud
valiantboymaksud / laravel-tips.txt
Last active May 11, 2022 03:51
Laravel Quick Tips
Laravel File Download:
----------------------------------
return response()
->download(storage_path('app/download.zip'));
Delete File After Download:
----------------------------------
return response()
->download(storage_path('app/download.zip'))
->deleteFileAfterSend(true);
@valiantboymaksud
valiantboymaksud / a2enmod.txt
Created December 17, 2021 16:09
Ubuntu htaccess
sudo a2enmod rewrite
@valiantboymaksud
valiantboymaksud / gist:3387363a0813b67deac5ce30a4b6d394
Created May 11, 2022 03:50
chosen select on document ready jQuery
$('.select-product').trigger("chosen:activate"); //works on verson 1.0
@valiantboymaksud
valiantboymaksud / gist:b9bc77e0cd0dc28ab0740e1c0e1b1952
Created May 26, 2022 10:24
Fatal: Not possible to fast-forward, aborting
git pull origin <branch> --rebase
format to remove <!-- end info-content -->
code : <!-- (.*?)-->
@valiantboymaksud
valiantboymaksud / thana.php
Created June 21, 2022 07:44
Thanas array
$thanas = array(
array('id' => '1','created_by' => '1','updated_by' => '1','district_id' => '30','name' => 'Kotchandpur','created_at' => '2021-09-08 17:11:25','updated_at' => '2021-09-08 17:11:25'),
array('id' => '2','created_by' => '1','updated_by' => '1','district_id' => '54','name' => 'Bhanga','created_at' => '2021-09-08 17:11:25','updated_at' => '2021-09-08 17:11:25'),
array('id' => '3','created_by' => '1','updated_by' => '1','district_id' => '32','name' => 'Shah Mokhdum','created_at' => '2021-09-08 17:11:25','updated_at' => '2021-09-08 17:11:25'),
array('id' => '4','created_by' => '1','updated_by' => '1','district_id' => '58','name' => 'Adabar','created_at' => '2021-09-08 17:11:25','updated_at' => '2021-09-08 17:11:25'),
array('id' => '5','created_by' => '1','updated_by' => '1','district_id' => '54','name' => 'Sadarpur','created_at' => '2021-09-08 17:11:25','updated_at' => '2021-09-08 17:11:25'),
array('id' => '6','created_by' => '1','updated_by' => '1','district_id' => '16','name' => 'Titas'
@valiantboymaksud
valiantboymaksud / district.php
Last active January 14, 2023 05:26
District Array
$districts = array(
array('id' => '1','created_by' => '1','updated_by' => '1','name' => 'Natore','created_at' => '2021-09-08 17:11:24','updated_at' => '2021-09-08 17:11:24'),
array('id' => '2','created_by' => '1','updated_by' => '1','name' => 'Naogan','created_at' => '2021-09-08 17:11:24','updated_at' => '2021-09-11 18:16:11'),
array('id' => '3','created_by' => '1','updated_by' => '1','name' => 'Chuadanga','created_at' => '2021-09-08 17:11:24','updated_at' => '2021-09-08 17:11:24'),
array('id' => '4','created_by' => '1','updated_by' => '1','name' => 'Chittagong','created_at' => '2021-09-08 17:11:24','updated_at' => '2021-09-08 17:11:24'),
array('id' => '5','created_by' => '1','updated_by' => '1','name' => 'Bogra','created_at' => '2021-09-08 17:11:24','updated_at' => '2021-09-08 17:11:24'),
array('id' => '6','created_by' => '1','updated_by' => '1','name' => 'Sylhet','created_at' => '2021-09-08 17:11:24','updated_at' => '2021-09-08 17:11:24'),
array('id' => '7','created_by' => '1','updated_by' =>
@valiantboymaksud
valiantboymaksud / Full Apache2, Multi PHP & MariaDB - Web Server on Ubuntu 18.04 or later
Created August 4, 2022 18:06
Full Installation and Configuration of Apache2, Multiple PHP, MariaDB, phpMyAdmin, LetsEncrypt, HTTP/2, IonCube, Postfix, Dovecot, SPF, DKIM, Roundcube Webmail and Files Permission Commands on Ubuntu 18.04 and 18.10 Web Server
Complete Installation and Configuration of Apache2, Multiple PHP, MariaDB, phpMyAdmin, LetsEncrypt,
HTTP/2, IonCube, Postfix, Dovecot, SPF, DKIM, Roundcube Webmail and
Files Permission Commands on Ubuntu 18.04 and 18.10 Web Server
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
This is a complete Ubuntu Linux based web server for Website, PHP, SSL, TLS, Database and Email hosting purpose.
Built with the below components for good performance. Also, I tried to make it as secure as possible.
@valiantboymaksud
valiantboymaksud / rewritemode
Created August 7, 2022 08:53
Ubuntu apache2 rewrite mod for directory
<Directory /var/www/html/xgroup>
Options Indexes FollowSymLinks
AllowOverride All
Require all granted
</Directory>