Skip to content

Instantly share code, notes, and snippets.

View valiantboymaksud's full-sized avatar
📚
Focusing

MaD valiantboymaksud

📚
Focusing
View GitHub Profile
@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'
format to remove <!-- end info-content -->
code : <!-- (.*?)-->
@valiantboymaksud
valiantboymaksud / gist:b9bc77e0cd0dc28ab0740e1c0e1b1952
Created May 26, 2022 10:24
Fatal: Not possible to fast-forward, aborting
git pull origin <branch> --rebase
@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 / a2enmod.txt
Created December 17, 2021 16:09
Ubuntu htaccess
sudo a2enmod rewrite
@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 / 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`