Skip to content

Instantly share code, notes, and snippets.

#!/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()
{
#!/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
@EntropyWorks
EntropyWorks / output-01.txt
Created March 26, 2016 03:48
working on kraken-local
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]
cores_nodes:
- { serial: "2M251101N6", hostname: "sl2500-01-node01" }
- { serial: "2M251101N7", hostname: "sl2500-01-node02" }
@EntropyWorks
EntropyWorks / backup-github.sh
Created March 31, 2016 18:03 — forked from rodw/backup-github.sh
A simple script to backup an organization's GitHub repositories, wikis and issues.
#!/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)
@EntropyWorks
EntropyWorks / virt-addr.sh
Created May 2, 2016 19:40 — forked from kevteljeur/virt-addr.sh
Get a KVM guest's IP address
#!/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
#
@EntropyWorks
EntropyWorks / trying-to-ssh-in.log
Created May 13, 2016 00:02
Some Kraken issues with vagrant when run on a local machine instead of in AWS
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
@EntropyWorks
EntropyWorks / kraken-local problem
Created May 13, 2016 20:33
Plugin version issue with Kraken?
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
#!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
@EntropyWorks
EntropyWorks / .bash_ssh_alias
Created August 18, 2016 19:17
Managing my ~/.ssh/config
_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