Skip to content

Instantly share code, notes, and snippets.

@rgstephens
rgstephens / lircd
Created November 12, 2016 17:56
LIRC startup script /etc/init.d/lircd
#! /bin/sh
#
# This is an init script for Debian Sid
# Copy it to /etc/init.d/lirc and type
# > update-rc.d lirc defaults 20
#
test -f /usr/local/sbin/lircd || exit 0
@rgstephens
rgstephens / mytivo
Last active November 13, 2016 16:06
LIRC File for Tivo Roamio
# Please make this file available to others
# by sending it to <[email protected]>
#
# this config file was automatically generated
# using lirc-0.9.0-pre1(default) on Sat Nov 12 14:53:38 2016
#
# contributed by
#
# brand: test
# model no. of remote control:
@rgstephens
rgstephens / exportPepper.sh
Created November 6, 2016 22:11
Pepperplate Export to Paprika YAML
#!/bin/sh
ids=`sqlite3 ./recipes_2.db <<!
.mode csv
select Id from Recipe;
!`
dumprecipe() {
sqlite3 ./recipes_2.db <<!
.separator ' '
grails {
plugin {
springsecurity {
rest {
active = true
token {
storage {
useMemcached = false
useGorm = true
gorm {
@rgstephens
rgstephens / main_foundation
Last active August 29, 2015 14:08
Add foundation to main.js from Yeoman generator-backbone
require.config({
paths: {
jquery: '../bower_components/jquery/dist/jquery',
backbone: '../bower_components/backbone/backbone',
underscore: '../bower_components/lodash/dist/lodash',
foundation: '../bower_components/foundation/js/foundation',
app: 'app',
indexView: 'views/index'
},
shim: {
<div class="off-canvas-wrap" data-offcanvas>
<div class="inner-wrap">
<nav class="tab-bar">
<section class="left-small">
<a class="left-off-canvas-toggle menu-icon"><span></span></a>
</section>
<section class="middle tab-bar-section">
<h1 class="title">Foundation</h1>
require.config({
paths: {
jquery: '../bower_components/jquery/dist/jquery',
foundation: '../bower_components/foundation/js/foundation'
},
shim: {
bootstrap: {
deps: ['jquery'],
exports: 'jquery'
},