$ mkdir superset
$ cd superset
$ wget https://gist.githubusercontent.com/ariarijp/f04c51feff8bfff73a53e7958474a942/raw/db67ddac46e53dbd3db139c3e7abdf8a4f70f504/run.sh
$ chmod +x run.sh
$ ./run.sh
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
export REDASH_BRANCH=v0.10.1.b1834 | |
export REDASH_VERSION=0.10.1.b1834 | |
wget https://raw.githubusercontent.com/getredash/redash/$REDASH_BRANCH/setup/ubuntu/bootstrap.sh | |
sudo -E bash bootstrap.sh |
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
import os | |
from flask import Flask, flash, redirect, render_template, request, session, abort, url_for | |
app = Flask(__name__) | |
app.secret_key = 'VERY_VERY_SECRET' | |
app.config['SESSION_TYPE'] = 'filesystem' | |
@app.route('/') | |
def home(): |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | |
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
config.vm.box = "redash/dev" | |
config.vm.synced_folder "./", "/opt/redash/current" | |
config.vm.network "forwarded_port", guest: 5000, host: 9001 |
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
FROM centos:7 | |
MAINTAINER ariarijp | |
RUN yum install -y sudo curl | |
RUN sed -i 's/Defaults requiretty/#Defaults requiretty/' /etc/sudoers | |
RUN curl -fsSL https://mackerel.io/assets/files/scripts/setup-yum.sh | sh | |
RUN yum install -y mackerel-agent-plugins | |
CMD mackerel-plugin-php-fpm -h |
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/env python | |
import commands | |
import json | |
import os | |
import re | |
import sys | |
import time | |
cmd = '/usr/local/bin/soundmeter -s 10 -c' | |
output = commands.getoutput(cmd) |
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
ntpdate ntp.nict.jp | |
sed -i s/archive.ubuntu.com/ftp.jaist.ac.jp/ /etc/apt/sources.list | |
apt-get update | |
apt-get install -y build-essential python-dev python-setuptools | |
easy_install pip | |
pip install ansible |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
$td_agent_conf = <<CONFIG | |
<source> | |
type tail | |
format apache | |
path /var/log/apache2/access.log | |
pos_file /var/log/td-agent/kibana-apache-access.pos | |
tag kibana.apache.access |