This file contains 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 | |
### Script to start selenium grid | |
function usage() { | |
echo -e "Usage: $0 [OPTION]... | |
Options: | |
<-a|--action start|stop>\tstart or stop cluster | |
[-c|--count 2]\tnumber of nodes to start | |
[-n|--node chrome|firefox]\tselenium node type | |
[-v|--version 3.0.1-fermium]\tselenium version |
This file contains 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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import string | |
def join_punctuation(seq): | |
characters = set(string.punctuation) | |
seq = iter(seq) | |
current = next(seq) |
This file contains 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 | |
# | |
# solo-cli - CLI for Solo API. | |
# | |
# It is recommended to link it to your PATH before using. | |
# | |
set -e | |
action=${1:-list} |
This file contains 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
2016-06-21 05:43:23,131 ERROR [qtp1201822193-173073] [puppet-server] Puppet Permission denied - /etc/puppetlabs/code/environments/production/modules/stdlib/metadata.json | |
org/jruby/RubyIO.java:3785:in `read' | |
org/jruby/RubyIO.java:3968:in `read' | |
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/module.rb:93:in `has_metadata?' | |
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/module.rb:68:in `initialize' | |
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/node/environment.rb:301:in `modules' | |
org/jruby/RubyArray.java:2407:in `collect' | |
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/node/environment.rb:299:in `modules' | |
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/node/environment.rb:256:in `module' | |
/opt/puppetlabs/puppet/lib/ruby/vendor_ruby/puppet/file_serving/mount/modules.rb:10:in `find' |
This file contains 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 evarga/jenkins-slave | |
MAINTAINER Konstantin Shcherban version: 0.2 | |
RUN echo 'deb http://apt.dockerproject.org/repo ubuntu-trusty main' > /etc/apt/sources.list.d/docker.list && \ | |
apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D | |
RUN apt-get update && apt-get install -y \ | |
nginx \ | |
docker-engine && apt-get clean && rm -rf /var/lib/apt/lists/* | |
RUN usermod -aG docker www-data |
This file contains 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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
import argparse | |
import os | |
import stat | |
import sys | |
def gen_request(req_type, url, data, hostname, tag): | |
full_request='''{0} {1}{2} HTTP/1.1\r |
This file contains 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
Dec 19 19:23:54 pr-121 kernel: INFO: task auditd:2153 blocked for more than 120 seconds. | |
Dec 19 19:23:54 pr-121 kernel: "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. | |
Dec 19 19:23:54 pr-121 kernel: auditd D 0000000000000001 0 2153 1 0x00000000 | |
Dec 19 19:23:54 pr-121 kernel: ffff880c2b2cdcc8 0000000000000082 0000000000000000 ffffffff81055ad3 | |
Dec 19 19:23:54 pr-121 kernel: 0000000000000001 ffff880c2a99db00 ffff88002804b028 ffffffff81119e10 | |
Dec 19 19:23:54 pr-121 kernel: ffff880c29e945f8 ffff880c2b2cdfd8 000000000000fb88 ffff880c29e945f8 | |
Dec 19 19:23:54 pr-121 kernel: Call Trace: | |
Dec 19 19:23:54 pr-121 kernel: [<ffffffff81055ad3>] ? __wake_up+0x53/0x70 | |
Dec 19 19:23:54 pr-121 kernel: [<ffffffff81119e10>] ? sync_page+0x0/0x50 | |
Dec 19 19:23:54 pr-121 kernel: [<ffffffff81119e10>] ? sync_page+0x0/0x50 |
This file contains 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
[random-read] | |
# Random read | |
rw=randread | |
# Test file size | |
#size=1g | |
# Use direct operations | |
direct=1 | |
# Disable buffers | |
buffered=0 | |
# Run time in seconds |
This file contains 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
root@laptop:~# ~/Downloads/seeker /dev/sda | |
Seeker v2.0, 2007-01-15, http://www.linuxinsight.com/how_fast_is_your_disk.html | |
Benchmarking /dev/sda [171705MB], wait 30 seconds.............................. | |
Results: 3121 seeks/second, 0.32 ms random access time | |
root@laptop:~# ~/Downloads/seeker /dev/sda | |
Seeker v2.0, 2007-01-15, http://www.linuxinsight.com/how_fast_is_your_disk.html | |
Benchmarking /dev/sda [171705MB], wait 30 seconds.............................. | |
Results: 3294 seeks/second, 0.30 ms random access time |
This file contains 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 | |
set -e -u | |
if [ $# -ne 1 ]; then | |
echo "Usage: $0 <packagename-version>" | |
exit 0 | |
fi | |
PACKAGE="$(echo $1 | awk -F'-' '{$(NF--)=""; print}' | sed -e 's/\s/-/g;s/-$//')" | |
VERSION="$(echo $1 | awk -F'-' '{print $NF}')" |