Tested in Mac OS X: super == command
Open/Goto
- super+t: go to file
- super+ctrl+p: go to project
- super+r: go to methods
| #!/bin/sh | |
| ### | |
| # SOME COMMANDS WILL NOT WORK ON macOS (Sierra or newer) | |
| # For Sierra or newer, see https://github.com/mathiasbynens/dotfiles/blob/master/.macos | |
| ### | |
| # Alot of these configs have been taken from the various places | |
| # on the web, most from here | |
| # https://github.com/mathiasbynens/dotfiles/blob/5b3c8418ed42d93af2e647dc9d122f25cc034871/.osx |
| //This sample is how to use websocket of Tomcat. | |
| package wsapp; | |
| import java.io.IOException; | |
| import java.nio.ByteBuffer; | |
| import java.nio.CharBuffer; | |
| import java.util.ArrayList; | |
| import org.apache.catalina.websocket.MessageInbound; | |
| import org.apache.catalina.websocket.StreamInbound; | |
| import org.apache.catalina.websocket.WebSocketServlet; |
| This playbook has been removed as it is now very outdated. |
| description "Tomcat Server" | |
| start on runlevel [2345] | |
| stop on runlevel [!2345] | |
| respawn | |
| respawn limit 10 5 | |
| # run as non privileged user | |
| # add user with this command: | |
| ## adduser --system --ingroup www-data --home /opt/apache-tomcat apache-tomcat |
| after "deploy:symlink", "deploy:restart_workers" | |
| after "deploy:restart_workers", "deploy:restart_scheduler" | |
| ## | |
| # Rake helper task. | |
| # http://pastie.org/255489 | |
| # http://geminstallthat.wordpress.com/2008/01/27/rake-tasks-through-capistrano/ | |
| # http://ananelson.com/said/on/2007/12/30/remote-rake-tasks-with-capistrano/ | |
| def run_remote_rake(rake_cmd) | |
| rake_args = ENV['RAKE_ARGS'].to_s.split(',') |
| (use 'calx) | |
| (def benchn 40) | |
| (def ocl-src "int fib(int a) { | |
| int b = -1; | |
| int c = 1; | |
| int d; | |
| int i; | |
| for (i=0;i<=a;i++) { | |
| d = c + b; |
| #!/bin/sh | |
| set -e | |
| CURRENT_BRANCH="$(git symbolic-ref HEAD)" | |
| CURRENT_BRANCH_UPSTREAM="$(git rev-parse --symbolic-full-name @{u} 2> /dev/null)" | |
| # Update the remote-tracking branches for every remote for which | |
| # remote.<name>.skipDefaultUpdate is not true: | |
| git remote update default |
| # Want to show hidden files and folders in your TextMate project drawer? Simple, just modify the file and folder patterns in TextMate's preferences. | |
| # Instructions: | |
| # Go to TextMate > Preferences... | |
| # Click Advanced | |
| # Select Folder References | |
| # Replace the following: | |
| # File Pattern |
| #!/bin/bash | |
| # NOTE: this is an OSX launchd wrapper shell script for Tomcat (to be placed in $CATALINA_HOME/bin) | |
| CATALINA_HOME=/Users/username/tomcat | |
| function shutdown() { | |
| date | |
| echo "Shutting down Tomcat" | |
| $CATALINA_HOME/bin/catalina.sh stop |