| layout | post | ||
|---|---|---|---|
| title | clamav - install and configure on mac osx | ||
| published | true | ||
| tags |
|
Install clamav via homebrew
| 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'). |
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
| #!/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/) |
| 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 = [] |