Skip to content

Instantly share code, notes, and snippets.

View bentruyman's full-sized avatar
🕺

Ben Truyman bentruyman

🕺
  • Austin, TX, USA, Earth, Milky Way
View GitHub Profile
@bgauduch
bgauduch / 0 - Multiple git identities on one machine.md
Last active September 3, 2026 11:59
Multiple git identities on one machine: config per folder and per provider (personal vs work). Every command verified.

Multiple git identities on one machine

One machine, several git identities (personal vs work, GitHub vs GitLab, two accounts on one provider). Each repository picks its own name, email and credentials. In a hurry: Appendix B, once per rule.

A wrong identity does not fail: git commits and pushes under the wrong author. Part 1 ends with the check that catches it.

Requirements

Feature Minimum git
@XVilka
XVilka / TrueColour.md
Last active August 31, 2026 12:29
True Colour (16 million colours) support in various terminal applications and terminals

THIS GIST WAS MOVED TO TERMSTANDARD/COLORS REPOSITORY.

PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!

@tbranyen
tbranyen / install_node.sh
Created May 1, 2012 16:27
Easily install new or old versions of Node.js on an OS X machine.
#!/bin/bash
#
# Copyright 2012, Tim Branyen @tbranyen <tim@tabdeveloper.com>
# Dual licensed under the MIT and GPL licenses.
#
# Easily install new or old versions of Node.js on an OS X machine.
#
# Install: curl -o /usr/local/bin/install_node https://gist.github.com/raw/2569416/install_node.sh
# chmod +x /usr/local/bin/install_node
#
@cowboy
cowboy / tryme.md
Created February 3, 2012 17:10
You can run jQuery's unit tests in grunt!

First, install grunt v0.2.14 (or newer) via npm with npm install -g grunt, if you haven't already done so.

Next, install PhantomJS. If you're on OS X, use homebrew and brew install phantomjs. If you're on Windows or Linux, download from www.phantomjs.org and put it in your path.

Finally, just open a terminal and...

git clone https://github.com/jquery/jquery
cd jquery
git submodule update --init
@eligrey
eligrey / object-watch.js
Created April 30, 2010 01:38
object.watch polyfill in ES5
/*
* object.watch polyfill
*
* 2012-04-03
*
* By Eli Grey, http://eligrey.com
* Public Domain.
* NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK.
*/
@isaacs
isaacs / comma-first-var.js
Created April 6, 2010 19:24
A better coding convention for lists and object literals in JavaScript
// See comments below.
// This code sample and justification brought to you by
// Isaac Z. Schlueter, aka isaacs
// standard style
var a = "ape",
b = "bat",
c = "cat",
d = "dog",