Skip to content

Instantly share code, notes, and snippets.

Peter Mounce petemounce

  • London UK
Block or report user

Report or block petemounce

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Current pipeline - duplication within agent-targetting as well as step-parameterisation.yaml
---
common: &common
timeout_in_minutes: 60 # TODO(ENG-548): reduce timeout once agent-cold-start is optimised.
retry:
automatic:
# This is designed to trap and retry failures because agent lost connection. Agent exits with -1 in this case.
- exit_status: -1
limit: 3
- exit_status: 255
limit: 3
@petemounce
petemounce / choco pack output on linux
Created Feb 9, 2018
building chocolatey packages within a mono docker container
View choco pack output on linux
+ docker run --rm --mount type=bind,src=/Users/pete/src/github/bazelbuild/bazel/scripts/packages/chocolatey/bazel-package,dst=/work linuturk/mono-choco pack --verbose --debug /work/bazel.nuspec --outputdirectory /work
Chocolatey v0.10.8.0
Chocolatey is running on Linux v 4.9.60.0
Attempting to delete file "opt/chocolatey/chocolatey.dll.old".
Attempting to delete file "/opt/chocolatey/choco.exe.old".
Attempting to create directory "/opt/chocolatey/helpers".
Attempting to create directory "/opt/chocolatey/helpers/functions".
Attempting to create directory "/opt/chocolatey/redirects".
Attempting to create directory "/opt/chocolatey/tools".
Command line: /opt/chocolatey/choco.exe pack --verbose --debug /work/bazel.nuspec --outputdirectory /work --allow-unofficial
View packer.log
$ PACKER_LOG=1 packer build --only=virtualbox-iso -var 'iso_url=file:///Volumes/PETERMOUNCE/14393.0.160715-1616.RS1_RELEASE_SERVER_EVAL_X64FRE_EN-US.ISO' ./vbox-2016.json
2017/02/24 11:00:30 [INFO] Packer version: 0.12.2
2017/02/24 11:00:30 Packer Target OS/Arch: darwin amd64
2017/02/24 11:00:30 Built with Go Version: go1.7.4
2017/02/24 11:00:30 Detected home directory from env var: /Users/peter
2017/02/24 11:00:30 Using internal plugin for azure-arm
2017/02/24 11:00:30 Using internal plugin for digitalocean
2017/02/24 11:00:30 Using internal plugin for openstack
2017/02/24 11:00:30 Using internal plugin for parallels-iso
2017/02/24 11:00:30 Using internal plugin for virtualbox-iso
@petemounce
petemounce / packer output
Created Jan 17, 2017
packer-template error
View packer output
$ packer build --only=virtualbox-iso -var 'iso_url=file:///Volumes/PETERMOUNCE/14393.0.160715-1616.RS1_RELEASE_SERVER_EVAL_X64FRE_EN-US.ISO' ./vbox-2016.json
virtualbox-iso output will be in this color.
==> virtualbox-iso: Downloading or copying Guest additions
virtualbox-iso: Downloading or copying: file:///Applications/VirtualBox.app/Contents/MacOS/VBoxGuestAdditions.iso
==> virtualbox-iso: Downloading or copying ISO
virtualbox-iso: Downloading or copying: file:///Volumes/PETERMOUNCE/14393.0.160715-1616.RS1_RELEASE_SERVER_EVAL_X64FRE_EN-US.ISO
==> virtualbox-iso: Creating floppy disk...
virtualbox-iso: Copying files flatly from floppy_files
virtualbox-iso: Copying file: answer_files/2016/Autounattend.xml
View npm output
> npm install
npm ERR! addLocal Could not install C:\C:\src\je\cc\tranalytics\shared\loggerfactory
npm ERR! Windows_NT 6.3.9600
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install"
npm ERR! node v5.9.0
npm ERR! npm v3.7.3
npm ERR! path C:\C:\src\je\cc\tranalytics\shared\loggerfactory
npm ERR! code ENOENT
npm ERR! errno -4058
npm ERR! syscall open
@petemounce
petemounce / Dockerfile
Last active Jan 8, 2017
docker hackday
View Dockerfile
FROM ubuntu
RUN apt-get update
RUN apt-get -y install curl wget git vim python python-pip python-dev
# Install anthracite
RUN git clone --recursive https://github.com/Dieterbe/anthracite.git /opt/anthracite
add ./config.py /opt/anthracite/config.py
View Bootstrap-EC2-Windows-CloudInit.ps1
# install 7-zip, curl and vim
# (Windows 2012 comes with .NET 4.5 out-of-the-box)
# Then use the EC2 tools to create a new AMI from the result, and you have a system
# that will execute user-data as a PowerShell script after the instance fires up!
# This has been tested on Windows 2012 64bits AMIs provided by Amazon (eu-west-1 ami-a1867dd6)
#
# Inject this as user-data of a Windows 2012 AMI, like this (edit the adminPassword to your needs):
#
# <powershell>
# Set-ExecutionPolicy Unrestricted
@petemounce
petemounce / Get-WebFile.psm1
Created Oct 4, 2012
Install ruby on Windows 2008r2 sp1 x64 Server Core
View Get-WebFile.psm1
## Get-WebFile (aka wget for PowerShell)
##############################################################################################################
## Downloads a file or page from the web
## History:
## v3.6 - Add -Passthru switch to output TEXT files
## v3.5 - Add -Quiet switch to turn off the progress reports ...
## v3.4 - Add progress report for files which don't report size
## v3.3 - Add progress report for files which report their size
## v3.2 - Use the pure Stream object because StreamWriter is based on TextWriter:
## it was messing up binary files, and making mistakes with extended characters in text
@petemounce
petemounce / Gemfile #1
Created May 30, 2012
bundler + github enterprise + private repository + windows LDAP
View Gemfile #1
gem 'justeat_pacman_deploy', :git => 'https://Peter-Mounce@github.je-labs.com/Peter-Mounce/gem_justeat_pacman_deploy.git'
@petemounce
petemounce / setup-statsd.sh
Created Apr 24, 2012 — forked from jasonroelofs/setup-statsd.sh
Turn an Ubuntu 10.10 EC2 into a StatsD/Graphite server
View setup-statsd.sh
# install git
sudo apt-get install g++ curl libssl-dev apache2-utils
sudo apt-get install git-core
# download the Node source, compile and install it
git clone https://github.com/joyent/node.git
cd node
./configure
make
sudo make install
# install the Node package manager for later use
You can’t perform that action at this time.