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
# script taken from https://techcommunity.microsoft.com/t5/azure-database-support-blog/auto-scale-azure-sql-elastic-pools/ba-p/4011610 | |
param ( | |
[Parameter (Mandatory=$false)] | |
[object]$WebhookData | |
) | |
# Import the Az module | |
Import-Module Az.Sql | |
# If there is webhook data coming from an Azure Alert, go into the workflow. |
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/bash | |
function valid_ipv6() | |
{ | |
local regex='^([0-9a-fA-F]{0,4}:){1,7}[0-9a-fA-F]{0,4}$' | |
local var="$1" | |
if [[ $var =~ $regex ]]; then | |
echo 0 | |
else | |
echo 1 |
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
[Unit] | |
Description=Activate IPv6 | |
After=network-online.target | |
[Service] | |
Type=oneshot | |
ExecStart=/bin/sh /root/ipv6.sh | |
ExecStartPost=/usr/sbin/ping6 -c1 ipv6.google.com | |
[Install] |
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 | |
# | |
# Originally part of vpnc source code: | |
# © 2005-2012 Maurice Massar, Jörg Mayer, Antonio Borneo et al. | |
# © 2009-2012 David Woodhouse <dwmw2@infradead.org> | |
# | |
# This program is free software; you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation; either version 2 of the License, or | |
# (at your option) any later version. |
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
--- | |
driver: | |
name: opennebula | |
opennebula_endpoint: http://10.236.31.240/zone | |
oneauth_file: /tmp/auth | |
template_name: CHEF-TESTVM | |
vm_hostname: chef-testvm-001 | |
public_key_path: /root/.ssh/id_rsa.pub | |
username: local | |
memory: 4096 |