This file contains hidden or 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
#!/usr/bin/env bash | |
#: Title : vmnet-shark | |
#: Date : 2015-09-30 | |
#: Author : Marc Weisel | |
#: Version : 1.0 | |
#: Description : Wireshark real-time packet capture and display for VMware Fusion vmnets | |
## Function definitions | |
usage() | |
{ |
This file contains hidden or 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
#!/usr/bin/env ANSIBLE_HOSTS="localhost," ANSIBLE_CONNECTION=local ansible-playbook -v $@ | |
# You need to have cloned kraken and then cd into the ansible dir | |
# vim:ft=yaml | |
--- | |
- name: install kraken | |
hosts: localhost | |
roles: | |
- kraken-local |
This file contains hidden or 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
yazz@kraken:~/kraken/ansible$ ansible-playbook --connection=local kraken-local-apply.as --sudo --ask-sudo-pass | |
SUDO password: | |
PLAY [apply kraken locally] **************************************************** | |
TASK [setup] ******************************************************************* | |
ok: [localhost] | |
TASK [kraken-local : Figure out localhost Operating System"] ******************* | |
ok: [localhost] |
This file contains hidden or 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
cores_nodes: | |
- { serial: "2M251101N6", hostname: "sl2500-01-node01" } | |
- { serial: "2M251101N7", hostname: "sl2500-01-node02" } |
This file contains hidden or 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
#!/bin/bash | |
# A simple script to backup an organization's GitHub repositories. | |
# NOTE: if you have more than 100 repositories, you'll need to step thru the list of repos | |
# returned by GitHub one page at a time, as described at https://gist.github.com/darktim/5582423 | |
GHBU_BACKUP_DIR=${GHBU_BACKUP_DIR-"github-backups"} # where to place the backup files | |
GHBU_ORG=${GHBU_ORG-"<CHANGE-ME>"} # the GitHub organization whose repos will be backed up | |
# (if you're backing up a user's repos instead, this should be your GitHub username) | |
GHBU_UNAME=${GHBU_UNAME-"<CHANGE-ME>"} # the username of a GitHub account (to use with the GitHub API) |
This file contains hidden or 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
#!/bin/bash | |
# Returns the IP address of a running KVM guest VM | |
# Assumes a working KVM/libvirt environment | |
# | |
# Install: | |
# Add this bash function to your ~/.bashrc and `source ~/.bashrc`. | |
# Usage: | |
# $ virt-addr vm-name | |
# 192.0.2.16 | |
# |
This file contains hidden or 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
yazz@kraken:~/kraken/terraform/local$ vagrant global-status | |
id name provider state directory | |
--------------------------------------------------------------------------------- | |
a86df0f etcd virtualbox running /opt/kraken/terraform/local | |
52be29e master virtualbox running /opt/kraken/terraform/local | |
900bed6 apiserver-001 virtualbox running /opt/kraken/terraform/local | |
a4d7427 node-001 virtualbox running /opt/kraken/terraform/local | |
ed142a4 node-002 virtualbox running /opt/kraken/terraform/local | |
9b514ab node-003 virtualbox running /opt/kraken/terraform/local |
This file contains hidden or 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
TASK [kraken-local : Terraform apply] ****************************************** | |
fatal: [localhost]: FAILED! => {"changed": true, "cmd": "cd /tmp/testing-kraken && terraform apply -input=false -state=terraform/local/test-cluster/terraform.tfstate -var-file=terraform/local/test-cluster/terraform.tfvars terraform/local", "delta": "0:00:00.081204", "end": "2016-05-13 13:28:42.976686", "failed": true, "rc": 1, "start": "2016-05-13 13:28:42.895482", "stderr": "\u001b[31mErrors:\n\u001b[0m\u001b[0m\n\u001b[31m * Incompatible API version with plugin. Plugin version: 1, Ours: 2\u001b[0m\u001b[0m", "stdout": "There are warnings and/or errors related to your configuration. Please\nfix these before continuing.", "stdout_lines": ["There are warnings and/or errors related to your configuration. Please", "fix these before continuing."], "warnings": []} | |
cmd: cd /tmp/testing-kraken && terraform apply -input=false -state=terraform/local/test-cluster/terraform.tfstate -var-file=terraform/local/test-cluster/terraform.tfvars t |
This file contains hidden or 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
#!ipxe | |
set redacted-version 2016-04-20.v01 | |
set domain-name host.example.net | |
set base-url http://x.x.x.x | |
prompt --key 0x02 --timeout 2000 Press Ctrl-B for the iPXE command line... && shell || | |
:retry | |
ifconf -c dhcp || goto retry |
This file contains hidden or 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
_verify_sshconfig(){ | |
# Using GnuPG to verify my ~/.ssh/config | |
# | |
# In ~/.ssh/config.d/ create your ssh config like this | |
# | |
# 00-header.cfg | |
# 05-work.cfg | |
# ... | |
# 20-other.cfg | |
# 99-defaults.cfg |