Skip to content

Instantly share code, notes, and snippets.

View ragaskar's full-sized avatar

Rajan Agaskar ragaskar

View GitHub Profile
@pivotal-casebook
pivotal-casebook / example output
Created September 14, 2012 15:20
A shell script which outputs all git branches on origin, sorted by the most recent commit, and shows authors of those commits
metropolitan:casebook2 (master) $ script/show-branch-info
Pruning origin
URL: git@github.com:casebook/casebook2.git
* [pruned] origin/old_branch_1
* [pruned] origin/old_branch_2
2012-09-14 11:09:29 -0400 12 minutes ago John Doe origin/master
2012-09-14 11:09:29 -0400 12 minutes ago John Doe origin/HEAD
2012-09-14 09:48:47 -0400 2 hours ago Jane Doe origin/topic_branch_1
2012-09-14 09:48:14 -0400 2 hours ago Jimmy Doe origin/production_branch
@afeld
afeld / gist:5704079
Last active November 27, 2023 15:43
Using Rails+Bower on Heroku
@ciotlosm
ciotlosm / Readme.md
Last active February 5, 2024 15:04
Kiosk mode for lovelace

Kiosk mode

Installation

Add kiosk.js file with the content below to your www folder in config.

Like any other custom script, use ui-lovelace.yaml resources section to reference the kiosk.js file.

Make sure you add kiosk somewhere in your URL. You can use it in the id of your view or in the query string.

@piscisaureus
piscisaureus / pr.md
Created August 13, 2012 16:12
Checkout github pull requests locally

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: