Skip to content

Instantly share code, notes, and snippets.

View pauloricardomg's full-sized avatar

Paulo Motta pauloricardomg

  • Brazil
View GitHub Profile
@pauloricardomg
pauloricardomg / cqlstress-2i.yaml
Created February 12, 2020 20:45
Stress Yamls
### DML ###
# Keyspace Name
keyspace: stresscql
# The CQL for creating a keyspace (optional if it already exists)
keyspace_definition: |
CREATE KEYSPACE stresscql WITH replication = {'class': 'SimpleStrategy', 'replication_factor': 3};
# Table name
@pauloricardomg
pauloricardomg / submit.sh
Created November 19, 2015 22:19
Cassandra JIRA submission table generator
#!/bin/bash
GIT_USER=pauloricardomg
CASSCI_USER=paulomotta
if [[ $# -lt 2 ]]; then
echo "usage: $0 <suffix> <version1> .. <versionN>"
exit 1
fi
@pauloricardomg
pauloricardomg / jvm.options
Created October 7, 2015 17:25
Cassandra jvm.options proposal
###########################################################################
# jvm.options #
# #
# - all flags defined here will be used by cassandra to startup the JVM #
# - one flag should be specified per line #
# - lines that do not start with '-' will be ignored #
# - only static flags are accepted (no variables or parameters) #
# - dynamic flags will be appended to these on cassandra-env #
###########################################################################
@pauloricardomg
pauloricardomg / cassandra_rollback.sh
Last active July 3, 2017 19:00
Cassandra upgrade rollback sample script
#!/bin/bash
set -e #fail on error
function log {
echo "[`date`] $@"
}
log "Rolling back cassandra. Press <ENTER> to continue.."
read
@pauloricardomg
pauloricardomg / cassandra_upgrade.sh
Created April 11, 2014 20:51
Cassandra upgrade sample script
#!/bin/bash
set -e #fail on error
function log {
echo "[`date`] $@"
}
log "Upgrading cassandra. Press <ENTER> to continue.."
read
@pauloricardomg
pauloricardomg / cors.nginxconf
Last active March 8, 2024 18:31
Nginx configuration for CORS-enabled HTTPS proxy with origin white-list defined by a simple regex
#
# Acts as a nginx HTTPS proxy server
# enabling CORS only to domains matched by regex
# /https?://.*\.mckinsey\.com(:[0-9]+)?)/
#
# Based on:
# * http://blog.themillhousegroup.com/2013/05/nginx-as-cors-enabled-https-proxy.html
# * http://enable-cors.org/server_nginx.html
#
server {