Skip to content

Instantly share code, notes, and snippets.

View lukehinds's full-sized avatar
🏃‍♂️
Either running or coding.

Luke Hinds lukehinds

🏃‍♂️
Either running or coding.
View GitHub Profile
%global pypi_name bagpipe-bgp
Name: python-%{pypi_name}
Version: XXX
Release: XXX
Summary: Lightweight implementation of BGP IP VPN and E-VPN
License: ASL 2.0
URL: https://github.com/Orange-OpenSource/bagpipe-bgp
Source0: https://<remove>files.pythonhosted.org/packages/source/b/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
[global]
font = Monospace 9
# Allow a small subset of html markup:
# <b>bold</b>
# <i>italic</i>
# <s>strikethrough</s>
# <u>underline</u>
#
# For a complete reference see
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "centos/7"
config.vm.box_check_update = true
config.vm.hostname = "puppet.example.com"
config.vm.provision :shell, :inline => "rpm -ivh https://yum.puppetlabs.com/puppetlabs-release-pc1-el-7.noarch.rpm"
config.vm.provision :shell, :inline => "yum -y update"
config.vm.provision :shell, :inline => "yum -y install puppet git"
[user]
email = lhinds@redhat.com
name = lhinds
[alias]
prune = fetch --prune
# Because I constantly forget how to do this
# https://git-scm.com/docs/git-fetch#git-fetch--p
undo = reset --soft HEAD^
# https://github.com/lukehinds/dotfiles
export TERM="xterm-256color"
[[ $TERM == "dumb" ]] && unsetopt zle && PS1='$ ' && return
# Path to your oh-my-zsh installation.
export ZSH=~/.oh-my-zsh
# Set theme
ZSH_THEME="powerlevel9k/powerlevel9k"
docker run -d -p 8080:8080 -p 29418:29418 \\n gerritforge/gerrit-centos7
Login as adminstrator, create a user, add them to the adminstators group and then create a repo:
ssh -p 29418 lhinds@localhost gerrit create-project test-project --empty-commit
git clone ssh://lhinds@localhost:29418/test-project
cat << EOF > .gitreview
[gerrit]
$ cat Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "centos/7"
config.vm.provision :shell, :inline => "sudo yum install epel-release -y"
config.vm.provision :ansible do |ansible|
ansible.playbook = "deploy.yml"
@lukehinds
lukehinds / Vagrantfile
Last active May 23, 2017 07:56
Vagrant file for openstack puppet testing
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "centos/7"
config.vm.provider "libvirt" do |vb|
vb.memory = "4096"
vb.cpus = "2"
end
config.vm.box_check_update = true
CONFIGURE_ARGS='with-ldflags=-L/opt/vagrant/embedded/lib with-libvirt-include=/usr/include/libvirt with-libvirt-lib=/usr/lib' GEM_HOME=~/.vagrant.d/gems GEM_PATH=$GEM_HOME:/opt/vagrant/embedded/gems PATH=/opt/vagrant/embedded/bin:$PATH vagrant plugin install ~/tmp/vagrant-libvirt/vagrant-libvirt-0.0.40.gem
export PATH=$PATH:/usr/bin/core_perl