Skip to content

Instantly share code, notes, and snippets.

View chevinbrown's full-sized avatar
🦦

Kevin Brown chevinbrown

🦦
  • Charlotte, NC
View GitHub Profile
@chevinbrown
chevinbrown / gitprompt.sh
Created January 27, 2016 16:36
Git prompt for cygwin
# EDIT for Git
__git_branch='`git branch 2> /dev/null | grep -e ^* | sed -E s/^\\\\\*\ \(.+\)$/\(\\\\\1\)\ /`'
__git_branch_color="\[\033[36m\]"
__last_color="\[\033[00m\]"
export PS1="\[\e]0;\w\a\]\n\[\e[32m\]\u@\h \[\e[33m\]\w\[\e[0m\] $__git_branch_color$__git_branch\n$__last_color\$"
~
@chevinbrown
chevinbrown / .gitconfig
Created January 28, 2016 17:12 — forked from pksunkara/config
Sample of git config file (Example .gitconfig)
[user]
name = Pavan Kumar Sunkara
email = [email protected]
[core]
editor = vim
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol
excludesfile = ~/.gitignore
[sendemail]
smtpencryption = tls
smtpserver = smtp.gmail.com
@chevinbrown
chevinbrown / gulpfile.js
Created April 18, 2017 02:37 — forked from torgeir/gulpfile.js
Example gulpfile.js
// Load plugins
var gulp = require('gulp'),
sass = require('gulp-ruby-sass'),
autoprefixer = require('gulp-autoprefixer'),
minifycss = require('gulp-minify-css'),
jshint = require('gulp-jshint'),
uglify = require('gulp-uglify'),
imagemin = require('gulp-imagemin'),
rename = require('gulp-rename'),
clean = require('gulp-clean'),
@chevinbrown
chevinbrown / Gemfile
Created March 13, 2018 22:54 — forked from nateberkopec/Gemfile
Closure compiler for a Rails 3 app
group :assets do
gem 'closure-compiler'
end
@chevinbrown
chevinbrown / 1-setup.md
Created August 16, 2019 15:45 — forked from troyfontaine/1-setup.md
Signing your Git Commits using GPG on MacOS Sierra/High Sierra

Methods of Signing with GPG

There are now two ways to approach this:

  1. Using gpg and generating keys
  2. Using Kryptonite by krypt.co

This Gist explains how to do this using gpg in a step-by-step fashion. Kryptonite is actually wickedly easy to use-but you will still need to follow the instructions

For using a GUI-based GIT tool such as Tower or Github Desktop, follow the steps here for signing with either GPG or Krypt.co.