TODO.
Metadata
#!/bin/bash | |
# Bash function to append contents of a given text file to an output file. | |
file_compile() { | |
file=$1 | |
filename=$(basename "$file") | |
output_file="txt-file-output.txt" | |
printf "Adding contents of: $filename\n" |
#!/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 | |
# |
# Run this playbook with ansible-playbook -i inventory setup.yml | |
# In the inventory file, create a group named [rpi] with all the Pis in it | |
--- | |
- hosts: rpi | |
become: true | |
vars: | |
lcd_library_repo: 'https://github.com/geerlingguy/SKU_RM0004.git' | |
lcd_library_version: 'jeff-custom' |
#!/bin/bash | |
# | |
# Batch Time-Lapse creation script. | |
# | |
# This script can be used to speed up, trim, and finally concatenate tens or | |
# even hundreds of video clips, e.g. from a dash cam. You can do other things, | |
# too, but the main things this script does include: | |
# | |
# 1. Copy across and speed up video clips from an input dir to an output dir. | |
# 2. Trim off the first x frames of each of the copied/sped up clips. |
--- | |
- hosts: localhost | |
connection: local | |
gather_facts: no | |
roles: | |
- name: gtk | |
tags: ['gtk'] | |
- name: gnome_shell |
# 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. |
#!/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" |
#!/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 |
<?php | |
/** | |
* Check if the given user agent string is one of a crawler, spider, or bot. | |
* | |
* @param string $user_agent | |
* A user agent string (e.g. Googlebot/2.1 (+http://www.google.com/bot.html)) | |
* | |
* @return bool | |
* TRUE if the user agent is a bot, FALSE if not. |