This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- Set this property to true to always open in a new window | |
property open_in_new_window : false | |
-- Handlers | |
on new_window() | |
tell application "iTerm" to create window with default profile | |
end new_window | |
on new_tab() | |
tell application "iTerm" to tell the first window to create tab with default profile |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
# This filter changes all words to Title Caps, and attempts to be clever | |
# about *un*capitalizing small words like a/an/the in the input. | |
# | |
# The list of "small words" which are not capped comes from | |
# the New York Times Manual of Style, plus 'vs' and 'v'. | |
# | |
# 10 May 2008 | |
# Original version by John Gruber: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Variables | |
update="false" | |
reboot="false" | |
hostname=$(hostname) | |
docker="/.dockerenv" | |
dir=$(dirname "$0") | |
IFTTTKEY="$(cat $dir/rebootdata.txt | grep IFTTTKEY | cut -f2 -d "=" )" | |
IFTTTrigger="$(cat $dir/rebootdata.txt | grep fpass | cut -f2 -d "=" )" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# Licensed under the Apache License, Version 2.0 (the "License"); you may | |
# not use this file except in compliance with the License. You may obtain | |
# a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software | |
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Names and defines the hardware | |
esphome: | |
name: espvibration1 | |
platform: ESP32 | |
board: nodemcu-32s | |
# Defines WiFi network/password | |
wifi: | |
ssid: "YOUR WIFI NETWORK" | |
password: "YOUR WIFI PASSWORD" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"id": "6dc0247c.d7210c", | |
"type": "subflow", | |
"name": "iOS Actionable Notification", | |
"info": "[Documentation](https://zachowj.github.io/node-red-contrib-home-assistant-websocket/cookbook/actionable-notifications-subflow-for-ios.html)\n", | |
"category": "", | |
"in": [ | |
{ | |
"x": 100, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/************************************************************************************************************************* | |
* Purpose: Add items to the Home Assistant sidebar to any path in Home Assistant | |
* Many thanks to balloob https://gist.github.com/balloob for his initial code (see link in Change Log) | |
* ------------------------------------------------------------------------------------------------------- | |
* Resources and References: | |
* - Current Code Source https://gist.github.com/Acqua-H/a33ef5bd5a95f14c5888494565bb0436 | |
* - HA Forum Thread https://community.home-assistant.io/t/how-to-add-a-restart-home-assistant-button-to-sidebar/214179/2 | |
* - Acqua https://github.com/Acqua-H/ | https://community.home-assistant.io/u/acqua/ | |
* ------------------------------------------------------------------------------------------------------- | |
* Change Log: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//Turn on our credit card field for admin and front-end | |
add_action("gform_enable_credit_card_field", "enable_creditcard"); | |
function enable_creditcard($is_enabled) | |
{ | |
return true; | |
} | |
//Email encoded card details when the form is submitted. | |
add_action('gform_after_submission', 'email_encoded_cc', 10, 2); | |
function email_encoded_cc($entry, $form) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sub, | |
sup { | |
/* Specified in % so that the sup/sup is the | |
right size relative to the surrounding text */ | |
font-size: 75%; | |
/* Zero out the line-height so that it doesn't | |
interfere with the positioning that follows */ | |
line-height: 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//source: https://rudrastyh.com/wordpress/quick-edit-featured-image.html | |
/* | |
* This action hook allows to add a new empty column | |
*/ | |
add_filter('manage_post_posts_columns', 'misha_featured_image_column'); | |
function misha_featured_image_column( $column_array ) { | |
// I want to add my column at the beginning, so I use array_slice() | |
// in other cases $column_array['featured_image'] = 'Featured Image' will be enough |
OlderNewer