Skip to content

Instantly share code, notes, and snippets.

View bldcode's full-sized avatar

Bijoy Dewanjee bldcode

  • Devnet Limited
  • 9th Floor, BDBL Building, Kawran Bazar, Dhaka.
View GitHub Profile
@bldcode
bldcode / Release on server with tag creation
Last active January 19, 2020 08:18
Release on server with tag creation
In bitbucket.com/github.com/gitlab
// create a pull request from dev to master in bitbucket
In Local GIT Bash
git pull upstream master
git tag // show all tag
git fetch --tags // fetch all tag
git pull // for update
git fetch --all // fetching all from server
git tag <new_tag_name> // create a tag
@bldcode
bldcode / Date Format in MYSQL
Created January 19, 2020 08:21
Date Format in MYSQL
SELECT DATE_FORMAT(FROM_UNIXTIME(t.date), '%e %b %Y %h:%i:%s %a') AS 'date_formatted', t.*
FROM table_name t
ORDER BY t.id DESC
For creating upstream
git remote add upstream git@bitbucket.org:exelon/<your_upstream_repo>.git
For set origin
git remote set-url origin git@bitbucket.org:bldsource/<your_local_repo>.git
git pull upstream dev
@bldcode
bldcode / Get latest version of a file from GIT
Last active January 19, 2020 09:06
Get latest version of a file from GIT
git checkout origin/dev app/Controller/AppController.php
@bldcode
bldcode / To start a Laravel project and point root directory to public folder
Created January 19, 2020 09:08
To start a Laravel project and point root directory to public folder
php -S localhost:8000 -t public/
@bldcode
bldcode / PHP artisan command
Last active January 19, 2020 11:02
PHP artisan command
// for migration
php artisan migrate
// for installing laravel passport package
php artisan passport:install
// for passport key
php artisan passport:keys
// Create data seeder seeder_name like TourTableDataSeeder
@bldcode
bldcode / Command to see error log
Created January 19, 2020 10:42
Command to see error log
Command to see error log
tail -fn100 <log_file_directory>
@bldcode
bldcode / host file location in windows
Created January 19, 2020 10:49
host file location in windows
host file location
C:\Windows\System32\Drivers\etc\hosts
@bldcode
bldcode / MYSQL DataBase Import command
Created January 19, 2020 10:50
MYSQL DataBase Import command
Mysql Import command
$ cd xampp/mysql/bin
$ mysql -u root -p
$ use 'DB_name'
$ source D:\conchitavinas.sql
or
$ mysql -u root -p db_name < 'D:\database.sql'
@bldcode
bldcode / To install Node Package Manager
Created January 19, 2020 10:53
To install Node Package Manager
To install Node Package Manager
$ npm install
To run bindu frontend project
$ npm run serve
To build bindu frontend project
$ npm run build
# OR
$ yarn serve