Skip to content

Instantly share code, notes, and snippets.

View bmannix's full-sized avatar

Brendan Mannix bmannix

View GitHub Profile
@stevenringo
stevenringo / reinvent-2017-youtube.md
Created December 3, 2017 23:01
Links to YouTube recordings of AWS re:Invent 2017 sessions

| Title | Description

@Bouke
Bouke / gist:11261620
Last active August 3, 2023 01:46
Multiple Python installations on OS X

Previous versions used homebrew to install the various versions. As suggested in the comments, it's better to use pyenv instead. If you are looking for the previous version of this document, see the revision history.

$ brew update
$ brew install pyenv
$ pyenv install 3.5.0
$ pyenv install 3.4.3
$ pyenv install 3.3.6
$ pyenv install 3.2.6
$ pyenv install 2.7.10

$ pyenv install 2.6.9

@gagangowda
gagangowda / Json_Concatenation.py
Last active December 28, 2015 19:59
Combining Two Json Objects in Python
import json
def combine_json():
with open('j1.json') as file:
d1 = json.loads(file.read())
with open('j2.json') as file:
d2 = json.loads(file.read())
result = combine_dict(d1,d2)
j3 = json.dumps(result)
return j3
@afawcett
afawcett / ant-salesforce.xml
Last active December 29, 2022 17:11
Defines some macros around sf:deploy to install and uninstall packages.
<!-- TODO: Review Ant v1.8 local properties -->
<project xmlns:sf="antlib:com.salesforce">
<!-- Download from Salesforce Tools page under Setup -->
<typedef
uri="antlib:com.salesforce"
resource="com/salesforce/antlib.xml"
classpath="${basedir}/lib/ant-salesforce.jar"/>
<!-- Download from http://sourceforge.net/projects/ant-contrib/files/ant-contrib/1.0b3/ -->
@dimacus
dimacus / gist:5757573
Created June 11, 2013 14:59
Blackhole proxy to block all external calls. Add following configs to your browser creation profile["network.proxy.type"] = 1 profile["network.proxy.http"] = "localhost" profile["network.proxy.http_port"] = 9001 no_proxy_list = "localhost, 127.0.0.1" no_proxy_list += ", #{ENV['PROXY_SERVER_WHITELIST']}" if ENV['PROXY_SERVER_WHITELIST'] profile["…
require 'rubygems'
require 'em-proxy'
require 'http_parser.rb'
require 'uuid'
require 'uri'
PROXY_SERVER_HOST = "127.0.0.1"
PROXY_SERVER_PORT = ENV['PROXY_SERVER_PORT'] || 9001
output = "tmp/blocked_external_urls.log"
@tknerr
tknerr / Vagrantfile
Last active July 2, 2024 19:33
Sample Vagrantfile that works with all providers (virtualbox, aws, managed) and in combination with the vagrant-omnibus plugin
#
# Vagrantfile for testing
#
Vagrant::configure("2") do |config|
# the Chef version to use
config.omnibus.chef_version = "11.4.4"
def configure_vbox_provider(config, name, ip, memory = 384)
config.vm.provider :virtualbox do |vbox, override|
@textarcana
textarcana / README.md
Last active March 18, 2024 11:21
This gist contains everything you need to install StatsD and Graphite on CentOS 6.3.

This gist contains everything you need to install StatsD and Graphite on CentOS 6.3. Unless I forgot something. If I did, shoot a reminder email to noah at one more bug dot com. tl;dr: womm, ymmv, yolo.

I (mostly) followed the steps shown in the EZUnix wiki

And I also referred back to this gist by Michael Grace

@hagix9
hagix9 / lxc-centos
Last active March 11, 2024 12:23 — forked from mattwillsher/lxc-centos
LXC CentOS template. Work with Ubuntu if the yum package is installed
#!/bin/bash
#
# template script for generating CentOS container for LXC
#
#
# lxc: linux Container library
# Authors:
@fancyremarker
fancyremarker / .bash_login.jenkins
Last active March 6, 2023 19:21
[A.] Scripts related to Jenkins client setup
# if running bash
if [ -n "$BASH_VERSION" ]; then
# include .bashrc if it exists
if [ -f "$HOME/.bashrc" ]; then
. "$HOME/.bashrc"
fi
fi
@marktheunissen
marktheunissen / pedantically_commented_playbook.yml
Last active June 5, 2024 22:16 — forked from phred/pedantically_commented_playbook.yml
Insanely complete Ansible playbook, showing off all the options
This playbook has been removed as it is now very outdated.