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();
@suniltaneja
suniltaneja / macos-vbox.md
Created March 29, 2020 21:34 — forked from str8edgedave/macos-vbox.md
Auto-starting VirtualBox VMs on MacOS High Sierra

Auto-starting VirtualBox VMs on MacOS High Sierra

Updated May 21/2018

There are lots of different how-tos out there for automatically launching VMs using VirtualBox on MacOS. Most of them focus on older versions of VirtualBox or old versions of MacOS.

Tested using MacOS High Sierra 10.13.4 running VirtualBox 5.2.12. The guest OS is Fedora 28.

Following the instructions on the VirtualBox website (https://www.virtualbox.org/manual/ch09.html#autostart), copy the Virtualbox autostart plist template file to your system's LaunchDaemons folder.

david$ sudo cp \

@suniltaneja
suniltaneja / ESP32SIM800LSMSRelay.ino
Created January 26, 2020 06:03 — forked from IdrisCytron/ESP32SIM800LSMSRelay.ino
Send and receive SMS using TTGO ESP32 SIM800L
/*
Tutorial: Control servo movement with gesture using ESP32 and Arduino
Board:
- TTGO T-Call ESP32 with SIM800L GPRS Module
https://my.cytron.io/p-ttgo-t-call-esp32-with-sim800l-gprs-module
Output:
- 1CH Active H/L 5V OptoCoupler Relay Module
https://my.cytron.io/c-electronic-components/c-relays/p-1ch-active-h-l-5v-optocoupler-relay-module
@suniltaneja
suniltaneja / MQTT_ESP8266_temperature_humidity.ino
Created January 9, 2020 21:30 — forked from balloob/MQTT_ESP8266_temperature_humidity.ino
Sketch for the ESP8266 to publish temperature and humidity values received from a DHT22 to MQTT
// Get ESP8266 going with Arduino IDE
// - https://github.com/esp8266/Arduino#installing-with-boards-manager
// Required libraries (sketch -> include library -> manage libraries)
// - PubSubClient by Nick ‘O Leary
// - DHT sensor library by Adafruit
#include <ESP8266WiFi.h>
#include <PubSubClient.h>
#include <DHT.h>
@suniltaneja
suniltaneja / WARNING.md
Created June 15, 2019 01:42 — forked from Ambroos/WARNING.md
Remove SentinelOne agent from Mac. Because honestly, it doesn't seem to do anything at all. Run as root, best is to do this from a recovery mode, single user mode with writeable filesystem, ...

USE AT OWN RISK

This was only tested on a partial SentinelOne installation on the High Sierra beta, where SentinelOne was never allowed to enable it's kernel extension.

@suniltaneja
suniltaneja / gist:db7fb2d8108d51b6ac2c4f9d7a6cafce
Created June 11, 2019 16:03 — forked from 480/gist:3b41f449686a089f34edb45d00672f28
MacOS X + oh my zsh + powerline fonts + visual studio code terminal settings
1. Install oh my zsh
http://ohmyz.sh/
$ sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
1. Install powerline fonts
https://github.com/powerline/fonts
1. download agnoster theme
https://github.com/mbadolato/iTerm2-Color-Schemes/zipball/master