Skip to content

Instantly share code, notes, and snippets.

@baseboxorg
baseboxorg / setup.sh
Last active August 29, 2015 14:06 — forked from CarloMicieli/setup.sh
#!/bin/bash
echo 'Starting setup...'
echo 'Adding repositories..'
sudo add-apt-repository -y ppa:tiheum/equinox
sudo add-apt-repository -y ppa:openshot.developers/ppa
## Ubuntu tweaks
sudo add-apt-repository -y ppa:tualatrix/ppa
@baseboxorg
baseboxorg / vmrun
Last active August 29, 2015 14:06 — forked from richkilmer/vmrun
/Library/Application\ Support/VMware\ Fusion/vmrun
vmrun version 3.1.1 build-282344
Usage: vmrun [AUTHENTICATION-FLAGS] COMMAND [PARAMETERS]
AUTHENTICATION-FLAGS
--------------------
@baseboxorg
baseboxorg / vm.sh
Last active August 29, 2015 14:07 — forked from un33k/vm.sh
# Start and stop headless VMs
# put this on your path as save it as vm or vm.sh.
# no need to turn your vmware on when running on Mac
# just run as vm start and it will list all the available vm images.
# then choose which one you want to start. perfect for running Linux under OSX
# in headless mode for development
# Note:, some of this script is from gist (72638254422dc741b299)
# Some rework and enhancement to make it work better and handle windows
#!/bin/bash
@baseboxorg
baseboxorg / .vmx
Last active August 29, 2015 14:07 — forked from mauromorales/.vmx
msg.autoAnswer = “TRUE”
@baseboxorg
baseboxorg / .vmx
Last active August 29, 2015 14:07 — forked from mauromorales/.vmx
msg.autoAnswer = “TRUE”
# In case you had some strange python installation
# NOTE: .pydistutils.cfg seems to be not compatible with brew install python
# areas I needed to clean before installation
# clean up ~/Library/Python
# clean up .local
# preconditions:
# xcode with command line tools installed
xcode-select --install

Run Docker client on Mac OS X connected to a Linux VM

Official Mac Docker Binary!

None of this is really necessary now that the Docker team is releasing official Mac OS X binary builds. Please see moby/moby#3337 for details.

@baseboxorg
baseboxorg / r53_bulk.py
Last active August 29, 2015 14:07 — forked from zircote/r53_bulk.py
from boto import route53
r53 = route53.connect_to_region(region_name='us-east-1')
dev_aws = r53.get_zone('my-domain.local')
with open('hosts') as host:
i = 0
rrs = route53.record.ResourceRecordSets(r53, dev_aws.id)
for line in host.readlines():
@baseboxorg
baseboxorg / ec2.py
Last active August 29, 2015 14:07 — forked from zircote/ec2.py
#!/usr/bin/env python
'''
EC2 external inventory script
=================================
Generates inventory that Ansible can understand by making API request to
AWS EC2 using the Boto library.
NOTE: This script assumes Ansible is being executed where the environment
#
# ElasticSearch Dockerfile
FROM centos:6.4
RUN yum install -q -y which java-1.7.0-openjdk java-1.7.0-openjdk-devel
RUN update-alternatives --set java /usr/lib/jvm/jre-1.7.0-openjdk.x86_64/bin/java
RUN yum install -y -q https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.1.1.noarch.rpm
EXPOSE 9200 9300