Skip to content

Instantly share code, notes, and snippets.

Avatar

Paulo Ricardo Motta Gomes pauloricardomg

View GitHub Profile
View cqlstress-2i.yaml
### 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 Nov 19, 2015
Cassandra JIRA submission table generator
View submit.sh
#!/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 Oct 7, 2015
Cassandra jvm.options proposal
View jvm.options
###########################################################################
# 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 Jul 3, 2017
Cassandra upgrade rollback sample script
View cassandra_rollback.sh
#!/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 Apr 11, 2014
Cassandra upgrade sample script
View cassandra_upgrade.sh
#!/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 Sep 28, 2020
Nginx configuration for CORS-enabled HTTPS proxy with origin white-list defined by a simple regex
View cors.nginxconf
#
# 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 {
You can’t perform that action at this time.