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"
@lukehinds
lukehinds / .vimrc
Last active September 21, 2018 15:46
set nocompatible " vundle, required
filetype off " vundle required
let g:go_version_warning = 0
" Autoinstall vim-plug
if empty(glob('~/.vim/autoload/plug.vim'))
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
autocmd VimEnter * PlugInstall
endif
# 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"
yum install vim-enhanced zsh wget -y
wget https://gist.githubusercontent.com/lukehinds/a4cd9b82e65d06e4771beb7a5322a36e/raw/7e4cd3557bd852b349d8f1b276aa586aa102d5ec/.vimrc
sh -c "$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"
git clone https://github.com/bhilburn/powerlevel9k.git ~/.oh-my-zsh/custom/themes/powerlevel9k
git clone git://github.com/zsh-users/zsh-autosuggestions ~/.oh-my-zsh/plugins/zsh-autosuggestions
[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^
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