Skip to content

Instantly share code, notes, and snippets.

blueprint:
name: Send a camera snapshot when doorbell was activated
description: 'This automation blueprint creates a camera snapshot when the doorbell was activated and
sends a notification to your phone with the picture.
'
domain: automation
input:
binary_sensor:
name: Push button
description:
@peripatew
peripatew / reclaimWindows10.ps1
Created March 25, 2018 10:28 — forked from alirobe/reclaimWindows10.ps1
This Windows 10 Setup Script turns off a bunch of unnecessary Windows 10 telemetery, bloatware, & privacy things. Not guaranteed to catch everything. Review and tweak before running. Reboot after running. Scripts for reversing are included and commented. Fork of https://github.com/Disassembler0/Win10-Initial-Setup-Script (different defaults)
##########
# Tweaked Win10 Initial Setup Script
# Primary Author: Disassembler <disassembler@dasm.cz>
# Modified by: alirobe <alirobe@alirobe.com> based on my personal preferences.
# Version: 2.12.1, 2018-03-15
# Primary Author Source: https://github.com/Disassembler0/Win10-Initial-Setup-Script
# Tweaked Source: https://gist.github.com/alirobe/7f3b34ad89a159e6daa1/
# Tweak difference:
#
# @alirobe's version is a subset focused on safely disabling telemetry, some 'smart' features and 3rd party bloat ...
jumpSize = 150;
stayX = transform.position[0];
newY = transform.position[1];
n = 0;
if (marker.numKeys > 0){n = marker.nearestKey(time).index;
if (marker.key(n).time > time){
n--;}}
if (n == 0){
[stayX,newY]
}else{
@peripatew
peripatew / gist:4684842
Created January 31, 2013 17:59
theme trouble
<head>
<body id="vanilla_categories_discussions" class="Vanilla Categories discussions ">
<div id="Frame">
<div class="Banner" id="header">
<div class="Menu">
<div id="Body">
<div id="Panel">
<div id="Content">
<div class="Categories">
<div class="CategoryBox Category-6th-graders">
@peripatew
peripatew / gist:4684331
Created January 31, 2013 16:57
From BAW Login/Logout Menu
<?php
if( !defined( 'ABSPATH' ) )
die( 'Cheatin\' uh?' );
/* Used to return the correct title for the double login/logout menu item */
function bawllm_loginout_title( $title )
{
$titles = explode( '|', $title );
if ( ! is_user_logged_in() )
return esc_html( isset( $titles[0] ) ? $titles[0] : $title );
@peripatew
peripatew / gist:4671326
Created January 30, 2013 07:04
template-portfolio.php
<?php
/*
Template Name: Portfolio
*/
?>
<?php get_header(); ?>
<?php
@peripatew
peripatew / gist:4671127
Created January 30, 2013 06:12
page.php
<?php get_header(); ?>
<!--BEGIN #primary .hfeed-->
<div id="primary" class="hfeed">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<?php zilla_page_before(); ?>
<!--BEGIN .hentry-->
<div <?php post_class() ?> id="post-<?php the_ID(); ?>">
<?php zilla_page_start(); ?>
@peripatew
peripatew / gist:4669889
Created January 30, 2013 01:45
Forum/index.php
<?php
/**
* BuddyPress - Forums Directory
*
* @package BuddyPress
* @subpackage bp-default
*/
?>
@peripatew
peripatew / gist:4661867
Created January 29, 2013 04:42
Like this?
<?php
/*
Template Name: Portfolio
*/
?>
<?php get_header(); ?>
<?php
$days = array(