I hereby claim:
- I am nfarrington on github.
- I am nfarrington (https://keybase.io/nfarrington) on keybase.
- I have a public key ASDLEx6aZ1EXX3zpSjF7OBkeIQnqrillP74nGypGO3HttQo
To claim this, I am signing this object:
#!/bin/bash | |
# MacOS bash script to enable/disable an SSH SOCKS proxy on port 1080 | |
# | |
# Usage: ./sshsocks <hostname> | |
# | |
set -e | |
disable_proxy() |
#!/bin/bash | |
# An updated memory plugin to use MemAvailable rather than MemFree | |
# TODO: Error check for kernel version (check MemAvailable is available in /proc/meminfo) | |
# TODO: Add swap checks | |
# TODO: Improve rounding | |
command -v bc > /dev/null 2>&1 || { | |
echo "UNKNOWN - Missing Command: bc" |
I hereby claim:
To claim this, I am signing this object:
#!/bin/bash | |
### DEFAULT ARGUMENTS ### | |
ARGS=() | |
VAGRANT_ARGS=() | |
DEBUG=false | |
USAGE=" | |
Usage: $0 [OPTIONS] [VAGRANT_COMMAND] [VAGRANT_BOX]... |
<?php | |
// For laravel 5 based systems | |
// /path/to/project/app/Console/Commands/AllowSSHFromIP.php | |
namespace App\Console\Commands; | |
use Aws\Ec2\Ec2Client; | |
use Carbon\Carbon; | |
use Illuminate\Console\Command; |
#!/bin/bash | |
# A basic healthcheck to determine when a URL is unavailable, and for how long. | |
[ -z "$1" ] && { echo "You must specify the URL to check" >&2; exit 1; } | |
URL="$1" | |
SLEEP="1" | |
CURL_CONNECT_TIMEOUT="1" |
The following is a semi-automated (or semi-manual, if you're a glass-half-empty person) way of generating terraform state mv
commands to move existing resources to new paths.
It does not use a Terraform plan file, as this is often not conveniently available (e.g. when using Terraform Cloud).
Tested with Terraform 0.12, 0.13 and 0.14 output.
Note: if you're not using Terraform Cloud, you might want to try some of the proper tooling other people have built, such as https://github.com/mbode/terraform-state-mover.
#!/bin/sh | |
set -e | |
# Docker CE for Linux installation script | |
# | |
# See https://docs.docker.com/engine/install/ for the installation steps. | |
# | |
# This script is meant for quick & easy install via: | |
# $ curl -fsSL https://get.docker.com -o get-docker.sh | |
# $ sh get-docker.sh | |
# |