Skip to content

Instantly share code, notes, and snippets.

Paulo Ricardo Motta Gomes pauloricardomg

Block or report user

Report or block pauloricardomg

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@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 Oct 6, 2019
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.