Skip to content

Instantly share code, notes, and snippets.

@wildekek
wildekek / ecu.yaml
Last active August 28, 2024 21:47
CT Clamp power consumption for Home Assistant
# Creates Home Assistant Power and Energy sensors for APSystems ECU-C
# Copy this file to /homeassistant/packages/ecu.yaml
# Add the following lines to the /homeassistant/configuration.yaml:
# homeassistant:
# packages:
# system: !include packages/ecu.yaml
# Update the IP (192.168.0.6) to the address your ECU runs at
# Update the ECUID (215000015509) to your ECUID. You can find this on the main webpage of the ECU
@ayyybe
ayyybe / ccdl.command
Last active September 12, 2024 02:13
Adobe Offline Package Builder v0.1.2 (macOS only) --- No longer being maintained.
#!/bin/bash
CYAN="$(tput bold; tput setaf 6)"
RESET="$(tput sgr0)"
clear
if command -v python3 > /dev/null 2>&1; then
if [ $(python3 -c "print('ye')") = "ye" ]; then
clear
@kany
kany / sendmail_setup.md
Last active June 3, 2024 20:13
Setup SENDMAIL on Mac OSX Yosemite
@Ramshandilya
Ramshandilya / UITableView+CellAnimation.h
Created December 24, 2013 12:00
A fancy sequential animation for table rows
typedef enum
{
UITableViewAnimationDirectionFromLeft,
UITableViewAnimationDirectionFromRight
}UITableViewAnimationDirection;
@interface UITableView (CellAnimation)
- (void)animateRowsFromLeft;
- (void)animateRowsFromRight;
@letiemble
letiemble / openssl-maker.sh
Last active April 23, 2023 11:33
A bash script to generate "all-in-one" OpenSSL static libraries for OS X and iOS. The script produces fat static libraries (i386, x86_64 for OS X) and (i386, x86_64, armv7, armv7s, arm64 for iOS) suitable for integration in both OS X and iOS project.
#!/bin/bash
###############################################################################
## ##
## Build and package OpenSSL static libraries for OSX/iOS ##
## ##
## This script is in the public domain. ##
## Creator : Laurent Etiemble ##
## ##
###############################################################################