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: localhost | |
connection: local | |
gather_facts: no | |
roles: | |
- name: gtk | |
tags: ['gtk'] | |
- name: gnome_shell |
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
# Create test VM with Vagrant. | |
mkdir testvm && cd testvm | |
vagrant init geerlingguy/ubuntu1804 | |
# (Edit created Vagrantfile and uncomment `config.vm.network "private_network"` line) | |
# Start the VM and log in. | |
vagrant up | |
vagrant ssh | |
# Flush iptables rules (allow access to any port). |
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: localhost | |
connection: local | |
gather_facts: false | |
vars: | |
# This should be set via the command line at runtime. | |
tag: '' | |
pre_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
#!/bin/bash | |
# | |
# Update things to be compatible with Molecule 3.0. | |
# | |
# This script is NOT idempotent, and should never be run again. | |
exit 1 | |
export LINT_STRING="lint: | | |
set -e | |
yamllint . |
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 | |
# Raspberry Pi stress CPU temperature measurement script. | |
# | |
# Download this script (e.g. with wget) and give it execute permissions (chmod +x). | |
# Then run it with ./pi-cpu-stress.sh | |
# | |
# NOTE: In recent years, I've switched to using s-tui. See: | |
# https://github.com/amanusk/s-tui?tab=readme-ov-file#options | |
# Variables. |
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 | |
# Gist: 11375877 | |
# Url: https://gist.github.com/goodevilgenius/11375877 | |
# | |
# All memcache functions are supported. | |
# | |
# Can also be sourced from other scripts, e.g. | |
# source membash.sh | |
# MCSERVER="localhost" |
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 | |
# | |
# Monitor overall Kubernetes cluster utilization and capacity. | |
# | |
# Original source: | |
# https://github.com/kubernetes/kubernetes/issues/17512#issuecomment-367212930 | |
# | |
# Tested with: | |
# - AWS EKS v1.11.5 | |
# |
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
# Note: Your base image should contain all the PHP extensions required by your project. | |
FROM my/base-drupal-container:latest | |
# Set the project machine name here. | |
ENV PROJECT my-blt-project | |
# Copy the deployment artifact into place. | |
COPY deploy/ /var/www/$PROJECT | |
# Copy the Drupal container settings file into place. |
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 | |
# | |
# BLT Deployment Artifact generator using a local Docker image. | |
# | |
# Source: https://gist.github.com/geerlingguy/85b816ed7aff378ea2700b82ebde81c8 | |
# | |
# This script should be run from within the BLT project directory root. If it is | |
# run elsewhere, the project_dir should be updated accordingly. | |
name="blt-artifactory" |
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 ansible-playbook -c local | |
# | |
# AWS STS token update playbook. | |
# | |
# Updating AWS session tokens with STS can be a pain. But MFA is good. So let's | |
# automate the management of the .aws/credentials file to make it not painful! | |
# | |
# Usage: | |
# | |
# 1. Save this to a file like /usr/local/bin/aws-sts-token |