Skip to content

Instantly share code, notes, and snippets.

@crpeck
crpeck / AddSSHKeysAtLogin.plist
Created June 6, 2023 20:16
Used to add ssh-keys to mac at login
<plist version="1.0">
<dict>
<key>Label</key>
<string>ssh-add-a</string>
<key>ProgramArguments</key>
<array>
<string>/usr/bin/ssh-add</string>
<string>-A</string>
</array>
<key>StandardOutPath</key>
@crpeck
crpeck / low-battery-level-detection-notification-for-all-battery-sensors.yaml
Created February 20, 2023 18:12 — forked from sbyx/low-battery-level-detection-notification-for-all-battery-sensors.yaml
Home Assistant Blueprint: Low battery level detection & notification for all battery sensors
blueprint:
name: Low battery level detection & notification for all battery sensors
description: Regularly test all sensors with 'battery' device-class for crossing
a certain battery level threshold and if so execute an action.
domain: automation
input:
threshold:
name: Battery warning level threshold
description: Battery sensors below threshold are assumed to be low-battery (as
well as binary battery sensors with value 'on').
[2014/2/21] Works with MOTOX:
Name: cc
APN: ccdata
Proxy: [Not set]
Port: [Not set]
Username: [Not set]
Password: [Not set]
Server: http://mmsc.mobile.att.net
MMSC: http://mmsc.mobile.att.net
MMS proxy: 66.209.11.32
@crpeck
crpeck / mk-oracle-instantclient-deb.sh
Created June 2, 2014 14:20
creates a debian pkg from the Oracle Instant Client ZIPS
#!/bin/bash
#
# requires: fpm https://github.com/jordansissel/fpm/wiki
# you MUST download the zipfiles from Oracle to the same directory
#
# create a debian .deb package from the Oracle Instant Client zips
# installs to /usr/lib/oracle/11.2/client64/
# ZIPFILES is the list of required zipfiles
#
# DEPENDENCIES: libaio1