Skip to content

Instantly share code, notes, and snippets.

View TRomesh's full-sized avatar
👊
Win or Learn

Tharaka Romesh TRomesh

👊
Win or Learn
View GitHub Profile
@TRomesh
TRomesh / bashrc.md
Created May 10, 2017 06:45 — forked from ankurk91/bash_profile.md
:octocat: Git branch name in Linux Terminal

Git tip: Show your branch name on your Linux terminal

Add these lines in your ~/.bashrc file

# Show git branch name
force_color_prompt=yes
color_prompt=yes
parse_git_branch() {
import express from 'express';
import axios from 'axios';
import multer from 'multer';
const app = express();
/**
... express.js boilerplate
routes, middlewares, helpers, loggers, etc
**/
// Redux action
export function uploadSuccess({ data }) {
return {
type: 'UPLOAD_DOCUMENT_SUCCESS',
data,
};
}
export function uploadFail(error) {
return {
@TRomesh
TRomesh / install-oh-my-zsh-on-ubuntu
Created June 8, 2017 18:04 — forked from richardtape/install-oh-my-zsh-on-ubuntu
Install Oh My ZSH on Ubuntu 14.04
# Where is the location of your current shall. Useful if we need to revert
echo $0
# Install ZSH
sudo apt-get install zsh
# Instal GIT
sudo apt-get install git-core
# Install OhMyZSH