Skip to content

Instantly share code, notes, and snippets.

View install-config.yaml
apiVersion: v1
baseDomain: skytap.ninja #Change this to match your domain
compute:
- hyperthreading: Enabled
name: worker
replicas: 0
controlPlane:
hyperthreading: Enabled
name: master
replicas: 3
@johnybradshaw
johnybradshaw / AzureLogCreator.py
Created Dec 27, 2019
Simple python script to create a log source configured to work with Skytap audit logs (courtesy Ken Reycraft)
View AzureLogCreator.py
import json
import requests
import datetime
import hashlib
import hmac
import base64
# Update the customer ID to your Log Analytics workspace ID
customer_id = 'XXXXXXXXXXXXXXXXXX'
@johnybradshaw
johnybradshaw / SkytapLogCollectorOnAzure.json
Created Dec 27, 2019
An Azure Log Analytics data collector function app
View SkytapLogCollectorOnAzure.json
{
"definition": {
"$schema": "https://schema.management.azure.com/providers/Microsoft.Logic/schemas/2016-06-01/workflowdefinition.json#",
"actions": {
"For_each": {
"actions": {
"Send_Data": {
"inputs": {
"body": "@{items('For_each')}",
"headers": {
View main.tf
provider "skytap" {
username = "username"
api_token = ""
}
# Create a new environment
resource "skytap_environment" "two_lpar" {
template_id = "1498907"
name = "Two Node LPAR environment"
description = "Two deployed AIX LPARs with an iSCSI network"
View keybase.md

Keybase proof

I hereby claim:

  • I am johnybradshaw on github.
  • I am johnybradshaw (https://keybase.io/johnybradshaw) on keybase.
  • I have a public key ASCTwQLHtu-eKfSoQSblIvKyoDvsMuQenCi42pJB_lvaNQo

To claim this, I am signing this object:

@johnybradshaw
johnybradshaw / ocp_builder.sh
Last active Dec 27, 2019
OpenShift Cluster Platform 4 - 3 master nodes, 3 worker nodes, network building script to be run on the Networking host
View ocp_builder.sh
#!/bin/bash
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root"
exit 1
fi
#############################
#
# OCP4 on Skytap Builder
#
#############################
@johnybradshaw
johnybradshaw / main.tf
Created Feb 4, 2019
Building two AIX 7.2 LPARs in Skytap using Terraform
View main.tf
provider "skytap" {
username = "${var.skytap_username}"
api_token = "${var.skytap_api_token}"
}
# Create a new environment
resource "skytap_environment" "two_lpar" {
template_id = "1498907"
name = "Two Node LPAR environment"
description = "Two deployed AIX LPARs with an iSCSI network"
@johnybradshaw
johnybradshaw / dropboxpowershell-installer.ps1
Last active Mar 9, 2017
This will install a version of Dropbox on a Windows OS that has Powershell support
View dropboxpowershell-installer.ps1
#Dropbox Powershell installer
#Version 3.2
#Download and install the latest version of Dropbox for the purposes of Enterprise deployment
$source = 'C:\source' #Change this to a download directory of your choosing
$arguments = '/s' #Change /s to /NOLAUNCH to prevent client start
#Check to see if the user has the Administrator role on the machine, if not die
If (-NOT ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole(`
[Security.Principal.WindowsBuiltInRole] "Administrator"))
View plantronics.sh
#!/bin/bash
/Applications/audiodevice input "Plantronics Savi 7xx"
/Applications/audiodevice output "Plantronics Savi 7xx"
View audioswitcher.plist
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>plantronics</string>
<key>LaunchEvents</key>
<dict>
<key>com.apple.iokit.matching</key>
<dict>
You can’t perform that action at this time.