Skip to content

Instantly share code, notes, and snippets.

View petemounce's full-sized avatar

Peter Mounce petemounce

View GitHub Profile
$(function () {
//create tabs
$('.sidebar .content').append('<ul class="ui-tabs-nav"></ul>');
$('.ui-tabs-target fieldset').each(function () {
var TabId = $(this).attr('id');
$('.ui-tabs-nav').prepend('<li><a href="#' + TabId + '">' + $('legend',this).text() + '</a></li>');
});
//show / hide tabs
var TabTarget = $('.ui-tabs-target > fieldset');
TabTarget.hide().filter(':first').show();
~/src/root.git/deploy (AutomateDeploymentToQA *) $ cap testwinrm -tv
C:/Ruby192/lib/ruby/gems/1.9.1/gems/httpclient-2.1.5.2/lib/httpclient/ssl_config.rb:149:in `add_file': system lib (OpenSSL::X509::StoreError)
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/httpclient-2.1.5.2/lib/httpclient/ssl_config.rb:149:in `set_trust_ca'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/handsoap-1.1.7/lib/handsoap/http/drivers/http_client_driver.rb:19:in `send_http_request'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/handsoap-1.1.7/lib/handsoap/service.rb:249:in `invoke'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/winrm-0.0.5/lib/soap/winrm_service.rb:130:in `open_shell'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/winrm-0.0.5/lib/soap/winrm_service.rb:228:in `run_cmd'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/winrm-0.0.5/lib/winrm.rb:82:in `cmd'
from C:/Ruby192/lib/ruby/gems/1.9.1/gems/capistrano_winrm-0.0.1/lib/winrm_connection.rb:40:in `exec'
from C:/Ruby192/lib/ruby/gems/1.9.1/ge
@petemounce
petemounce / OpenWrap descriptor
Created January 4, 2012 13:40
Doesn't include transient dependency
name: JustEat.BootStrapper
use-symlinks: false
depends: openwrap anchored content
depends: nunit
depends: RestSharp
build: msbuild; profile=net40
depends: rhinomocks
depends: nlog
depends: nlog.schema
@petemounce
petemounce / gist:1723563
Created February 2, 2012 13:53
Trying to bootstrap openwrap onto a build-agent, where TW-2266 in TeamCity means if we install to the profile and allow the user PATH environment variable to be set, build-agents can't see system PATH variable at all
c:\src\branches\Ulrika_PD-17298\JustEat\components\JustEat.Testing>bundle exec rake -tv verbosity=debug build_number=666 clobber package
DEBUG - generate assembly info for JustEat.Testing
DEBUG - generate assembly info for JustEat.Testing.Tests
** Invoke clobber (first_time)
** Invoke clean (first_time)
** Execute clean
rm -rf bin
rm -rf src/JustEat.Testing/Properties/AssemblyInfo.cs
rm -rf testing/JustEat.Testing.Tests/Properties/AssemblyInfo.cs
rm -rf bin/TestResults.xml
@petemounce
petemounce / install-graphite-ubuntu-11.10.sh
Created April 13, 2012 12:27 — forked from Iristyle/install-graphite-ubuntu-11.10.sh
Install Graphite 0.9.9 on Ubuntu 11.10 on EC2 with NGinx, uwsgi, supervisord, statsite, nagios agent
#!/bin/bash
####################################
# BASIC REQUIREMENTS
# http://graphite.wikidot.com/installation
# Forked from: http://geek.michaelgrace.org/2011/09/how-to-install-graphite-on-ubuntu/
# Ubuntu 11.10 Oneiric Ocelot
# Forked from https://gist.github.com/1287170
# Modified to use NGinx + uwsgi instead of Apache, as well as memcached and supervisord, incorporating ideas from
# http://blog.adku.com/2011/10/scalable-realtime-stats-with-graphite.html
@petemounce
petemounce / setup-statsd.sh
Created April 24, 2012 23:27 — forked from jasonroelofs/setup-statsd.sh
Turn an Ubuntu 10.10 EC2 into a StatsD/Graphite server
# 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
@petemounce
petemounce / Gemfile #1
Created May 30, 2012 16:00
bundler + github enterprise + private repository + windows LDAP
gem 'justeat_pacman_deploy', :git => 'https://Peter-Mounce@github.je-labs.com/Peter-Mounce/gem_justeat_pacman_deploy.git'
@petemounce
petemounce / Get-WebFile.psm1
Created October 4, 2012 10:04
Install ruby on Windows 2008r2 sp1 x64 Server Core
## 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
# 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 / Dockerfile
Last active January 8, 2017 00:46
docker hackday
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