-
Create an empty file to prevent the service from starting
sudo touch /etc/cloud/cloud-init.disabled
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
[CmdletBinding(SupportsShouldProcess,DefaultParameterSetName='[INSERT]')] | |
Param ( | |
[Parameter(ParameterSetName='Devices')] | |
$Devices, | |
[string[]]$Items = 'All', | |
[uint16]$MaxThreads = 20, | |
[uint16]$SleepTimer = 500, | |
[uint16]$MaxWaitAtEnd = 600, |
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
[CmdletBinding(SupportsShouldProcess)] | |
param ( | |
[string]$Path | |
) | |
if (Test-Path -Path $Path) { | |
$Tokens = [System.Management.Automation.PSParser]::Tokenize((Get-Content -Path $Path),[ref]$null) | |
} | |
$StartLines = $Tokens | Where-Object {$_.Type -eq 'Keyword' -and $_.Content -ilike 'function'} | Select -ExpandProperty StartLine |
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
#Requires -Version 3.0 | |
# Configure a Windows host for remote management with Ansible | |
# ----------------------------------------------------------- | |
# | |
# This script checks the current WinRM (PS Remoting) configuration and makes | |
# the necessary changes to allow Ansible to connect, authenticate and | |
# execute PowerShell commands. | |
# | |
# All events are logged to the Windows EventLog, useful for unattended runs. |
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
ComputerName | |
OnlineStatus | |
WSManStatus (i.e. Powershell Remoting) | |
IPAddress | |
FQDN | |
PTR | |
SysInfo: | |
RAM | |
Manufacturer | |
Model |
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
[Allow colord for all users] | |
Identity=unix-user:* | |
Action=org.freedesktop.color-manager.create-device;org.freedesktop.color-manager.create-profile;org.freedesktop.color-manager.delete-device;org.freedesktop.color-manager.delete-profile;org.freedesktop.color-manager.modify-device;org.freedesktop.color-manager.modify-profile;org.freedesktop.packagekit.system-sources-refresh | |
ResultAny=yes | |
ResultInactive=yes | |
ResultActive=yes |
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 -e | |
# | |
# 98-vpn - Automatically bring up VPN on listed WiFi UUIDs | |
# | |
# Copyright (c) 2019 Preston Kutzner <pkutzner at gmail dot com> | |
# | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License (GPL) as published | |
# by the Free Software Foundation (FSF), either version 3 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
#!/usr/bin/env bash | |
#set -x | |
#trap read debug | |
URL="_cloud-netblocks.googleusercontent.com" | |
get_ranges() { | |
local includes=($(host -t TXT "$1"| egrep -o "include:_cloud-[^ ]*" | cut -d':' -f2)) | |
local ranges=($(host -t TXT "$1" | egrep -o "ip4:((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?/([0-9]?[1-3][0-9]))" | cut -d':' -f2)) |
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
198.20.69.74 | |
198.20.69.98 | |
198.20.70.114 | |
198.20.99.130 | |
93.120.27.62 | |
66.240.236.119 | |
71.6.135.131 | |
66.240.192.138 | |
71.6.167.142 | |
82.221.105.6 |
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 - | |
#=============================================================================== | |
# | |
# FILE: csb_updated.sh | |
# | |
# USAGE: ./csb_updated.sh | |
# | |
# DESCRIPTION: Updated version of Client SQL Backup (csb) script. | |
# | |
# OPTIONS: --- |
NewerOlder