Paprika doesn't have their API documented, so this is me reverse-engineering it from an Android device
This file contains hidden or 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
What is redash? | |
Redash is database viewer included BI tool inside. Redash has support for querying multiple databases, including: Redshift, Google BigQuery, PostgreSQL, MySQL, Graphite, Presto, Google Spreadsheets, Cloudera Impala, Hive and custom scripts. | |
Prerequisite : | |
1. Install docker | |
2. Install git | |
git clone https://github.com/getredash/redash.git | |
docker-compose -f docker-compose.production.yml run --rm server create_db | |
docker-compose -f docker-compose.production.yml up |
- Crash course: https://robots.thoughtbot.com/a-tmux-crash-course
- The text triumvertate: http://www.drbunsen.org/the-text-triumvirate/ (zsh, vim, and tmux)
- Tmux cheatsheet: https://gist.github.com/andreyvit/2921703
- Tmux Vim plugin: https://github.com/zaiste/tmux.vim
This is more useful than iterm2 because:
This file contains hidden or 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
--- | |
database_connection: &default_connection | |
login_host: "localhost" | |
login_user: "root" | |
login_password: "password" | |
DEFAULT_ENCODING: "utf8" | |
databases: |
This file contains hidden or 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
sudo su | |
mkdir -p /tmp | |
echo 'tmpfs /tmp tmpfs defaults,noatime,mode=1777,nosuid,size=512M,exec 0 0' >> /etc/fstab | |
mount -a | |
apt-get update | |
apt-get -y install git python python-pip python-virtualenv virtualenvwrapper python-dev gcc autoconf g++ python2.7-dev ca-certificates | |
rm -rf /var/tmp/configuration |
This file contains hidden or 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
#!/bin/bash | |
# This script assumes that the git repository is already cloned | |
# App specifics | |
EDXAPP_USER="edxapp" | |
EDXAPP_VENV="/edx/app/edxapp/venvs/edxapp" | |
EDXAPP_DIR="/edx/app/edxapp/edx-platform" | |
# Git specifics | |
export GIT_KEY="/edx/app/course_git_backup/git_backup_deploy" |
This file contains hidden or 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 hashlib import sha1 | |
import random | |
import requests | |
import string | |
import time | |
# these come from your CloudShare account page | |
USER_ID = '' | |
KEY = '' |
This file contains hidden or 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
#create data directory to contain any data we want persisted | |
sudo mkdir /var/lib/boot2docker/data && sudo chown docker:staff /var/lib/boot2docker/data | |
#pull busybox and set it up as a data volume container | |
docker run -v /var/lib/boot2docker/data:/data --name data-share busybox true | |
#pull svendowideit/samba and run it with the data-share container | |
#docker run --rm -v $(which docker):/docker -v /var/run/docker.sock:/docker.sock svendowideit/samba data-share | |
#make sure the samba share runs next time boot2docker starts |
This file contains hidden or 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
# variables common to the lms role, automatically loaded | |
# when the role is included | |
--- | |
# These are variables that default to a localhost | |
# setup and are meant to be overwritten for | |
# different environments. | |
# | |
# Variables in all caps are environment specific | |
# Lowercase variables are internal to the role |
This file contains hidden or 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
#!/bin/bash | |
# Description: Using Docker (requires docker to be installed http://www.docker.io/gettingstarted/ ), spawn a postgresql instance and a dynamically configured treeio instance | |
# Also requires postgresql client tools http://www.postgresql.org/download/linux/ubuntu/ | |
# Run chmod +x to make this file executable then run it: ./docker_create_treeio.sh | |
# Author: Adam Awan | |
# Email: [email protected] | |
# Set the port to forward for Tree.io | |
TREEIO_PORT="80" |