Skip to content

Instantly share code, notes, and snippets.

View timnovinger's full-sized avatar

Tim Novinger timnovinger

View GitHub Profile
#########################################################################################
alias: Auto-Pause Xbox One X
description: A door opening pauses media on Xbox One X
trigger:
- platform: state
entity_id:
- binary_sensor.back_door_access_control_window_door_is_open
- binary_sensor.front_door_access_control_window_door_is_open
to: 'on'
condition:

#Create bitbucket branch

##Create local branch

$ git checkout -b sync
Switched to a new branch 'sync'
$ git branch
  master
* sync

#Create bitbucket branch

##Create local branch

$ git checkout -b sync
Switched to a new branch 'sync'
$ git branch
  master
* sync
@timnovinger
timnovinger / .gitignore
Created October 8, 2012 21:52 — forked from redoPop/.gitignore
Template .gitignore file for WordPress projects
# This is a template .gitignore file for git-managed WordPress projects.
#
# Fact: you don't want WordPress core files, or your server-specific
# configuration files etc., in your project's repository. You just don't.
#
# Solution: stick this file up your repository root (which it assumes is
# also the WordPress root directory) and add exceptions for any plugins,
# themes, and other directories that should be under version control.
#
# See the comments below for more info on how to add exceptions for your
@timnovinger
timnovinger / facebook_js_php_sdk_example.php
Created March 5, 2012 17:39
Colorjar: Facebook JavaScript SDK for login and the PHP SDK for personalization
<?php
define('YOUR_APP_ID', 'YOUR APP ID');
//uses the PHP SDK. Download from https://github.com/facebook/php-sdk
require 'facebook.php';
$facebook = new Facebook(array(
'appId' => YOUR_APP_ID,
'secret' => 'YOUR APP SECRET',
@timnovinger
timnovinger / image_ptag_remover.php
Created February 16, 2012 16:19
WordPress Image P tag remover plugin
<?php
/*
Plugin Name: Image P tag remover
Description: Plugin to remove p tags from around images and iframes in content outputting, after WP autop filter has added them. (oh the irony)
Version: 1.1
Author: Fublo Ltd
Author URI: http://blog.fublo.net/2011/05/wordpress-p-tag-removal/
*/
function filter_ptags_on_images($content)
@timnovinger
timnovinger / get_custom_field.php
Created December 15, 2011 19:35
Colorjar: Get custom field in WP
function custom_field($key) { echo get_custom_field($key); }
function get_custom_field($key, $echo = FALSE)
{
global $post;
$custom_field = get_post_meta($post->ID, $key, true);
if ($echo == FALSE) { return $custom_field; }
echo $custom_field;
}
@timnovinger
timnovinger / disable-plugins-when-doing-local-dev.php
Created December 12, 2011 14:47 — forked from markjaquith/disable-plugins-when-doing-local-dev.php
Disables specified WordPress plugins when doing local development
<?php
/*
Plugin Name: Disable plugins when doing local dev
Description: If the WP_LOCAL_DEV constant is true, disables plugins that you specify
Version: 0.1
License: GPL version 2 or any later version
Author: Mark Jaquith
Author URI: http://coveredwebservices.com/
*/
@timnovinger
timnovinger / Rakefile
Created December 2, 2011 10:34
Setup Happy Git Commits
# http://collectiveidea.com/blog/archives/2010/08/03/happy-git-commits/
#
# This makes adding a happy post commit to a project easy, and simplifies
# changing the sound file periodically. Simply re-run with a different
# sound file reference.
#
# Defaults to the "happykids.wav" file referenced in the blog post above ^
#
# Example usage from within ~/.dotfiles
# - rake add_happy_commits[/Users/tnovinger/code/my_project, vuvuzelas.mp3]
@timnovinger
timnovinger / .gitconfig
Created December 2, 2011 07:55
Git config settings
[alias]
s = status
st = stash
c = commit
ca = commit -a
a = add
rma = rm $(git ls-files --deleted)
b = branch
m = merge
f = fetch