Skip to content

Instantly share code, notes, and snippets.

Avatar

Rajan Agaskar ragaskar

View GitHub Profile
@ciotlosm
ciotlosm / Readme.md
Last active Aug 13, 2020
Kiosk mode for lovelace
View Readme.md

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.

@afeld
afeld / gist:5704079
Last active Jul 27, 2020
Using Rails+Bower on Heroku
View gist:5704079
@pivotal-casebook
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
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
@piscisaureus
piscisaureus / pr.md
Created Aug 13, 2012
Checkout github pull requests locally
View pr.md

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:

You can’t perform that action at this time.