most of these require logout/restart to take effect
# Enable character repeat on keydown
defaults write -g ApplePressAndHoldEnabled -bool false
# Set a shorter Delay until key repeat| <template> | |
| I'm only here for troubleshooting | |
| </template> | |
| <style lang="stylus"> | |
| div input | |
| display block | |
| # 0 is too far from ` ;) | |
| set -g base-index 1 | |
| # Automatically set window title | |
| set-window-option -g automatic-rename on | |
| set-option -g set-titles on | |
| #set -g default-terminal screen-256color | |
| set -g status-keys vi | |
| set -g history-limit 10000 |
| local index1, index2 | |
| set index1 to 3 -- 1920 x 1200 | |
| set index2 to 4 -- 1280 x 800 | |
| -- Launch "System Preferences", open the "Displays" options and change to the "Display" tab | |
| tell application "System Preferences" | |
| activate | |
| set the current pane to pane id "com.apple.preference.displays" | |
| reveal anchor "displaysDisplayTab" of pane id "com.apple.preference.displays" |
| #!/bin/sh | |
| # Some things taken from here | |
| # https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
| # Set the colours you can use | |
| black='\033[0;30m' | |
| white='\033[0;37m' | |
| red='\033[0;31m' | |
| green='\033[0;32m' |
| package com.carematics | |
| import static spark.Spark.* | |
| import spark.* | |
| setPort(80) | |
| get new Route('/') { | |
| def handle(Request request, Response response) { | |
| return 'hi jon' |
| import org.vertx.groovy.core.http.RouteMatcher | |
| import groovy.sql.Sql | |
| def rm = new RouteMatcher() | |
| rm.getWithRegEx('.*') { req -> | |
| def db = [url:'jdbc:jtds:sqlserver://AnyServer:1433/AnyDB', user:'test', password:'test', driver:'net.sourceforge.jtds.jdbc.Driver'] | |
| Sql sql = Sql.newInstance(db.url, db.user, db.password, db.driver) | |
| def result = sql.firstRow("select * from AnyTable") | |
| sql.close() |