Skip to content

Instantly share code, notes, and snippets.

@suniltaneja
suniltaneja / clamav-macosx.md
Last active February 25, 2025 18:12 — forked from DerFichtl/clamav-macosx.md
clamav on mac osx - install and configure the virus scanner on mac osx
layout post
title clamav - install and configure on mac osx
published true
tags
blog
clamav

Install Clamav

Install clamav via homebrew

@suniltaneja
suniltaneja / low-battery-level-detection-notification-for-all-battery-sensors.yaml
Created November 13, 2024 14:31 — 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').
@suniltaneja
suniltaneja / zsh-keyboard-shortucts.md
Created September 18, 2024 18:31 — forked from mkfares/zsh-keyboard-shortucts.md
Common zsh Keyboard Shortcuts on macOS Catalina

Common zsh Keyboard Shortcuts on macOS

Navigation

CTRL + A : Move the cursor to the beginning of the line
CTRL + E : Move the cursor to the end of the line
OPTION + Left Arrow : Move the cursor one word backward
OPTION + Right arrow : Move the cursor one word forward
Left Arrow : Move the cursor one character backward
Right Arrow : Move the cursor one character forward

@suniltaneja
suniltaneja / install-AzCopy.sh
Created August 22, 2023 14:16 — forked from aessing/install-AzCopy.sh
Install AzCopy on Linux
#!/bin/bash
# =============================================================================
# Install AzCopy on Linux
# https://docs.microsoft.com/en-us/azure/storage/common/storage-use-azcopy-v10
# https://github.com/Azure/azure-storage-azcopy
# -----------------------------------------------------------------------------
# Developer.......: Andre Essing (https://www.andre-essing.de/)
# (https://github.com/aessing)
# (https://twitter.com/aessing)
# (https://www.linkedin.com/in/aessing/)
@suniltaneja
suniltaneja / powerOutage.cpp
Created February 10, 2023 19:59 — forked from krdarrah/powerOutage.cpp
Particle Boron Power Outage Detector
String str1,str2;
bool onUSB = false;
bool onBattery = false;
bool lowBattery = false;
unsigned long pwrCheckTimeStart;//to check power every 10sec
void setup() {
// INITIAL POWER CHECK
int powerSource = System.powerSource();
// Menu: Shortcut Run
// Description: Shortcut runner for Mac OSX Monterey
// Author: Sunil Taneja
// Twitter: @suniltaneja
import "@johnlindquist/kit"
const list = await exec(`shortcuts list`)
const list_arr = list.stdout.split("\n")
const shortcut = await arg("Enter Shortcut", list_arr)
await $`/usr/bin/shortcuts run ${shortcut}`
// Menu: Shortcut Run
// Description: Shortcut runner for Mac OSX Monterey
// Author: Sunil Taneja
// Twitter: @suniltaneja
import "@johnlindquist/kit"
const list = await exec(`shortcuts list`)
const list_arr = list.stdout.split("\n")
const shortcut = await arg("Enter Shortcut", list_arr)
await $`/usr/bin/shortcuts run ${shortcut}`
// Menu: Shortcut Run
// Description: Shortcut runner for Mac OSX Monterey
// Author: Sunil Taneja
// Twitter: @suniltaneja
import "@johnlindquist/kit"
const list = await exec(`shortcuts list`)
const list_arr = list.stdout.split("\n")
const shortcut = await arg("Enter Shortcut", list_arr)
await $`/usr/bin/shortcuts run ${shortcut}`
import "@johnlindquist/kit";
// Menu: Stock Quotes
// Description: Get realtime stock or etf quotes
// Author: Sunil Taneja
// Twitter: @suniltaneja
let stocks_array = ['AAPL', 'GOOG', 'MSFT', 'TSM', 'NVDA']
let stocks_data = []
import "@johnlindquist/kit";
// Menu: Stock Quotes
// Description: Get realtime stock or etf quotes
// Author: Sunil Taneja
// Twitter: @suniltaneja
let stocks_array = ['AAPL', 'GOOG', 'MSFT', 'TSM', 'NVDA']
let stocks_data = []