Skip to content

Instantly share code, notes, and snippets.


Zahidul Hossain choyan

View GitHub Profile
View Git

Git Workflow

Initialize Git

git init
git add .
git commit -m 'new commit'

Create branch

git branch develop
View Flutter
View gulpfile.js
const gulp = require('gulp');
const plugins = require('gulp-load-plugins')();
const del = require('del');
const log = require('fancy-log');
const imagemin = require('gulp-imagemin');
const imageminMozjpeg = require('imagemin-mozjpeg');
const critical = require('critical');
const browserSync = require('browser-sync');
choyan / browsersync.js
Created Jan 29, 2020 — forked from tristanisfeld/browsersync.js
Gulp 4 - Multifile tasks w/ external config. Basic gulpfile template for use with multiple task files, using gulp-load-plugins
View browsersync.js
// =========================================================
// Gulp Task: browsersync
// NOTE: Using gulp v4
// Description: Sync sass, typescript, html, and browser
// using external config or add modify src
// npm install --save-dev browser-sync gulp-typescript gulpjs/gulp.git#4.0 gulp-load-plugins
// Options: node-sass gulp-sass || gulp-ruby-sass
// =========================================================
var config = require('../config.js');
var browserSync = require('browser-sync').create();
choyan / Gulpfile.js
Created Jan 7, 2020
Gulp 4 configuration for gulp-inject
View Gulpfile.js
const gulp = require('gulp');
const inject = require('gulp-inject');
// use to concat css files
function injectIntoHTML() {
// It's not necessary to read the files (will speed up things), we're only after their paths:
let sources = gulp.src(['./src/**/*.js', './src/**/*.css'], {read: false});
return gulp
View Vue-CLI related
View Laravel Project setup with Virtual

Lamp Installation

sudo apt install lamp-server^

sudo systemctl stop apache2.service
sudo systemctl start apache2.service
sudo systemctl enable apache2.service

Composer Instal

View brand.csv
bid brand web_site
1 sqaure
2 beximco
2 beximco
2 beximco
choyan /
Last active Feb 18, 2017
Pantheon Terminal color setup

Pantheon terminal alternate color profile

Open dconf Editor and navigate to org/pantheon/terminal/settings . And now update the value as provided

Name Value
Background rgba(40, 42, 54, 1)
Font Droid Sans Mono 12
Foreground rgba(239, 240, 235, 1)
Pallette #222430:#97979b:#3498db:#ff5c57:#5af78e:#ff5c57:#57c7ff:#ff6ac1:#9aedfe:#f1f1f0:#686868:#ff5c57:#5af78e:#ff5c57:#57c7ff:#ff6ac1:#9aedfe
  1. Navigate to and on the Linux Binaries (.tar.gz) row click to download the 64-bit version of the current latest release.

  2. Say you've downloaded node-v0.10.7-linux-x64.tar.gz into the Downloads directory. Then, open the terminal and type the following:

$ cd ~/Downloads
$ mkdir -p ~/local/node
$ tar xzf node-v0.10.7-linux-x64.tar.gz -C ~/local/node --strip-components=1
$ echo '# Node Enviroment Setup' >> ~/.bashrc
$ echo 'export PATH=$HOME/local/node/bin:$PATH' >> ~/.bashrc
You can’t perform that action at this time.