. It will fetch the gem file with the right version Ask for the license if missing Build the SRPM and the RPM using gem2rpm and a custom template
~/gem2rpm.sh simplecov '>=0.6.2'
...
Finish: build phase for rubygem-simplecov-0.9.1-1.el6.src.rpm
| package main | |
| import ( | |
| "log" | |
| "log/syslog" | |
| ) | |
| func main() { | |
| logwriter, e := syslog.Dial("tcp","123.123.123.123:12345", syslog.LOG_DEBUG, "your.software.identifier") | |
| if e != nil { |
| #The reason is old rubygems. | |
| #So we need to remove ssl source to be able to update gem --system which includes rubygems and so on. | |
| #After this we can feel free to get back to ssl source. | |
| #to temporarily remove secure connection | |
| gem sources -r https://rubygems.org/ | |
| #add insecure connection | |
| gem sources -a http://rubygems.org/ |
| #!/bin/bash | |
| set -eo pipefail | |
| VMID=200 | |
| cpu_tasks() { | |
| expect <<EOF | sed -n 's/^.* CPU .*thread_id=\(.*\)$/\1/p' | tr -d '\r' || true | |
| spawn qm monitor $VMID | |
| expect ">" |
| var express = require('express'); | |
| var mongoose = require('mongoose'); | |
| var dbs = {}; | |
| for (var i = 0; i < 40; i++) { | |
| dbs['t' + i] = mongoose.createConnection('mongodb://localhost/t' + i + '__multitenant', { server: { poolSize: 5 } }); | |
| } | |
| var app = express(); |
| #!/usr/bin/env python | |
| import sys | |
| import pandas as pd | |
| import pymongo | |
| import json | |
| def import_content(filepath): | |
| mng_client = pymongo.MongoClient('localhost', 27017) |
| Producer | |
| Setup | |
| bin/kafka-topics.sh --zookeeper esv4-hcl197.grid.linkedin.com:2181 --create --topic test-rep-one --partitions 6 --replication-factor 1 | |
| bin/kafka-topics.sh --zookeeper esv4-hcl197.grid.linkedin.com:2181 --create --topic test --partitions 6 --replication-factor 3 | |
| Single thread, no replication | |
| bin/kafka-run-class.sh org.apache.kafka.clients.tools.ProducerPerformance test7 50000000 100 -1 acks=1 bootstrap.servers=esv4-hcl198.grid.linkedin.com:9092 buffer.memory=67108864 batch.size=8196 |
| #! /usr/bin/env python2 | |
| # Requires: PIL, colormath | |
| # | |
| # Improved algorithm now automatically crops the image and uses much | |
| # better color matching | |
| from PIL import Image, ImageChops | |
| from colormath.color_conversions import convert_color | |
| from colormath.color_objects import LabColor | |
| from colormath.color_objects import sRGBColor as RGBColor |
Finishing this guide you'll get:
Specification of latest running installation: