This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| if [ "$EUID" -ne 0 ] | |
| then echo "Must be root" | |
| exit | |
| fi | |
| apt-get update -y | |
| apt-get upgrade -y | |
| apt-get dist-upgrade -y |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| sudo apt-get update | |
| sudo apt-get remove --purge ruby -y | |
| gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 | |
| curl -sSL https://get.rvm.io | bash -s stable | |
| export PATH="$PATH:$HOME/.rvm/bin" | |
| curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.31.2/install.sh | bash | |
| export NVM_DIR="/home/vagrant/.nvm" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| if [ "$EUID" -ne 0 ] | |
| then echo "Must be root" | |
| exit | |
| fi | |
| if[ $# -ne 3 ]; then | |
| echo "Sorry, we need both the source site, and the destination site" | |
| echo "Usage:" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import copy | |
| from items import CheckoutItem | |
| from discounts import ItemDiscount | |
| class Checkout(object): | |
| def __init__(self): | |
| self.items = {} | |
| self.offers = [] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| if [ "$EUID" -ne 0 ] | |
| then echo "Must be root" | |
| exit | |
| fi | |
| ADAPTER="eth0" | |
| # Allow overriding from eth0 by passing in a single argument |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| node { | |
| stage('Cleanup') { | |
| sh 'rm -rf ./*' | |
| } | |
| stage('Fetch from GitHub') { | |
| sh 'git clone https://github.com/Lewiscowles1986/ulid' | |
| } | |
| stage('Get Composer') { | |
| sh 'wget -q http://getcomposer.org/download/1.2.1/composer.phar' | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM ubuntu:xenial | |
| RUN rm /bin/sh && ln -s /bin/bash /bin/sh | |
| RUN apt-get update -qq | |
| RUN apt-get install -y -qq git curl python python-pip build-essential | |
| RUN pip install virtualenv | |
| ENV NVM_DIR /usr/local/nvm | |
| ENV NODE_VERSION 4.1.2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| wget https://storage.googleapis.com/golang/go1.7.3.linux-amd64.tar.gz | |
| tar -xvf go1.7.3.linux-amd64.tar.gz | |
| sudo mv go /opt/go | |
| sudo cat > /etc/profile.d/go.sh <<EOF | |
| export GOROOT=/opt/go | |
| export PATH=\$PATH:\$GOROOT/bin | |
| EOF |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import pygame | |
| import random | |
| class Snowfield(): | |
| def __init__(self, density, speed, size, color, bounds, pygame, screen): | |
| self.color = color | |
| self.flakes = [] | |
| self.speed = speed | |
| self.size = size |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| swagger: '2.0' | |
| info: | |
| title: Testing Swagger | |
| description: This is a test repo | |
| version: "1.0.0" | |
| # the domain of the service | |
| host: api.codesign2.co.uk | |
| # array of all schemes that your API supports | |
| schemes: | |
| - https |