Skip to content

Instantly share code, notes, and snippets.


Rajan Agaskar ragaskar

View GitHub Profile
ciotlosm /
Last active Aug 13, 2020
Kiosk mode for lovelace

Kiosk mode


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.

afeld / gist:5704079
Last active Jul 27, 2020
Using Rails+Bower on Heroku
View gist:5704079
pivotal-casebook / example output
Created Sep 14, 2012
A shell script which outputs all git branches on origin, sorted by the most recent commit, and shows authors of those commits
View example output
metropolitan:casebook2 (master) $ script/show-branch-info
Pruning origin
* [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
piscisaureus /
Created Aug 13, 2012
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 =

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:

You can’t perform that action at this time.