Skip to content

Instantly share code, notes, and snippets.

View azvoleff's full-sized avatar

Alex Zvoleff azvoleff

View GitHub Profile
@azvoleff
azvoleff / Production_setup.rst
Last active August 14, 2020 18:55
CartoDB install on 16.04

Production CartoDB setup

This is a guide for setting up a production instance of CartoDB after setting up the above.

Setup production database

RAILS_ENV=production bundle exec rake db:migrate RAILS_ENV=production bundle exec rake db:setup

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
var square = ee.Kernel.square({radius: 70, units:'meters'});
var img2 = LS217072.addBands(LS217072.select(['B2','B3','B4'])
.multiply(255).byte().entropy(square));
var addpixid = function(image){
var ID = image.select(['B1'],['ID']).add(image.select('B4'))
.add(image.select('B2')).add(image.select('B3'));
return image.addBands(ID);
};
img2=addpixid(img2);
#!/bin/sh
#
# chkconfig: - 85 15
ROOT="/home/ubuntu/cartodb"
USER="ubuntu"
ENVIRONMENT="development"
QUEUES="*"
COUNT=1
#!/bin/bash
### BEGIN INIT INFO
# Provides: cartodb-rails-server
# Required-Start: $local_fs $remote_fs $network $syslog
# Required-Stop: $local_fs $remote_fs $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: starts the CartoDB rails web server
# Description: starts CartoDB rails server
#!/bin/bash
#
# An example init script for running a Node.js process as a service
# using Forever as the process monitor. For more configuration options
# associated with Forever, see: https://github.com/nodejitsu/forever
#
# You will need to set the environment variables noted below to conform to
# your use case, and change the init info comment block.
#
# This was written for Debian distributions such as Ubuntu, but should still
#!/bin/bash
#
# An example init script for running a Node.js process as a service
# using Forever as the process monitor. For more configuration options
# associated with Forever, see: https://github.com/nodejitsu/forever
#
# You will need to set the environment variables noted below to conform to
# your use case, and change the init info comment block.
#
# This was written for Debian distributions such as Ubuntu, but should still
# This is a basic VCL configuration file for varnish. See the vcl(7)
# man page for details on VCL syntax and semantics.
#
# Default backend definition. Set this to point to your content
# server.
#
# backend default {
# .host = "127.0.0.1";
# .port = "8080";
# }
@azvoleff
azvoleff / varnish
Last active August 29, 2015 14:23
/etc/init.d/varnish
#! /bin/sh
### BEGIN INIT INFO
# Provides: varnish
# Required-Start: $local_fs $remote_fs $network
# Required-Stop: $local_fs $remote_fs $network
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start HTTP accelerator
# Description: This script provides a server-side cache
@azvoleff
azvoleff / varnish
Last active August 29, 2015 14:23 — forked from reifman/varnish
# Configuration file for varnish
#
# /etc/init.d/varnish expects the variables $DAEMON_OPTS, $NFILES and $MEMLOCK
# to be set from this shell script fragment.
#
# Should we start varnishd at boot? Set to "no" to disable.
START=yes
# Maximum number of open files (for ulimit -n)