Skip to content

Instantly share code, notes, and snippets.

View johnbellone's full-sized avatar
🏠
Working from home

John Bellone johnbellone

🏠
Working from home
View GitHub Profile
@johnbellone
johnbellone / .gitignore
Created September 6, 2012 11:20
Script to import from Wordpress XML to Markdown for Jekyll
*.xml
*.md

Keybase proof

I hereby claim:

  • I am johnbellone on github.
  • I am jbellone (https://keybase.io/jbellone) on keybase.
  • I have a public key ASArenNJXaWRd8m10mDOP5UtsXSdbrFvjFlhfxSGHCbOEAo

To claim this, I am signing this object:

@johnbellone
johnbellone / spec_helper.rb
Created October 10, 2017 15:50
spec_helper
require 'rspec'
require 'rspec_command'
require 'foodcritic'
module FunctionalHelpers
extend RSpec::Matchers::DSL
matcher :violate_rule do |rule_id = nil|
match do |cmd|
if location
@johnbellone
johnbellone / .env
Last active December 19, 2016 19:51
Using dotenv gem with Vagrant and proxies.
VAGRANT_HTTP_PROXY=$HTTP_PROXY
VAGRANT_HTTPS_PROXY=$HTTPS_PROXY
VAGRANT_NO_PROXY=$NO_PROXY
require 'spec_helper'
require_relative '../../../libraries/poise_service_user.rb'
describe Bloomberg::Sauce::Providers::PoiseServiceUser do
step_into(:poise_service_user)
recipe do
poise_service_user 'monit'
end
@johnbellone
johnbellone / sh.sh
Created March 31, 2016 02:39
ec2metadata
jbellone@ip-1-71-19-3:~$ /usr/bin/ec2metadata |grep -v bloomberg
ami-id: ami-0000000b
ami-launch-index: 0
ami-manifest-path: FIXME
ancestor-ami-ids: unavailable
availability-zone: DRR1-1
block-device-mapping: ami
root
instance-action: none
instance-id: i-0000caa3
@johnbellone
johnbellone / bash.sh
Created March 13, 2014 15:59
Issue installing Vagrant Berkshelf with 1.5 Vagrant
jbellone@dc110-05-298dx:~/Projects/vagrant-berkshelf % vagrant plugin install vagrant-berkshelf-1.4.0.dev1.gem 11:58:26
Installing the 'vagrant-berkshelf-1.4.0.dev1.gem' plugin. This can take a few minutes...
/Applications/Vagrant/embedded/gems/gems/bundler-1.5.3/lib/bundler/parallel_workers/unix_worker.rb:19:in `initialize': uninitialized constant Net::HTTP::Persistent (NameError)
from /Applications/Vagrant/embedded/gems/gems/bundler-1.5.3/lib/bundler/parallel_workers.rb:14:in `new'
from /Applications/Vagrant/embedded/gems/gems/bundler-1.5.3/lib/bundler/parallel_workers.rb:14:in `worker_pool'
from /Applications/Vagrant/embedded/gems/gems/bundler-1.5.3/lib/bundler/installer.rb:281:in `install_in_parallel'
from /Applications/Vagrant/embedded/gems/gems/bundler-1.5.3/lib/bundler/installer.rb:95:in `run'
from /Applications/Vagrant/embedded/gems/gems/bundler-1.5.3/lib/bundler/installer.rb:15:in `install'
from /Applications/Vagrant/embedded/gems/gems/vagrant-1.5.0/lib/v
@johnbellone
johnbellone / bash.sh
Created January 14, 2016 16:07
poise-javascript error
- jenkins (2.4.1)
- libarchive (0.6.1)
- poise (2.5.0)
- poise-ruby (2.1.1)
- compat_resource (12.5.26)
Compiling Cookbooks...
Recipe: chef-sugar::default
(up to date)
Recipe: chef-vault::default
* chef_gem[chef-vault] action install (up to date)
@johnbellone
johnbellone / Dockerfile
Created August 15, 2013 02:49
Dockerfile for rbenv and ruby-build to manage rubies.
from ubuntu
maintainer John Bellone <john.bellone.jr@gmail.com>
# install essentials
run apt-get -y update
run apt-get -y install build-essential git-core
# install rbenv
run git clone https://github.com/sstephenson/rbenv /usr/local/rbenv
run mkdir -p /usr/local/rbenv/plugins
@johnbellone
johnbellone / Dockerfile
Created August 15, 2013 02:49
Dockerfile to setup nodenv for managing nodejs installations.
from ubuntu
maintainer John Bellone <john.bellone.jr@gmail.com>
# install essentials
run apt-get -y update
run apt-get -y install build-essential git-core
# install rbenv
run git clone https://github.com/OiNutter/nodenv /usr/local/nodenv
run mkdir -p /usr/local/nodenv/plugins