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 bottle | |
# monkey patch bottle to strip trailing slash if result not found | |
app = bottle.app() | |
router_match = app.router.match | |
def our_match(environ): | |
try: | |
targets, urlargs = router_match(environ) | |
except HTTPError as e: | |
if e.status == 404 and environ['PATH_INFO'].endswith('/'): |
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
set -g default-terminal "screen-256color" | |
set -s escape-time 0 | |
set -g base-index 1 | |
setw -g aggressive-resize on | |
set-option -g status-bg default | |
set-option -g status-fg black | |
set-option -g message-bg yellow | |
set-option -g message-fg black | |
set-option -g history-limit 32768 |