sudo add-apt-repository ppa:gnome-terminator
sudo apt-get update
sudo apt-get install terminatorTerminator should be setup as default now. Restart your terminal (shortcut: "Ctrl+Alt+T").
| #!/bin/bash | |
| echo "Starting the Cluster on Docker Swarm" | |
| docker pull jayjohnson/rabbitclusternode | |
| docker network create -d overlay testoverlay | |
| swarmnodes="swarm1.internallevvel.com swarm2.internallevvel.com swarm3.internallevvel.com" | |
| for node in $swarmnodes |
| .ONESHELL: | |
| SHELL = /bin/bash | |
| .SHELLFLAGS = -e | |
| test: | |
| cd /tmp | |
| X=$(pwd) | |
| echo "here is $$X" |
| import simplejson as json | |
| import lxml | |
| class objectJSONEncoder(json.JSONEncoder): | |
| """A specialized JSON encoder that can handle simple lxml objectify types | |
| >>> from lxml import objectify | |
| >>> obj = objectify.fromstring("<Book><price>1.50</price><author>W. Shakespeare</author></Book>") | |
| >>> json.dumps(obj, cls=objectJSONEncoder) | |
| '{"price": 1.5, "author": "W. Shakespeare"}' | |
| """ |
| package main | |
| import "fmt" | |
| type Node struct { | |
| prev *Node | |
| next *Node | |
| key interface{} | |
| } |
| stage 'build' { | |
| withDocker(image: 'node_js:4.4', | |
| environment: [foo: 'bar'], | |
| volumes: [node_cache: '/node_modules'], | |
| commands: """ | |
| npm install | |
| npm test | |
| ... | |
| """, |
| """ | |
| Logical deletion for Django models. Uses is_void flag | |
| to hide discarded items from queries. Overrides delete | |
| methods to set flag and soft-delete instead of removing | |
| rows from the database. | |
| """ | |
| from django.apps import apps | |
| from django.contrib.admin.utils import NestedObjects | |
| from django.db import models | |
| from django.db.models import signals |
| #!/bin/bash -e | |
| echo Uploading coverage to Coveralls | |
| export CI_PULL_REQUEST=${SD_PULL_REQUEST} | |
| export COVERALLS_SERVICE_NAME=screwdriver | |
| cat ./artifacts/coverage/lcov.info | ./node_modules/.bin/coveralls |
| package main | |
| import ( | |
| "context" | |
| "flag" | |
| "fmt" | |
| "io" | |
| "net" | |
| "net/http" | |
| "os" |