Skip to content

Instantly share code, notes, and snippets.

View dlinsley's full-sized avatar

Daniel Linsley dlinsley

  • Broadcom - Tanzu
  • SMF
View GitHub Profile
@embano1
embano1 / README.md
Last active November 23, 2021 09:30
End-to-End Installation of VMware Event Router with kind

End-to-End Installation of VMware Event Router with kind

The following steps describe the installation of the VMware Event Router (also part of the VEBA project) in a local Kubernetes and Knative environment.

The steps assume a Mac OSX environment but the links provide resources to install the components for other platforms.

@avishayil
avishayil / route53.sh
Created October 14, 2018 17:00
Update Route53 Record With Machine IP Address
#!/bin/bash
# (optional) You might need to set your PATH variable at the top here
# depending on how you run this script
# PATH=PATH
# Hosted Zone ID e.g. BJBK35SKMM9OE
ZONEID="ZONEID"
# The CNAME you want to update e.g. hello.example.com
@mohanpedala
mohanpedala / bash_strict_mode.md
Last active June 29, 2024 04:08
set -e, -u, -o, -x pipefail explanation
<#
.SYNOPSIS
Creates an HTTP header using BASIC authentication for use with Invoke-WebRequest or Invoke-RestMethod.
.DESCRIPTION
PowerShell 5 and below does not support BASIC authentication with Invoke-WebRequest and Invoke-RestMethod.
This function will create a header in the format necessary to send BASIC authorization strings for HTTP
requests. The returned header defaults to a hashtable, but with the -AsJson switch, it will return
properly formatted JSON.
@magnetikonline
magnetikonline / README.md
Last active June 19, 2024 03:05
Add user ssh-agent as daemon to Ubuntu 18.04LTS server.

Add user ssh-agent as daemon to Ubuntu 18.04LTS server

Create a new systemd user unit, which starts ssh-agent upon login to server. Will remain resident until the final session for the user has logged out.

Steps

  • Create /etc/systemd/user/ssh-agent.service.

  • Run the following commands (under your user account, not root) to install the systemd unit and start:

@elton-alves
elton-alves / keytool-self-signed-certificate.md
Last active May 20, 2024 05:14
Self signed certificates with keytool
@LyleScott
LyleScott / rm_empty_s3_buckets.py
Created April 5, 2018 03:31
Find all S3 buckets that are empty and prompt to delete them
#!/usr/bin/env python3
"""
Lyle Scott, III // lyle@ls3.io
$ python3 rm_empty_s3_buckets.py --help
usage: rm_empty_s3_buckets.py [-h] [-p PROFILE]
optional arguments:
-h, --help show this help message and exit
-p PROFILE, --profile PROFILE
@steven2358
steven2358 / ffmpeg.md
Last active June 23, 2024 18:17
FFmpeg cheat sheet
@trisharia
trisharia / isHostCompatibleForVm.js
Last active November 20, 2017 22:24
Is HostSystem Compatible for a vCenter VM?
// VMware vRealize Orchestrator action sample
//
// Use VM-host compatibility checker, which is native to the vCenter plugin,
// to determine if a host is compatible with a given VM and resource pool
//
// For vRO 7.0+/vCenter 6.0+
//
// Action Inputs:
// host - VC:HostSystem - vCenter host
// vm - VC:VirtualMachine - vCenter VM
@breenie
breenie / glacier.sh
Last active February 2, 2018 05:01
AWS Glacier uploader
#!/bin/bash
#
# This script takes a path to a file and uploads it to Amazon
# Glacier. It does this in several steps:
#
# 1. Split the file up into 1MiB chunks.
# 2. Initiate a multipart upload.
# 3. Upload each part individually.
# 4. Calculate the file's tree hash and finish the upload.
#