Skip to content

Instantly share code, notes, and snippets.

@coridrew
coridrew / gitk_commands.md
Last active February 6, 2023 16:04
gitk is my favorite git gui, and is available on all platforms for free. Here are some of the helpful switches I've learned over the years.

> gitk -> Visualize current working directory / branch only.

> gitk --reflog -> VISUALIZE YOUR REFLOG! OMG! Thanks @Stjaertfena

> gitk --all -> Visualize current working directory & ALL branches (both local and remote).

> gitk --remotes -> Visualize ALL REMOTE branches only.

> gitk --remotes=origin/cd_* -> Visualize SPECIFIC (pattern-based!) REMOTE branches only.

[user]
name = YOUR NAME
email = YOUR EMAIL
[core]
editor = code --wait
hooksPath = /Users/YOUR-USER-FOLDER/hooks
mergeoptions = --no-edit
[diff]
tool = p4merge
stat = true
@coridrew
coridrew / gcloud-deis-setup.sh
Created August 5, 2020 16:56 — forked from dhilipsiva/gcloud-deis-setup.sh
A script to provision GCE for setting up Deis
#! /bin/bash
#
# create_instances.sh
# Copyright (C) 2016 dhilipsiva <dhilipsiva@gmail.com>
#
# Distributed under terms of the MIT license.
#
INSTANCES=3
PREFIX_APP="deisdemo-"
@coridrew
coridrew / my git config
Last active November 18, 2019 03:43
w p4merge, notepad++, trayburn aliases & timesheet & bprune alias
[user]
name = Firstname Lastname
email = you@example.com
[core]
editor = 'C:\\Program Files (x86)\\Notepad++\\notepad++.exe' -multiInst -notabbar -nosession -noPlugin
[diff]
tool = bc4
[difftool]
@coridrew
coridrew / Boxstarter-InitialSetup.txt
Created February 13, 2017 17:43 — forked from cygnull/Boxstarter-InitialSetup.txt
Boxstarter Script for Initial Setup of Windows 10 PC..
# Initial Setup #
#################
#The command to run, built from the raw link of this gist
#START http://boxstarter.org/package/nr/url?https://gist.githubusercontent.com/cygnull/9546ec8639da7849d3a4098a7ee9a8c7/raw/0ad14b79d360826d83ff462eb072649578ae7d6a/Boxstarter-InitialSetup.txt
#As described here: http://boxstarter.org/Learn/WebLauncher
#########################################
# Set Execution Policy and Disable UAC #
@coridrew
coridrew / happy_git_on_osx.md
Last active January 15, 2016 03:04 — forked from trey/happy_git_on_osx.md
Creating a Happy Git Environment on OS X

Creating a Happy Git Environment on OS X

Step 1: Install Git

brew install git bash-completion

Configure things:

git config --global user.name "Your Name"

git config --global user.email "you@example.com"

@coridrew
coridrew / springer-free-maths-books.md
Created December 29, 2015 10:56 — forked from bishboria/springer-free-maths-books.md
Springer have made a bunch of books available for free, here are the direct links
public void ProcessRequest(HttpContext context)
{
context.Response.Clear();
context.Response.ContentType = "application/force-download";
context.Response.AddHeader("content-disposition", "attachment; filename=Current-OptIns_" + DateTime.UtcNow.ToString("yyyyMMddHHmm") + "utc.xls");
List<ExpandoObject> optInList = DbServices.GetCurrentOptIns(optInList);
DataTable dt = optInList.ToDataTable();
GridView gv = new GridView();
gv.DataSource = dt;
@coridrew
coridrew / pr.md
Last active December 6, 2015 17:27 — forked from piscisaureus/pr.md
Checkout github pull requests locally
  1. Add global fetch remote for ALL pull requests for all repos:
> git config --global --add remote.origin.fetch "+refs/pull/*/head:refs/remotes/origin/pr/*"
  1. Now fetch all the pull requests:
$ git fetch origin
@coridrew
coridrew / GitTfsOutput.ps
Created February 17, 2012 16:30
git tfs help for @dahlbyk
Windows PowerShell
Copyright (C) 2009 Microsoft Corporation. All rights reserved.
D:\Workspace\Git\Clones\APOCWebsite_MRFBranch [B-01609 +0 ~1 -0 | +0 ~1 -0]> git tfs help
Usage: git-tfs [command] [options]
bootstrap
checkin
checkintool (ct)
cleanup
cleanup-workspaces