Skip to content

Instantly share code, notes, and snippets.

View masiur's full-sized avatar
💭
I may be slow to respond.

Masiur Rahman Siddiki masiur

💭
I may be slow to respond.
View GitHub Profile
@masiur
masiur / small_hacks.md
Created July 12, 2018 08:39
laravel artisan with pm2
@masiur
masiur / vue_nginx_config
Created July 11, 2018 08:19
Vue.js Nginx Configuration ( history mode )
server {
root /var/www/html/example.com/example-project-directory/dist;
index index.html index.htm index.nginx-debian.html;
server_name example.com www.example.com;
location / {
try_files $uri $uri/ /index.html;
}
}
@masiur
masiur / phpmyadmin_nginx_config
Created July 10, 2018 17:04
phpmyadmin nginx configuration
server {
listen 50;
listen 9999;
listen [::]:50;
listen [::]:9999;
root /usr/share/phpmyadmin/;
index index.php index.html index.htm index.nginx-debian.html;
location / {
server {
    listen 80;
    listen [::]:80;

    root /var/www/html/example.com/{project_dir_name}/public;
    index index.php index.html index.htm index.nginx-debian.html;

    server_name example.com www.example.com;

location / {

@masiur
masiur / laravel_on_lemp.md
Last active February 15, 2018 16:16
Laravel App Host On LEMP Server
sudo mkdir -p /var/www/html/domain_name
sudo mkdir -p /var/www/html/beta.swayiltd.com
sudo chown -R $USER:$USER /var/www/html/beta.swayiltd.com
cd /var/www/html/beta.swayiltd.com
git clone https://github.com/masiur/sway.git && cd sway && composer update
sudo cp .env.example .env && nano .env
php artisan migrate --seed
sudo chgrp -R www-data storage bootstrap/cache
sudo chmod -R ug+rwx storage bootstrap/cache

sudo nano /etc/nginx/sites-available/beta.swayiltd.com

@masiur
masiur / instruction.md
Created December 18, 2017 09:14 — forked from ratul0/instruction.md
Laravel mail with supervisor

Frist run this migrations :

php artisan queue:table

php artisan queue:failed-table

php artisan migrate
@masiur
masiur / instruction.md
Created December 18, 2017 09:14 — forked from ratul0/instruction.md
Laravel mail with supervisor

Frist run this migrations :

php artisan queue:table

php artisan queue:failed-table

php artisan migrate
@masiur
masiur / Perfect Ajax Call.js
Last active October 17, 2017 12:00
A perfect Ajax Call with function
<script>
function showToaster(type) {
setTimeout(function() {
toastr.options = {
closeButton: true,
progressBar: false,
positionClass: "toast-bottom-right",
showMethod: 'slideDown',
timeOut: 3000
};
@masiur
masiur / html.html
Created August 13, 2017 06:21
tab component vue
<!DOCTYPE html>
<html>
<head>
<title></title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bulma/0.5.1/css/bulma.css">
<script src="vue.js"></script>
<style type="text/css">
body {
padding-top: 40px;
@masiur
masiur / Dependent Dropdown.md
Last active August 7, 2017 11:28 — forked from talha08/Depandable dropdoen
Dependent Dropdown

Dependent Dropdown

Example of Select Region After Selecting State

   public function showFormFunction()
    {
	$states = State::lists('display_name', 'id');
	$regions = ['Please select state first'];
	return view('dashboard', compact(['states']))
		    ->with('regions', $regions);
    }