Skip to content

Instantly share code, notes, and snippets.

Avatar

Peter Mounce petemounce

View GitHub Profile
View gist:192005
$(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();
View cap invocation
~/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 Jan 4, 2012
Doesn't include transient dependency
View OpenWrap descriptor
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 Feb 2, 2012
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
View gist:1723563
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 Apr 13, 2012 — 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
View install-graphite-ubuntu-11.10.sh
#!/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 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
@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 / 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
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