I use Slack for many things and it’s great to see so many integrations are available out of the box. But building integrations yourself is extremely easy using its Incoming Web Hooks. Wouldn’t it be nice if you could see a message in Slack each time a user connects to one of your machines over SSH? […]
Continue reading…
Scripting
How to install OpenShift Origin on CentOS-7
When I try to build a OpenShift Origin cluster, I noticed that it’s a bit hard to have an intimate knowledge of its installation. This post focused on this topic, and describes how to use openshift-ansible to install an Origin cluster on several servers.
Continue reading…
ZooInspector: zookeeper graphic interface
I just created a pre-compiled zooinspector, and tested it working well on CentOS and macOS, and should work on windows too.
Continue reading…
Install Go 1.7 on Linux The generic way
Go language is designed for writing servers, that’s why it is using widely. Go has released latest version 1.7. This tutorial will help you to install Go 1.7 on your Linux systems.
Continue reading…
How To Install and Configure Rocket.Chat on CentOS
Rocket.Chat is one of the most feature-rich open-source Slack alternatives, featuring group chat, direct messaging, private rooms, desktop notifications, media embedding, link previews, file uploading, voice/video chat, screensharing, and more. There are native applications for Windows, Mac, and Linux, as well as mobile applications for iOS and Android. Developers can also use hubot to integrate […]
Continue reading…
Whois: command line query for spam-infected domains
When run whois in command line, we sometimes cannot get the expected whois information, but something like below, $ whois github.com Whois Server Version 2.0 Domain names in the .com and .net domains can now be registered with many different competing registrars. Go to http://www.internic.net for detailed information. GITHUB.COM.KHALEDELANSARI.COM GITHUB.COM [..]
Continue reading…
Extract and Compress 7z files in command line
Extract and Compress 7z files in command line 7-Zip is a file archiver with a high compression ratio. The file compressed by 7-Zip has an extension ”.7z”. Here is a list of main features of 7-Zip, which is from its official website:
Continue reading…
Smart ways to purge a RabbitMQ queue
In a recent benchmark, we got a very large queue in one of our online RabbitMQ cluster, which had more than 20mm messages in a single queue (occupying 5-6 gigabytes memory). Then how can we purge the large queue effectively?
Continue reading…
RabbitMQ: remove node from cluster
When a node is no longer meant to be part of a RabbitMQ cluster, we’d remove it explicitly from the cluster. To remove a node from a cluster, there are basically two ways, get itself remove locally, or remove it remotely from the reset nodes. Here suppose we have a cluster consist of three RabbitMQ […]
Continue reading…
Determine the up time of an TCP connection on Linux
As a typical use case for troubleshooting, we may need to find out the up time of an established socket connection. Well, how can we do that inside a running Linux system? I faced this issue this afternoon, and got some luck finally. Note that it’s limited to TCP and UDP.
Continue reading…