This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mqtt: | |
host: tasks.hivemq-broker | |
cameras: | |
front_door: | |
ffmpeg: | |
inputs: | |
- path: rtsp://admin:4118nick@192.168.99.148:554/live | |
roles: | |
- detect | |
- rtmp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#select sub | |
Select-AzSubscription -Subscription 95a20cd8-ca92-4b1e-9d7a-f9ca650b8811 | |
# Name of the resource group that contains the VM | |
$rgName = 'AMS-prd' | |
# Choose between Standard_LRS, StandardSSD_LRS and Premium_LRS based on your scenario | |
$storageType = 'Premium_LRS' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(and 3 more similar warnings elsewhere) | |
Error: rpc error: code = Unavailable desc = transport is closing | |
Error: rpc error: code = Unavailable desc = transport is closing | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ansible -i /mnt/c/Users/nshores/Documents/repos/shoreslab/ansible/hosts.nshores swarm_nodes -m shell -a '/bin/bash -c " \ | |
(echo n; echo ""; echo ""; echo ""; echo w) | sudo fdisk /dev/sda && \ | |
sudo pvcreate /dev/sda4 && \ | |
sudo vgextend ubuntu-vg /dev/sda4 && \ | |
sudo lvextend -l +100%FREE /dev/mapper/ubuntu--vg-ubuntu--lv && \ | |
sudo resize2fs /dev/ubuntu-vg/ubuntu-lv"' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"lastUpload":"2021-01-04T23:00:09.140Z","extensionVersion":"v3.4.3"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- hosts: test | |
become: yes | |
#Is sudo actually needed? Only use it when needed. | |
become_method: sudo | |
#Use variables whenever possible. You can place them in the task, or in a outside file at the inventory level. | |
vars: | |
snmp_path: "/etc/snmp/snmpd_conf/snmpd.conf" | |
backup_path: "/etc/snmp/snmpd_conf/snmpd.conf.bak" | |
tasks: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- hosts: dunn-esxi:!*dc-esxihost-01* | |
vars: | |
#Set the source VIB file to copy, Source Location, and Destination Location | |
src_vib: NVIDIA-VMware-450.55-1OEM.670.0.0.8169922.x86_64.vib | |
src_location: ~/Downloads/NVIDIA-GRID-vSphere-6.7-450.55-450.51.05-451.48/ | |
dest_location: /tmp/ | |
tasks: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$Groups = (Get-AdGroup -filter * | Where {$_.name -like "**"} | select name -ExpandProperty name) | |
$Table = @() | |
$Record = @{ | |
"Group Name" = "" | |
"Name" = "" | |
"Username" = "" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
if pgrep -f "python3 patio_light_notify.py"; then | |
pid=$(pidof python3 patio_light_notify.py) | |
echo "pid of patio_light_notify:" $pid | |
echo "it is already running" | |
exit | |
else | |
echo "starting patio notify script" | |
cd /home/zoneminder/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pyzm.ZMMemory as zmmemory | |
import requests | |
import time | |
#set monitor id | |
mid = 6 | |
#HA Url | |
ha_webhook = 'http://slim-dev.local:8123/api/webhook/patio' |