Skip to content

Instantly share code, notes, and snippets.


Zahidul Hossain choyan

View GitHub Profile
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
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
choyan / choyan.zsh-theme
Last active Aug 29, 2015
My customized oh-my-zsh theme
View choyan.zsh-theme
local return_code="%(?..%{$fg[red]%}%? ↵%{$reset_color%})"
local user_host='%{$terminfo[bold]$fg[cyan]%}%n in'
local current_dir='%{$terminfo[bold]$fg[blue]%} %~%{$reset_color%}'
local rvm_ruby=''
if which rvm-prompt &> /dev/null; then
rvm_ruby='%{$fg[red]%}‹$(rvm-prompt i v g)›%{$reset_color%}'
if which rbenv &> /dev/null; then
rvm_ruby='%{$fg[red]%}‹$(rbenv version | sed -e "s/ (set.*$//")›%{$reset_color%}'
You can’t perform that action at this time.