The popular open-source contract for web designers and developers by Stuff & Nonsense
- Originally published: 23/12/2008
- Revised date: 15/12/2013
- Original post
| if (Boolean.valueOf(vars.get("DEBUG"))) { | |
| for (a: SampleResult.getAssertionResults()) { | |
| if (a.isError() || a.isFailure()) { | |
| log.error(Thread.currentThread().getName()+": "+SampleLabel+": Assertion failed for response: " + new String((byte[]) ResponseData)); | |
| } | |
| } | |
| } |
| import numpy as np | |
| import nvd3 | |
| nvd3.ipynb.initialize_javascript(use_remote=True) | |
| np.random.seed(100) | |
| chart_type = 'discreteBarChart' | |
| chart = nvd3.discreteBarChart(name=chart_type, height=500, width=500) |
| cd /opt/graphite | |
| sudo ./bin/carbon-cache.py start | |
| cd /opt/elasticsearch | |
| sudo nohup ./bin/elasticsearch start & | |
| sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10 | |
| echo "deb http://repo.mongodb.org/apt/ubuntu "$(lsb_release -sc)"/mongodb-org/3.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.0.list | |
| sudo apt-get update | |
| sudo apt-get install -y mongodb-org |
| Vagrant.configure(2) do |config| | |
| config.vm.box = "ubuntu/trusty64" | |
| config.vm.provider "virtualbox" do |v| | |
| v.memory = 2048 | |
| v.cpus = 2 | |
| # vb.gui = true | |
| end | |
| # --------------------------------------------------------------------------- | |
| # | |
| # Description: This file holds all my BASH configurations and aliases | |
| # | |
| # Sections: | |
| # 1. Environment Configuration | |
| # 2. Make Terminal Better (remapping defaults and adding functionality) | |
| # 3. File and Folder Management | |
| # 4. Searching | |
| # 5. Process Management |
| sudo rm /var/crash/* |
| git branch newbranch | |
| git checkout newbranch | |
| git push origin newbranch | |
| git checkout master | |
| git branch -d newbranch |
| find /abs/path/ -name '*.ext' |
| pip install twill --allow-external twill --allow-unverified twill |