Skip to content

Instantly share code, notes, and snippets.

View sptq's full-sized avatar
:electron:

Marcin Grochulski sptq

:electron:
View GitHub Profile

Setup

git clone <repo>

clone the repository specified by ; this is similar to "checkout" in some other version control systems such as Subversion and CVS

Add colors to your ~/.gitconfig file:

angular.module('myMdl', []).config(['$httpProvider', function($httpProvider) {
$httpProvider.responseInterceptors.push([
'$q', '$templateCache', 'activeProfile',
function($q, $templateCache, activeProfile) {
// Keep track which HTML templates have already been modified.
var modifiedTemplates = {};
// Tests if there are any keep/omit attributes.
var HAS_FLAGS_EXP = /data-(keep|omit)/;

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@sptq
sptq / .gitconfig
Created January 3, 2017 11:14 — forked from piotros/.gitconfig
Some useful git aliases that I use
[alias]
# branches list
b = branch -vv
# branch name
branch-name = "!git rev-parse --abbrev-ref HEAD"
# checkout
c = checkout