- 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
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
import curses | |
from curses import KEY_RIGHT, KEY_LEFT, KEY_DOWN, KEY_UP | |
from random import randint | |
WIDTH = 120 | |
HEIGHT = 30 | |
MAX_X = WIDTH - 2 | |
MAX_Y = HEIGHT - 2 | |
SNAKE_LENGTH = 5 |
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
function shuffle(a) { | |
for (let i = a.length; i; i--) { | |
let j = Math.floor(Math.random() * i); | |
[a[i - 1], a[j]] = [a[j], a[i - 1]]; | |
} | |
} |
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
""" | |
解决mac下解压zip文件乱码问题 | |
代码参考: | |
http://stackoverflow.com/questions/9431918/extracting-zip-file-contents-to-specific-directory-in-python-2-7 | |
http://www.zhihu.com/question/20523036/answer/35225920 | |
http://stackoverflow.com/questions/4917284/extract-files-from-zip-without-keeping-the-structure-using-python-zipfile | |
编码: https://docs.python.org/2.4/lib/standard-encodings.html |
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
#If you don't have colorize gem, do install it via 'gem install colorize' | |
#Update | |
#Add cache categories function | |
require 'csv' | |
require 'readline' | |
require 'colorize' | |
require 'json' | |
CACHED_CATEGORIES_FILE = "cache_categories.json" | |
cache_categories = JSON.parse(File.open(CACHED_CATEGORIES_FILE).read) rescue {} |
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 | |
################################ | |
# OS X Install ISO Creater # | |
# # | |
# Author: shela # | |
################################ | |
####################################### | |
# Declarations |
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
App({ | |
/** | |
* [request description] | |
* @param {[type]} method [description] | |
* @param {[type]} url [description] | |
* @param {[type]} data [description] | |
* @param {[type]} header [description] | |
* @return {[type]} [description] | |
*/ |
The driver situation with Apple Bluetooth wireless keyboards and Windows 10 is horrible, even with the latest BootCamp drivers. Fortunately, a workaround is available, if you're patient.
- Turn on the keyboard.
- Press and hold
Command + w
until the keyboard light begins blinking, indicating the keyboard is ready to pair. - Use Windows Bluetooth settings to pair the keyboard, entering the same code (e.g.
123456 Enter
) on both internal and external keyboards.
Pairing the keyboard is very trial and error. 9/10 times, Windows will complain that the keyboard is not available for pairing. Just keep trying.