Skip to content

Instantly share code, notes, and snippets.

View joshfedo's full-sized avatar

Joshua fedoryszyn joshfedo

  • Binary Anvil
  • Missouri
View GitHub Profile
#!/bin/bash
# We don't need return codes for "$(command)", only stdout is needed.
# Allow `[[ -n "$(command)" ]]`, `func "$(command)"`, pipes, etc.
# shellcheck disable=SC2312
set -u
abort() {
printf "%s\n" "$@" >&2
@joshfedo
joshfedo / gist:aa18e9e1ef7e257d9cd9f8e7efad4742
Created October 31, 2024 15:24
PHPStrom Live Plugin - Magento 2 Warden log streamer
import com.intellij.execution.configurations.GeneralCommandLine
import com.intellij.openapi.project.ProjectManager
import javax.swing.*
import java.awt.*
import java.io.*
import static liveplugin.PluginUtil.show
import static liveplugin.PluginUtil.registerToolWindow
static JPanel createPanelWithLogButtons() {
def panel = new JPanel(new BorderLayout())
#!/usr/bin/env bash
source <(curl -s https://raw.githubusercontent.com/tteck/Proxmox/main/misc/build.func)
# Copyright (c) 2021-2024 tteck
# Author: tteck (tteckster)
# License: MIT
# https://github.com/tteck/Proxmox/raw/main/LICENSE
function header_info {
clear
cat <<"EOF"
blueprint:
name: ZHA - Aqara Wireless Mini Switch Matter
description: Automate your Xiaomi Aqara Wireless Mini Switch using ZHA events.
domain: automation
input:
aqara_mini_switch:
name: Aqara Wireless Mini Switch
description: Aqara Wireless Mini Switch to use
selector:
device: