Skip to content

Instantly share code, notes, and snippets.

View DrPep's full-sized avatar

Nigel Pepper DrPep

View GitHub Profile
@DrPep
DrPep / manifest.yml
Last active August 29, 2015 14:17
CF Manifest for Java Spring app
---
applications:
- name: <appname>
path: ./build/libs/<warfile>.war
memory: 2GB
env:
JAVA_OPTS: -Dspring.profiles.active=acceptance
@DrPep
DrPep / ErrorHandlerConfiguration.java
Created March 20, 2015 04:17
Spring error handling
import org.springframework.boot.context.embedded.ConfigurableEmbeddedServletContainer;
import org.springframework.boot.context.embedded.EmbeddedServletContainerCustomizer;
import org.springframework.boot.context.embedded.ErrorPage;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.http.HttpStatus;
@Configuration
public class ErrorHandlerConfiguration {
# This sets default key to control-a instead of control-b.
# I also recommend remapping caps lock to control in system preferences
set-option -g prefix C-a
bind-key C-w last-window
set -g base-index 1
set-option -g default-terminal "screen-256color"
# act like vim
setw -g mode-keys vi
bind h select-pane -L