- command line values (for example, -u my_user, these are not variables)
- role defaults (defined in role/defaults/main.yml)
- inventory file or script group vars
- inventory group_vars/all
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 | |
# ============================================================================= | |
# 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/) |
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
# N.B. The only tool missing here that is mentioned in the document is `zenmap` | |
# purely because this image is intended to be run via a CLI and `zenmap` is a GUI | |
# to `nmap` i.e. one can play around with the tools by running: | |
# | |
# $ docker build --name bite_size_networking:latest . | |
# $ docker run --rm -d --name bsn_test bite_size_networking:latest | |
# $ docker exec -it bsn_test bash | |
# | |
# Alternatively, one can change the `ENTRYPOINT` to `["bash"]` and run: | |
# |
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
umask 022 | |
export PATH=~/bin:`echo $PATH | sed 's|:/bin:|&/opscode/chefdk/bin:/mnt/c/Users/Sean/AppData/Local/chefdk/gem/ruby/2.4.0/bin:/opscode/chefdk/embedded/bin:|'` |
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
#https://vanessa.louwagie.io/2017/09/08/automated-teamcity-build-agent-install-for-windows-server/ | |
#Agent requires Java to be installed, and have the java bin directory exist in the path directory. | |
Param( | |
#The parent installation directory. Will create [$NumberOfBuildAgents] directories, one for each build agent. | |
[Parameter(Mandatory=$true)] | |
$InstallationDiskDrive = "C:\", | |
#The path to the Java Runtime Environment which the build agent runs on top of. | |
[Parameter(Mandatory=$true)] | |
$JavaPath = "C:\JRE", |
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
################## | |
### config.yml ### | |
################## | |
version: 2 | |
jobs: | |
build: | |
docker: | |
- image: circleci/python:3.6 | |
steps: |
I work as a full-stack developer at work. We are a Windows & Azure shop, so we are using Windows as our development platform, hence this customization.
For my console needs, I am using Cmder which is based on ConEmu with PowerShell as my shell of choice.
Yes, yes, I know nowadays you can use the Linux subsystem on Windows 10 which allow you to run Ubuntu on Windows. If you are looking for customization of the Ubuntu bash shell, check out this article by Scott Hanselman.
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
resource_name :email_alias | |
property :address | |
property :recipients, Array | |
default_action :create | |
action :create do | |
with_run_context :root do |
This has been moved into the official Chef docs:
https://docs.chef.io/custom_resources_notes.html
This is by far the most recommended way of writing resources for all users. There are two gotchas which we're working through:
- For helper functions that you used to write in your provider code or used to mixin to your provider code, you have to use an
action_class do ... end
block.
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
# Installing ScyllaDB cluster in AWS with RAID0 array | |
# Prerequisites: | |
# - CentOS 7 (x86_64) with Updates HVM (available on AWS Marketplace) | |
# - Instance type with 2 hard drives for RAID0 array | |
SEED="10.0.0.11" | |
CLUSTER_NAME="Scylla Cluster" | |
PRIVATE_IP=$(curl -s http://169.254.169.254/latest/meta-data/local-ipv4) | |
######### Create RAID0 Array ############ |
NewerOlder