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
#!/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 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
#!/bin/bash | |
# | |
# Ansible role test shim. | |
# | |
# Usage: [OPTIONS] ./tests/test.sh | |
# - distro: a supported Docker distro version (default = "centos7") | |
# - playbook: a playbook in the tests directory (default = "test.yml") | |
# - role_dir: the directory where the role exists (default = $PWD) | |
# - cleanup: whether to remove the Docker container (default = true) | |
# - container_id: the --name to set for the container (default = timestamp) |
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
#!/bin/bash | |
# | |
# Add a commit and push to origin for each 'geerlingguy.*'' Ansible role. | |
message="Remove sudo requirement from Travis build." | |
# Loop through all directories starting with "geerlingguy". | |
for dir in ./geerlingguy*/ | |
do | |
# cd into role directory. |
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
/*<?php | |
//*/public class PhpJava { public static void main(String[] args) { System.out.printf("/*%s", | |
//\u000A\u002F\u002A | |
class PhpJava { | |
static function main() { | |
echo(//\u000A\u002A\u002F | |
"Hello World!"); | |
}} | |
//\u000A\u002F\u002A | |
PhpJava::main(); |
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
#!/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. |
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
# In YAML, this... | |
something: | |
- { name: test.example } | |
# ...is the same as this: | |
something: | |
- name: test.example | |
# And this: | |
something: |
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
<?php | |
/** | |
* Acquia Cloud Site Factory Environment detection examples. | |
*/ | |
// This may require the ACSF module to be installed. | |
// @see https://www.drupal.org/project/acsf | |
$site settings = [ | |
'site' => '', | |
'env' => '', |
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
function locationreplace(a, b) { | |
currentLocation = window.location.href; | |
newLocation = currentLocation.toString().replace(a, b); | |
document.location.href = newLocation; | |
} | |
locationreplace('.org', '.org.etc.etc'); |
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
setInterval(function() { | |
jQuery('#message-input').val('ruby--'); | |
jQuery('#message-form').submit(); | |
jQuery('#message-input').val('game of shadows++'); | |
jQuery('#message-form').submit(); | |
}, 30 * 1000); |
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 ruby | |
# Get passed in arguments | |
projectName = ARGV[0] | |
drupalVersion = ARGV[1] | |
vmRepo = 'https://github.com/geerlingguy/drupal-vm.git' | |
baseDirectory = '/#{Dir.home}/Sites/' | |
vmDirectory = baseDirectory + projectName + '_vm/' |