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 php | |
| <?php | |
| /** | |
| * A very simple and basic utility that can be used to pipe phpmd errors and format | |
| * in a cleaner way. This suits MY requirements and you will probably want line numbers | |
| * etc so edit as you see fit. | |
| * | |
| * Example use: | |
| * vendor/bin/phpmd ./src xml ./ruleset.xml | bin/phpmd-pretty |
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 | |
| # A simple bash script which will generate 2 csv files; database sizes and | |
| # table sizes for all databases. | |
| # | |
| # This does use performance_schema so ya know... take it with a pinch of salt. | |
| CLUSTER_HOST=$1 | |
| CLUSTER_PORT=3306 | |
| CLUSTER_REF=$2 |
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 | |
| include('vendor/autoload.php'); | |
| $sprint = $argv[1]; | |
| $email = ''; | |
| $token = ''; | |
| $domain = ''; | |
| $project = ''; | |
| $type = ''; |
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 | |
| ########################################################################### | |
| # | |
| # Very very rough script! Does not work well! | |
| # | |
| # Will monitor a slack channel (has to be public unless you give it special | |
| # permissions) for a specific user and if there is a message in the last 30 | |
| # seconds will play a sound file of your choosing. Obviously not great | |
| # for conversational channels. | |
| # |
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 | |
| PREFIX=$1 | |
| DRY_RUN=$2 | |
| REGION=$3 | |
| echo "Starting the purge of queues that have the prefix of ${PREFIX}" | |
| # Get the list of queues with the $ PREFIX and store as a block of json | |
| QUEUES=$(aws sqs list-queues --region "${REGION}" --queue-name-prefix=${PREFIX} | jq '.QueueUrls') | |
| echo $QUEUES > /tmp/queues.json |
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 | |
| /** | |
| * This fairly basic script will connect to a MySQL database and check all timestamp fields | |
| * for zero time values. It will log the results to the console. | |
| * | |
| * The purpose of this is to highlight fields that should be a DATE field instead of a | |
| * DATETIME field. | |
| * | |
| * usage: |
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 | |
| # Dump full CodeDeploy deployment + target history for an application (every target on every | |
| # deployment, not just failures), to figure out whether failures cluster on specific instances | |
| # or are randomly distributed. | |
| # | |
| # Usage: ./codedeploy-history.sh <application-name> [deployment-group-name] [max-deployments] | |
| # Example: ./codedeploy-history.sh example_name "" 200 | |
| # | |
| # Output will include each codedeploy and the reason it failed (based on first failure from the | |
| # instances), for each instance percentage of failure(if your doing in place) along with first |
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 | |
| set -euo pipefail | |
| ############################################################################### | |
| # | |
| # A simple shell script that will compare an aws secret' current and previous | |
| # version and then print a) what has been added, b) what has been removed and | |
| # c) what has changed. | |
| # | |
| # Notes: |
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
| (() => { | |
| const COUNT = 60; | |
| const layer = document.createElement('div'); | |
| layer.style.cssText = | |
| 'position:fixed;inset:0;pointer-events:none;overflow:hidden;z-index:2147483647'; | |
| document.body.appendChild(layer); | |
| const style = document.createElement('style'); | |
| style.textContent = ` | |
| @keyframes poop-fall { |
OlderNewer