Update The system
sudo yum -y updateInstall the Platform Development Tools
sudo yum -y groupinstall "Development Tools"Update The system
sudo yum -y updateInstall the Platform Development Tools
sudo yum -y groupinstall "Development Tools"| // --- Compiling --- | |
| $ wget http://download.redis.io/releases/redis-2.8.3.tar.gz | |
| $ tar xzvf redis-2.8.3.tar.gz | |
| $ cd redis-2.8.3 | |
| $ make | |
| $ make install | |
| // --- or using yum --- | |
| $ rpm -Uvh http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm | |
| $ rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm |
| 'use strict'; | |
| var elasticsearch = require('elasticsearch'); | |
| var Promise = require('bluebird'); | |
| var log = console.log.bind(console); | |
| var client = new elasticsearch.Client({ | |
| host: 'localhost:9200', | |
| log: 'trace' |
| #!/bin/bash | |
| # | |
| # description: upgrade gcc-c++ from 4.4 to 4.8 on centos 6.5 | |
| # AUTHOR : betapcode, betapcode@gmail.com | |
| # COMPANY: Tamtay JSC | |
| # VERSION: 1.0 | |
| # CREATED: 04/05/2017 10:31:01 PM | |
| echo '==================================================' | |
| echo '=============== Upgrade gcc-c++ ===============' |
| #!/bin/bash | |
| echo '==================================================' | |
| echo '===============Install necessary tools===============' | |
| echo '==================================================' | |
| sudo yum update | |
| sudo yum install git make flex bison libtool automake openssl-devel libevent libevent-devel python-devel gcc-c++ byacc java-1.7.0-openjdk ant | |
| echo '==================================================' |
| # Espresso Pattern | |
| # This shows how to capture data using a pub-sub proxy | |
| # | |
| import time | |
| from random import randint | |
| from string import uppercase | |
| from threading import Thread |
| """ | |
| An XPUB/XSUB broker that forwards subscriptions | |
| """ | |
| import os | |
| import string | |
| import sys | |
| import time | |
| from random import randint | |
| from threading import Thread |
| // How to connect 5 publishers with 5 subscribers | |
| // over TCP using ZeroMQ's XPUB/XSUB proxy. | |
| // sub (connect) | |
| // <-8701-> | |
| // (bind) xpub <---> xsub (bind) | |
| // <-8700-> | |
| // (connect) pub | |
| var zmq = require('zmq'); |
| import thread | |
| import time | |
| import zmq | |
| from zmq.core.socket import Socket | |
| # global zmg context | |
| context = zmq.Context() | |
| endpoint = "tcp://*:8888" | |
| # the subscriber thread function |
| #!/bin/sh | |
| # | |
| # chkconfig: - 80 30 | |
| # description: auto start minaftp on server | |
| # processname: minaftp | |
| # PARAMETERS: /sbin/services minaftp start|stop|restart|reload | |
| # AUTHOR : betapcode, minh.pham@tamtay.vn, pnminh.it@gmail.com | |
| # COMPANY: Tamtay JSC | |
| # VERSION: 1.0 | |
| # CREATED: 04/11/2016 10:31:01 AM |