This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/perl -w | |
################################################################################ | |
# Copyright 2004-2011 MERETHIS | |
# Centreon is developped by : Julien Mathis and Romain Le Merlus under | |
# GPL Licence 2.0. | |
# | |
# This program is free software; you can redistribute it and/or modify it under | |
# the terms of the GNU General Public License as published by the Free Software | |
# Foundation ; either version 2 of the License. | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"AWSTemplateFormatVersion":"2010-09-09", | |
"Description":"(0017) Cassandra cluster CloudFormation template file.", | |
"Parameters":{ | |
"VpcId":{ | |
"Description":"VpcId of your existing Virtual Private Cloud (VPC)", | |
"Type":"AWS::EC2::VPC::Id" | |
}, | |
"FirstSubnetId":{ | |
"Description":"First subnet ID in your Virtual Private Cloud (VPC)", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- mysqlhotcopy.org 2016-05-11 09:31:09.000000000 +0300 | |
+++ mysqlhotcopy 2017-12-13 13:57:51.972468660 +0300 | |
@@ -239,7 +239,7 @@ | |
$to_other_database=0; | |
if (defined($tgt_name) && $tgt_name =~ m:^\w+$: && @db_desc <= 1) | |
{ | |
- $tgt_dirname = "$datadir/$tgt_name"; | |
+ $tgt_dirname = "$datadir/" . encode_identifier_as_filename($tgt_name); | |
$to_other_database=1; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Add similar action to the Task Scheduler: | |
# %SystemRoot%\system32\WindowsPowerShell\v1.0\powershell.exe -file c:\utils\mailbox_report.ps1 | |
# | |
$smtpServer = "mail.server.com" | |
$from = "support@server.com" | |
$to = "admin@server.com" | |
$exchServer = "vm-exch16" | |
$file = "C:\Utils\MBSizes.csv" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Nagios plugin to check Apache Kafka for under replicated partitions | |
# Zookeeper comma separated addresses are required as a 1st parameter | |
# | |
# https://gist.github.com/jazzl0ver | |
# | |
ZK=$1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Starting October 15, Dropbox has fucked all his CentOS 6 (and many other) users | |
# by changing OS requirements: | |
# ---- | |
# We are reaching out to let you know that device(s) which do not meet our new | |
# operating system requirements have been logged out of the Dropbox desktop | |
# application. Dropbox has ended support for Ubuntu 13.10 and below, and Fedora 20 | |
# and below. | |
# ... | |
# Your device(s) must now be on glibc 2.19 or higher to log back into the Dropbox | |
# desktop application |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# You must accept the Oracle Binary Code License | |
# http://www.oracle.com/technetwork/java/javase/terms/license/index.html | |
# usage: get_jdk.sh <jdk_version> <ext> | |
# jdk_version: 8(default) or 9 | |
# ext: rpm or tar.gz | |
jdk_version=${1:-8} | |
ext=${2:-rpm} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Firecamp Cassandra backup script | |
# Example: | |
# ./fc_cass_backup.sh -r us-east-1 -c firecamp-qa -s cass-qa -k '14 days' -p | |
# where: | |
# -r - region | |
# -c - firecamp cluster name | |
# -s - firecamp service name | |
# -k - days to purge backup after in the date tool format |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# Firecamp Cassandra restore script | |
# Example: | |
# ./fc_cass_restore.sh -r us-east-1 -c firecamp-qa -s cass-qa -d 2019-05-28 -u bd751a2269a44a2e52898bc0dd5cb2ac | |
# where: | |
# -r - region | |
# -c - firecamp cluster name (MUST NOT match the cluster where backup was taken) | |
# -s - firecamp cluster's service name (MAY match the name of the backed up service, but not recommended) | |
# -d - backup creation date (Created tag of the volumes snapshots) |