Skip to content

Instantly share code, notes, and snippets.

View manjeshpv's full-sized avatar
🇮🇳
in India

Manjesh V manjeshpv

🇮🇳
in India
  • LEADSchool.in
  • Bangalore
View GitHub Profile
@manjeshpv
manjeshpv / 3pdb.sql
Created November 29, 2019 09:42 — forked from simonhearne/3pdb.sql
This file has been truncated, but you can view the full file.
INSERT IGNORE INTO thirdpartydb.group (name) VALUES ('Advertising'),
('Other'),
('Dynamic Content'),
('User Interaction'),
('Content Provision'),
('Analytics'),
('Financial Services'),
('Hosted Media'),
('Fraud & Security'),
('Social Media'),
@manjeshpv
manjeshpv / backup.sh
Created October 22, 2016 11:07 — forked from cedricvidal/backup.sh
ElasticSearch log index backup & restore scripts
#!/bin/bash
# herein we backup our indexes! this script should run at like 3 AM every first day of the month, after logstash
# rotates to a new ES index and theres no new data coming in to the old one. we grab metadatas,
# compress the data files and backs up to whatever long term storage.
. ./config.sh
echo "Checking that index exist in ES"
if [ `curl -sI $ESURL/$INDEXNAME | grep OK | wc -l` -eq 0 ]
then