-
specifying revisions: http://schacon.github.io/git/git-rev-parse.html#_specifying_revisions
-
view a diff of 2 files in 2 different commits:
git diff <HASH-1>:<PATH-A> <HASH-2>:<PATH-B>
-
list of all affected files both tracked/untracked (for automation)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//***GLOBALS***// | |
var ss = SpreadsheetApp.getActive(); | |
var portfolioSheet = ss.getSheetByName("master"); //replace master with name of the tab that has your portfolio data | |
var columnToCheck = portfolioSheet.getRange("A:A").getValues(); | |
// Get the last row based on the data range of a single column. | |
var lastRow = getLastRowSpecial(columnToCheck); | |
/** | |
* Imports JSON data to your spreadsheet Ex: IMPORTJSON("http://myapisite.com","city/population") | |
* @param url URL of your JSON data as string |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
A script for downloading some podcasts and tagging the files so I can import them to iTunes. | |
""" | |
import pycurl | |
import os.path | |
import sys | |
from BeautifulSoup import BeautifulStoneSoup | |
import eyed3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
#Install Homebrew | |
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" | |
# | |
#Install Python | |
brew install python | |
# | |
#Install CSVKit and check to make sure that it is in your path | |
pip install csvkit |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
Locate the section for your github remote in the .git/config
file. It looks like this:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = git@github.com:joyent/node.git
Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/*
to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on showgrowl(theNotify, theImage, theTitle, theMessage) | |
tell application "Growl" | |
-- Make a list of all the notification types | |
-- that this script will ever send: | |
set the allNotificationsList to ¬ | |
{"Login", "Logout", "Present", "Text Message", "Invitation", "File Transfer Completed"} | |
-- Make a list of the notifications | |
-- that will be enabled by default. | |
-- Those not enabled by default can be enabled later |