Skip to content

Instantly share code, notes, and snippets.

@Tahutipai
Tahutipai / report_zigbee_zwave_devices_gone_offline.yaml
Last active October 20, 2026 15:00 — 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: Report offline zigbee/zwave/battery/smart plug devices
description: Works with Smart Plugs, ZWave, Zigbee etc (Works with ZHA & Z2M)
#By Tahutipai 2024-02-21
#Originally Based on the work of Sybx @ https://community.home-assistant.io/t/low-battery-level-detection-notification-for-all-battery-sensors/258664
#Note: This has been upgraded to report only the Device that is offline, not multiple individual sensors within one Device
domain: automation
input:
time:
name: Time to test on
@andrei-markeev
andrei-markeev / get-data-from-excel.js
Created November 15, 2016 10:09
Get data from Excel file stored in SharePoint using Excel REST API
var fileRelativeUrl = "Shared%20Documents/book1.xlsx";
var sheetName = "Sheet1";
var range = "A1|J45";
var url = _spPageContextInfo.webServerRelativeUrl.replace(/\/$/, '') + "/";
loadXMLDoc(url + "_vti_bin/ExcelRest.aspx/" + fileRelativeUrl + "/model/Ranges('" + sheetName + "!" + range + "')?$format=atom", function (text) {
var parser = new DOMParser();
var excelRestNS = 'http://schemas.microsoft.com/office/2008/07/excelservices/rest';
var xmlDoc = parser.parseFromString(text, "text/xml");
var rows = xmlDoc.getElementsByTagNameNS(excelRestNS, 'row');
@drgsredgdfgdrg
drgsredgdfgdrg / Dark Verse APK.md
Created September 27, 2025 08:05
Dark Verse APK v4 (Bug) Versi Terbaru - Unduh Gratis untuk Android
image

Dark Verse APK: Peningkatan Komunikasi dengan Aplikasi Android Canggih

Pendahuluan Dark Verse APK adalah aplikasi Android yang menawarkan solusi inovatif dalam menguji kinerja dan stabilitas aplikasi pesan populer. Dengan tujuan utama untuk meningkatkan kualitas komunikasi pengguna, aplikasi ini memberikan berbagai fitur yang dapat membantu pengguna untuk memastikan pesan terkirim dengan lancar dan tanpa gangguan. Aplikasi ini sangat cocok bagi mereka yang membutuhkan alat untuk memverifikasi kinerja aplikasi komunikasi secara menyeluruh, menjadikannya solusi praktis bagi pengguna Android yang ingin merasakan pengalaman komunikasi yang lebih baik.

Fitur Unggulan Dark Verse APK

<!DOCTYPE html>
<html>
<head>
<title></title>
<meta charset="utf-8" />
<script src="Scripts/jquery-1.9.1.min.js"></script>
<link href="Content/bootstrap.min.css" rel="stylesheet" />
<script src="Scripts/isRockFx.js"></script>
<script>
$(function () {
@Prottoy2938
Prottoy2938 / ch-key-generation.js
Created November 2, 2020 13:17
Cipher Delta key generation code
function makeId(length) {
let result = "";
const characters =
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
const charactersLength = characters.length;
for (let i = 0; i < length; i++) {
result += characters.charAt(Math.floor(Math.random() * charactersLength));
}
return result;
}

Exporting and Importing Discord GIF Favorites

Backs up and restores favorited GIFs by reading and writing Discord's own FrecencyUserSettings proto store directly via the console. Requires Vencord (https://vencord.dev/) loaded in the client (built into Vesktop, or installed on official Discord desktop/browser).

Note: writes are permanent the moment they persist, there is no undo. Export and check your data before clearing anything.

Opening DevTools

  • Vesktop / Vencord-patched desktop app: Ctrl+Shift+I
  • Browser with Vencord loaded: same, Ctrl+Shift+I / Cmd+Option+I
@arianvp
arianvp / SSH_MACOS_SECURE_ENCLAVES.md
Last active October 20, 2026 14:16
Native Secure Enclaved backed ssh keys on MacOS

Native Secure Enclave backed ssh keys on MacOS

It turns out that MacOS Tahoe can generate and use secure-enclave backed SSH keys! This replaces projects like https://github.com/maxgoedjen/secretive

There is a shared library /usr/lib/ssh-keychain.dylib that traditionally has been used to add smartcard support to ssh by implementing PKCS11Provider interface. However since recently it also implements SecurityKeyProivder which supports loading keys directly from the secure enclave! SecurityKeyProvider is what is normally used to talk to FIDO2 devices (e.g. libfido2 can be used to talk to your Yubikey). However you can now use it to talk to your Secure Enclave instead!

@rannn505
rannn505 / common.itermkeymap
Created January 26, 2022 23:34
Common keyboard shortcuts for iTerm2
{
"Key Mappings": {
"0xf702-0x300000-0x7b": {
"Label": "Cursor Start ⌘←",
"Action": 11,
"Text": "0x01"
},
"0xf703-0x300000-0x7c": {
"Label": "Cursor End ⌘→",
"Action": 11,