Skip to content

Instantly share code, notes, and snippets.

@frenck
frenck / hassio_ubuntu_install_commands.sh
Last active February 1, 2023 05:38
Simple install command for installing Hass.io on a Generic Ubuntu/Debian machine
Unbuntu is no longer support by the Home Assistant project.
The installation commands previous listed here, are not up 2 date, not recommended, not supported and, therefore, removed.
@savetheclocktower
savetheclocktower / README.md
Last active February 16, 2024 15:22
Poor-man's LEDBlinky with RetroPie and Pac-Drive

NOTE: This Gist was an early write-up of this blog post, part of what became an eleven-part series on my arcade cabinet. I'd suggest you read that post instead of this, but some of the comments on this Gist contain updates and field reports that you might find useful.

RetroPie, LED control, and you

I wanted LEDBlinky-style functionality out of my RetroPie cabinet. But I didn't need RGB control or magical frontend integration or anything like that. I had buttons with simple single-color LEDs.

I've got a simple control panel with six buttons per player. All I wanted was this:

  • When I launch Street Fighter 2, all twelve buttons should light up.
  • When I launch The Simpsons, only the first two buttons for each player should light up.
@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:

@aniav
aniav / googleplus.user.js
Created November 12, 2011 22:44
Show G+ notification box only in Google+ (modified to work also for .pl domains)
// ==UserScript==
// @name Show G+ notification box only in Google+
// @namespace http://sagg.im/hidegplusnotifications
// @description To make sure we spend the entire day on Google+, we now have that big attractive notification box in the top right of all Google sites. When receiving a notification while searching the web or composing an email, the notification box turns all red and instantly draws your attention, taking you into the wrong conversation. This one line GreaseMonkey piece hides the notification box in all Google sites except Google+, where it belongs. Tested on Chrome and FF+GreaseMonkey.
// @include http://*.google.com/*
// @include http://*.google.pl
// @include https://*.google.com/*
// @include https://*.google.pl/*
// @exclude http://plus.google.com/*
// @exclude https://plus.google.com/*
@tobias
tobias / run_tags.rb
Created January 1, 2009 16:44
A script for generating TAGS from a git hook.
#!/usr/bin/ruby
#-*-ruby-*-
# A script to run ctags on all .rb files in a project. Can be run on
# the current dir, called from a git callback, or install itself as a
# git post-merge and post-commit callback.
CTAGS = '/opt/local/bin/ctags'
HOOKS = %w{ post-merge post-commit post-checkout }
HOOKS_DIR = '.git/hooks'