Skip to content

Instantly share code, notes, and snippets.

@ki321g
ki321g / sigen_modbus_card.yaml
Created May 7, 2025 14:34 — forked from fbradyirl/sigen_modbus_card.yaml
Recreate Sigenergy UI (using modbus sensors) as Home Assistant Card
type: custom:button-card
show_state: true
tap_action: none
custom_fields:
home_image:
card:
type: picture
image: local/Sigenergy/home_has_solar_has_car.png
card_mod:
style: |
@ki321g
ki321g / pip-email-forwarders.php
Created December 10, 2018 16:39
[pip email forwarders] Pipe Email To PHP And Parse Content, for cpanel #hosting_domain
#!/usr/local/php70/bin/php-cli -q
<?php
/*
* Ensure the very first line of the script is a hashbang (also called shebang)
* –q option instructs PHP not to print its version either, since this will also result in a bounced message.
*/
$fd = fopen("php://stdin", "r");
$message = "";
while (!feof($fd)) {
$message .= fread($fd, 1024);
@ki321g
ki321g / webdev_online_resources.md
Created July 16, 2018 18:34 — forked from bradtraversy/webdev_online_resources.md
Online Resources For Web Developers (No Downloading)
@ki321g
ki321g / wordpress-create-user.php
Created February 22, 2018 12:23
Create a user in WordPress from a php page/script outside of the WordPress system.
<?php
// [wp insert user « WordPress Codex](http://codex.wordpress.org/Function_Reference/wp_insert_user)
require_once "wordpress/wp-load.php";
$user_info = array(
"user_pass" => "test123",
"user_login" => "username",
"user_nicename" => "username",
"user_email" => "email@example.com",
@ki321g
ki321g / dabblet.css
Created October 21, 2016 17:22 — forked from chriscoyier/dabblet.css
Checkbox Hack
/* Checkbox Hack */
input[type=checkbox] {
position: absolute;
top: -9999px;
left: -9999px;
}
label {
-webkit-appearance: push-button;
-moz-appearance: button;