- Download docker-compose.yml to dir named
sentry
- Change
SENTRY_SECRET_KEY
to random 32 char string - Run
docker-compose up -d
- Run
docker-compose exec sentry sentry upgrade
to setup database and create admin user - (Optional) Run
docker-compose exec sentry pip install sentry-slack
if you want slack plugin, it can be done later - Run
docker-compose restart sentry
- Sentry is now running on public port
9000
import * as React from 'react'; | |
import * as ReactDOM from 'react'; | |
interface IProps { | |
clientID: string; | |
currency: string; | |
label: string; | |
layout: string; | |
shape: string; |
Relay Notes | |
=========== | |
- Define a schema, that is used for _both_ server side endpoint setup & frontend graphql compilation | |
- node only for now, some graphql ports | |
- Relay has a strict specification of how a graphql schema is set up: https://facebook.github.io/relay/docs/graphql-relay-specification.html | |
- tree children are called "plural links" (see _writePluralLink()) | |
This function create a saga that runs the sagas in the startingSagas
array and takes
the actions with type indicated by changeActionType
to replace the running sagas.
The replacing actions must have a field sagas
cointaining the array with the new sagas.
function createDynamicSaga (changeActionType, startingSagas) {
function* _start (sagas) {
try {
yield sagas
This procedure explains how to install MySQL using Homebrew on macOS Sierra 10.12
- Installing Homebrew is effortless, open Terminal and enter :
$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
- Note: Homebrew will download and install Command Line Tools for Xcode 8.0 as part of the installation process.
At this time of writing, Homebrew has MySQL version 5.7.15 as default formulae in its main repository :
tinymce.init({ | |
plugins: 'charactercount', | |
elementpath: false | |
}); |
So, you're a developer testing lots of codes and you want to ensure that you don't accidentally send out email to people during testing.
However, you also want to actually view emails in a real email client, not a console.
This is how you can do it using Ubuntu and Exim ensuring that the email gets sent out through Google apps.
var gulp = require('gulp'); | |
var sourcemaps = require('gulp-sourcemaps'); | |
var source = require('vinyl-source-stream'); | |
var buffer = require('vinyl-buffer'); | |
var browserify = require('browserify'); | |
var watchify = require('watchify'); | |
var babel = require('babelify'); | |
function compile(watch) { | |
var bundler = watchify(browserify('./src/index.js', { debug: true }).transform(babel)); |
import React from 'react'; | |
let lastScrollY = 0; | |
let ticking = false; | |
class App extends React.Component { | |
componentDidMount() { | |
window.addEventListener('scroll', this.handleScroll, true); | |
} |