Skip to content

Instantly share code, notes, and snippets.

View stevenfollis's full-sized avatar

Steven Follis stevenfollis

View GitHub Profile
@stevenfollis
stevenfollis / docker-enterprise-3-0-manual-install.sh
Last active June 17, 2020 10:35
Manually install Docker Enterprise with the Azure CLI
#!/bin/sh
# Manually setup a Docker Enterprise Cluster
# in Azure using the Azure CLI
# ================================
# Azure Variables
# ================================
CLUSTER_NAME='follis-cluster' # Used as the base name for Azure Resource Groups
AZ_LOCATION='eastus2'
@stevenfollis
stevenfollis / ohmyzsh-dropbox-sync.sh
Last active April 3, 2020 13:29 — forked from robbyrussell/ohmyzsh-dropbox-sync.sh
Keep your @ohmyzsh ~/.zshrc in sync via OneDrive
# Was asked how I keep my zshrc config sync'd between my computers with OneDrive
# Add a new directory in your OneDrive (or use an existing one)
mkdir -p ~/OneDrive/ohmyzsh
# move existing file to Dropbox
mv ~/.zshrc ~/OneDrive/ohmyzsh/zshrc
# symlink file back to your local directory
ln -s /mnt/c/Users/steve/OneDrive/ohmyzsh/zshrc ~/.zshrc
@stevenfollis
stevenfollis / profiles.json
Created June 27, 2019 13:16
Windows Terminal Panda Syntax Theme
{
...
"schemes" :
[
...
{
"background" : "#292A2B",
"black" : "#292A2B",
"blue" : "#45A9F9",
"brightBlack" : "#002B36",
@stevenfollis
stevenfollis / 1. Distribute Credential Spec File
Last active December 1, 2018 13:23
Docker Compose files to distribute and delete gMSA Cred Spec files across a Swarm Cluster
# Distribute a Credential Spec file to all Windows Server cluster nodes
# gmsa.json by default, else set $env:CREDSPEC with filename
version: '3.3'
configs:
credspec:
file: ${ProgramData}/Docker/CredentialSpecs/${CREDSPEC:-gmsa.json}
services:
copy:
command: cmd /c copy credspec C:\\out\\${CREDSPEC:-gmsa.json}
configs:
@stevenfollis
stevenfollis / boxstarter.ps1
Last active December 2, 2017 17:29 — forked from jessfraz/boxstarter.ps1
Boxstarter Commands for a new Windows box.
# Description: Boxstarter Script
# Author: Jess Frazelle <jess@linux.com>
# Last Updated: 2017-09-11
#
# Install boxstarter:
# . { iwr -useb http://boxstarter.org/bootstrapper.ps1 } | iex; get-boxstarter -Force
#
# You might need to set: Set-ExecutionPolicy RemoteSigned
#
# Run this boxstarter by calling the following from an **elevated** command-prompt:
# Create directory to hold module files
mkdir -Force C:\DSC
#=================================
# Install xPendingReboot Module
# https://github.com/PowerShell/xPendingReboot
#=================================
# Download xPendingReboot
Invoke-WebRequest `
-UseBasicParsing `
#########################################################
#
# Name: ImportTestUsers.ps1
# Author: Israel Vega (Adjusted for JSON by Steven Follis)
# Version: 1.0
# Date: 06/08/2011
# Comment: Create test users from a JSON array for import into an AD
#
#########################################################
# https://docs.docker.com/engine/installation/windows/docker-ee/#install-docker-ee
<# Usage
Invoke-WebRequest `
-UseBasicParsing `
-OutFile C:\install-docker-ee.ps1 `
-Uri https://gist.githubusercontent.com/stevenfollis/91d2b64b07a3c2110f879727761fbf1f/raw/install-docker-ee.ps1
C:\install-docker-ee.ps1

Keybase proof

I hereby claim:

  • I am stevenfollis on github.
  • I am stevenfollis (https://keybase.io/stevenfollis) on keybase.
  • I have a public key ASA9MxEDFrTKbVpehiiKM6ChYD1niUX7-QGa9m9rgbTywwo

To claim this, I am signing this object:

@stevenfollis
stevenfollis / SP2013-AppPart-Iframe-Resizer
Created August 20, 2014 15:39
SP2013 Resize AppPart iFrames from host page with jQuery
// select and loop through all iframes inside of webparts
$('.ms-WPBody iframe').each(function(i, frame) {
// define a variable to hold the new width
var newWidth;
// starting with the iframe, search up the DOM for the closest webpart zone
// then find its width and store it
newWidth = $(frame).closest('.ms-webpart-zone').width();