Skip to content

Instantly share code, notes, and snippets.

Working from home

Radheshyam Nazarkar radhenazarkar

Working from home
View GitHub Profile
radhenazarkar /
Created Dec 1, 2018 — forked from rosswd/
Setting up a Github and Bitbucket account on the same computer on Mac OS. Now with a guide for Windows 10.

Setting up github and bitbucket on the same computer (Windows)

Guide for Windows

mix3d asked for some help using this guide with windows so here we go. This was tested with Windows 10. Run all commands in Git Bash once it's installed.

Github will be the main account and bitbucket the secondary.

Git for Windows

  • Download and install Git for Windows
    • In the installer, select everything but decide if you want a desktop icon (2nd step)
View gulpfile.js
'use strict';
// Dependencies
var gulp = require('gulp'),
nodemon = require('gulp-nodemon'),
notify = require('gulp-notify'),
livereload = require('gulp-livereload'),
changed = require('gulp-changed'),
del = require('del'),
gutil = require('gulp-util'),
concat = require('gulp-concat'),
View index.js
var express = require('express'),
router = express.Router();
router.get('/', function(req, res) {
res.render('index.html', {
page: {
name: 'Home' // config used in view. nunjuck compile this config
View index.html
{% extends "./layouts/default.html" %}
{% block content %}
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
{% endblock %}
View default.html
<!DOCTYPE html>
{% block title %}{{ page.title if page.title}} {% endblock %}
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<link rel="shortcut icon" type="image/ico" href="favicon.ico" />
<link href="/css/style.css" rel="stylesheet">
{% block styles %}{% endblock %}
View app.js
var express = require('express'),
nunjucks = require('nunjucks'),
path = require('path'),
app = express(),
logger = require('morgan'),
cookieParser = require('cookie-parser'),
bodyParser = require('body-parser');
app.set('assets_path', (process.env.NODE_ENV === 'production') ? 'dist' : 'build');
app.set('views', path.join(__dirname, app.get('assets_path') + '/views'));
View package.json
"name": "myapp",
"private": true,
"version": "1.0.0",
"description": "",
"main": "app.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "echo \"Starting server\" && NODE_ENV=production gulp"