Skip to content

Instantly share code, notes, and snippets.

View johri21's full-sized avatar
🚀

Abhinav Johri johri21

🚀
View GitHub Profile
@johri21
johri21 / Cassandra Node health checkup
Last active March 25, 2018 14:27
The script runs as a cron on one of our nodes (NC1) and executes nodetool status every minutes. It reports for the down nodes to datadog.
#!/bin/sh
#Check if the node on which the cron is running is down?
#if down the SELF_NODE value will node be empty.
SELF_NODE="$(nodetool status 2>&1| grep 'Failed')"
NODE="$(nodetool status | grep 'DN' | sed 's/ \{2,\}/ /g' | cut -d' ' -f2 | head -n1)"
@johri21
johri21 / MultiLinksDownload.md
Last active January 4, 2017 06:16
Downloading multiple links

Install Chrono Download Manager

  • Open the plugin shown on upper right corner
  • Click on Open Manager
  • Click on upper left corner on plus sign
  • New Task will be opened. Paste the urls and Start the download
  • The download files will be in Download folder