Skip to content

Instantly share code, notes, and snippets.

View choyan's full-sized avatar
🎯
Focusing

Zahidul Hossain choyan

🎯
Focusing
View GitHub Profile
bid brand web_site
1 sqaure sqaure.com.bd
2 beximco beximco.com.bd
2 beximco beximco.com.bd
2 beximco beximco.com.bd
@choyan
choyan / Preferences.sublime-settings
Last active September 1, 2017 18:12
Sublime Text 3 user preference
{
"always_show_minimap_viewport": true,
"bold_folder_labels": true,
"color_scheme": "Packages/Material Theme/schemes/Material-Theme-Darker.tmTheme",
"folder_exclude_patterns":
[
".svn",
".git",
".hg",
"CVS",
@choyan
choyan / gist:6884351
Created October 8, 2013 13:04
Hibernate on ElementaryOS
To do so on terminal:
gksu gedit /etc/polkit-1/localauthority/50-local.d/com.ubuntu.enable-hibernate.pkla
Replace gedit with your favorite editor’s command. This command will open a blank file. Copy and paste these lines:
[Enable Hibernate]
Identity=unix-user:*
Action=org.freedesktop.upower.hibernate
ResultActive=yes
@choyan
choyan / Gulpfile.js
Created January 7, 2020 10:25
Gulp 4 configuration for gulp-inject
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
@choyan
choyan / browsersync.js
Created January 29, 2020 13:34 — 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
// =========================================================
// 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();
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');

Git Workflow

Initialize Git

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

Create branch

git branch develop

Lamp Installation

sudo apt install lamp-server^

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

Composer Instal