View enable-workloadmanagement.ps1
This file contains 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
$Modules = Get-Module -ListAvailable | |
if ($Modules.name -notcontains "VMware.PowerCLI") { | |
Install-Module VMware.PowerCLI -Confirm:$False | |
} | |
if ($Modules.name -notcontains "VMware.WorkloadManagement") { | |
Install-Module VMware.WorkloadManagement -Confirm:$False | |
} |
View disk-tests.sh
This file contains 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
============================================================================================================================================= | |
BEFORE | |
============================================================================================================================================= | |
root@k8s-master-01:/home/carldanley# fio --rw=write --ioengine=sync --fdatasync=1 --directory=test-data --size=22m --bs=2300 --name=mytest | |
mytest: (g=0): rw=write, bs=(R) 2300B-2300B, (W) 2300B-2300B, (T) 2300B-2300B, ioengine=sync, iodepth=1 | |
fio-3.1 | |
Starting 1 process | |
mytest: Laying out IO file (1 file / 22MiB) |
View f5-proxy-protocol.txt
This file contains 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
when CLIENT_ACCEPTED { | |
set proxyheader "PROXY TCP[IP::version] [IP::remote_addr] [IP::local_addr] [TCP::remote_port] [TCP::local_port]\r\n" | |
} | |
when SERVER_CONNECTED { | |
TCP::respond $proxyheader | |
} |
View ingress.yaml
This file contains 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
apiVersion: extensions/v1beta1 | |
kind: Ingress | |
metadata: | |
name: hello-world | |
namespace: sfkm | |
annotations: | |
kubernetes.io/ingress.class: "nginx" | |
kubernetes.io/tls-acme: "true" | |
labels: | |
app: hello-world |
View migrations-001.js
This file contains 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
// external dependencies | |
const bPromise = require('bluebird'); | |
// logic | |
exports.up = function(db, types) { | |
return db.sequelize.transaction(bPromise.coroutine(function* (t) { | |
yield db.createTable('listings', { | |
id: { |
View configs.txt
This file contains 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
clusters: | |
- name: tbxaccounts | |
cluster: | |
server: https://some.auth.service/webhook-authn?cluster=kube-prod | |
users: | |
- name: apiserver | |
current-context: webhook | |
contexts: |
View Vagrantfile
This file contains 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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
require 'yaml' | |
ANSIBLE_PATH = '.' # path targeting Ansible directory (relative to Vagrantfile) | |
# Set Ansible roles_path relative to Ansible directory | |
ENV['ANSIBLE_ROLES_PATH'] = File.join(ANSIBLE_PATH, 'vendor', 'roles') |
View bash.sh
This file contains 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
# adds all keys in the ~/.ssh folder | |
function add_ssh_keys { | |
for i in `find ~/.ssh -name '*.pub' | sed 's/.\{4\}$//'`; | |
do ssh-add $i; | |
done | |
} | |
SSH_ENV=$HOME/.ssh/environment | |
function start_agent { |
View bookmarklet.js
This file contains 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
( function() { | |
function highlightSchedule( tableIndex, scheduleValues ) { | |
var tables = document.querySelectorAll( 'table.schedule' ); | |
if( tableIndex >= tables.length ) { | |
return; | |
} | |
var table = tables[ tableIndex ]; | |
var rows = table.querySelectorAll( 'tr' ); | |
for( var i = 0, len = scheduleValues.length; i < len; i++ ) { |
View wp-modules.js
This file contains 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
// new modules object introduction | |
( function( window, undefined ) { | |
window.wp = window.wp || {}; | |
window.wp.modules = window.wp.modules || {}; | |
} )( window ); | |
// example Mediator module | |
wp.modules.Mediator = ( function( window, undefined ) { |
NewerOlder