Skip to content

Instantly share code, notes, and snippets.

View ESimmonds's full-sized avatar

Equan Simmonds ESimmonds

View GitHub Profile
t5@2Q]}
  1. Open Terminal move to your home folder: cd ~

  2. Enable git colors: git config --global color.ui true

  3. Make a file called ".colors": touch .colors

  4. Open .colors and paste the following:

/*
AUTHOR: Osvaldas Valutis, www.osvaldas.info
*/
;(function( $, window, document, undefined )
{
$.fn.doubleTapToGo = function( params )
{
@ESimmonds
ESimmonds / updatejoin.sql
Created August 22, 2013 14:59
update a table with joins
Use Curacao
GO
SET XACT_ABORT ON
BEGIN TRY
BEGIN TRANSACTION;
DECLARE @recordNumber int = 136512, @type nvarchar(10) = 'Intern'
Update r
#
# Powershell script for adding/removing/showing entries to the hosts file.
#
# Known limitations:
# - does not handle entries with comments afterwards ("<ip> <host> # comment")
#
$file = "C:\Windows\System32\drivers\etc\hosts"
function add-host([string]$filename, [string]$ip, [string]$hostname) {