This script is really a fringe case. Use when you want to delete a range of build numbers and want to set the next number in the sequence.
This file contains hidden or 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
| # This Makefile is a modified version of the Makefile created by M.Peter (https://gist.github.com/mpneuried) | |
| # For the original, see: https://gist.github.com/mpneuried/0594963ad38e68917ef189b4e6a269db | |
| # To use this Makefile, you need to ensure that the following dependencies are met. | |
| # 1. You have a Dockerfile in the same directory as this Makefile. | |
| # 2. You update the `APP_NAME` variable to match the name of your application. | |
| # 3. You are running this in a Git repository. This is necessary to ensure that the correct version of the application is built. | |
| APP_NAME := app-name |
This file contains hidden or 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
| $AMI = "ami-56666777788889999" | |
| $params = @{ | |
| parameters = @( | |
| @{ | |
| name = '/AMI/RHEL8_AMI' | |
| value = $AMI | |
| } | |
| ) | |
| } |
This file contains hidden or 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
| <# | |
| .SYNOPSIS | |
| Demonstrates structured logging in PowerShell. | |
| .DESCRIPTION | |
| The PoShLog module provides a simple wrapper around Serilog; a well-known logger for .Net applications. | |
| For more details, see https://github.com/PoShLog/PoShLog/wiki/Getting-started. | |
| .NOTES | |
| Version: 1.0.0 | |
| Author: Derek Sudduth | |
| Creation Date: 2021-07-06 |
This file contains hidden or 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
| from aws_cdk import aws_cloudtrail as cloudtrail | |
| from aws_cdk import aws_events_targets as event_targets | |
| from aws_cdk import aws_lambda as lambda_ | |
| from aws_cdk import core | |
| class AlchemyStack(core.Stack): | |
| def __init__(self, scope: core.Construct, id: str, **kwargs) -> None: |
This file contains hidden or 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
| Netmask Netmask (binary) CIDR Notes | |
| _____________________________________________________________________________ | |
| 255.255.255.255 11111111.11111111.11111111.11111111 /32 Host (single addr) | |
| 255.255.255.254 11111111.11111111.11111111.11111110 /31 Unuseable | |
| 255.255.255.252 11111111.11111111.11111111.11111100 /30 2 useable | |
| 255.255.255.248 11111111.11111111.11111111.11111000 /29 6 useable | |
| 255.255.255.240 11111111.11111111.11111111.11110000 /28 14 useable | |
| 255.255.255.224 11111111.11111111.11111111.11100000 /27 30 useable | |
| 255.255.255.192 11111111.11111111.11111111.11000000 /26 62 useable | |
| 255.255.255.128 11111111.11111111.11111111.10000000 /25 126 useable |
This file contains hidden or 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
| # Replace <search-term> with the package prefix. | |
| pip freeze | grep <search-term> | xargs pip uninstall -y |
This file contains hidden or 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 | |
| # OSX Bootstrap | |
| # Note: to obtain logs, use the following when running this script. | |
| # command | tee -a "$log_file" | |
| set -e | |
| VERSION="1.0.0" | |
| HOMEBREW_INSTALLER_URL="https://raw.githubusercontent.com/Homebrew/install/master/install" |
This file contains hidden or 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 python | |
| """ | |
| This script compiles and installs Python3 on your CentOS server. | |
| Built based on the steps described by Digital Ocean (https://www.digitalocean.com/community/tutorials/how-to-set-up-python-2-7-6-and-3-3-3-on-centos-6-4) | |
| """ | |
| import os | |
| import subprocess |
This file contains hidden or 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
| Enable-PSRemoting | |
| $creds = Get-Credential | |
| Enter-PSSession -ComputerName [NAME] -Credentials $creds | |
| Invoke-Command -ComputerName [NAME] -Credentials $creds { get-UICulture } | |
| http://www.thecodeking.co.uk/2011/02/winrm-with-mixed-domain-environments.html | |
| http://technet.microsoft.com/en-us/library/hh849707.aspx |
NewerOlder