This file contains 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 parse_git_branch { | |
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/[\1]/' | |
} | |
BOLD=$(tput bold) | |
RESET=$(tput sgr0) | |
#PS1="\w\[$BOLD\]\$(parse_git_branch)\[$RESET\]$ " #for presenting... | |
PS1="\[\e]0;\u@\h: \w\a\]${debian_chroot:+($debian_chroot)}\u@\h:\w\[$BOLD\]\$(parse_git_branch)\[$RESET\]$ " |
This file contains 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/sh | |
GIT_BRANCH=`git branch 2>/dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/'` | |
GRAILS_SCRIPT=$GRAILS_HOME/bin/grails | |
if [ $GIT_BRANCH ]; then | |
GRAILS_WORK_DIR=`echo ~`/.grails_$GIT_BRANCH`` | |
echo "** grails working directory: $GRAILS_WORK_DIR" | |
$GRAILS_SCRIPT -Dgrails.work.dir=$GRAILS_WORK_DIR $@ | |
else | |
echo "** default grails working directory" |
This file contains 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 switchGrails() { | |
echo "Switching to groovy version: $1" | |
echo "Switching to grails version: $2" | |
sudo rm /usr/local/{groovy,grails} | |
sudo ln -s /usr/lib/groovy/$1 /usr/local/groovy | |
sudo ln -s /usr/lib/grails/$2 /usr/local/grails | |
echo "Done!" | |
ls -latr /usr/local/{groovy,grails} | |
} |
This file contains 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
$ arduino | |
java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path thrown while loading gnu.io.RXTXCommDriver | |
Exception in thread "main" java.lang.UnsatisfiedLinkError: no rxtxSerial in java.library.path | |
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1734) | |
at java.lang.Runtime.loadLibrary0(Runtime.java:823) | |
at java.lang.System.loadLibrary(System.java:1028) | |
at gnu.io.CommPortIdentifier.<clinit>(CommPortIdentifier.java:123) | |
at processing.app.Editor.populateSerialMenu(Editor.java:965) | |
at processing.app.Editor.buildToolsMenu(Editor.java:717) | |
at processing.app.Editor.buildMenuBar(Editor.java:502) |
This file contains 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
int RED_PIN = 3; | |
int GREEN_PIN = 6; | |
int BLUE_PIN = 11; | |
int MAXSPEED = 255; | |
int SPEEDPAD = 80; | |
int tick = 1; | |
int rSpeed = 0; | |
int rval = 0; | |
int rGoal = 0; |
This file contains 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
No signature of method: com.example.FooCommandBean.validate() is applicable for argument types: () values: [] Possible solutions: wait() | |
groovy.lang.MissingMethodException: No signature of method: com.example.FooCommandBean.validate() is applicable for argument types: () values: [] | |
Possible solutions: wait() | |
at com.example.FooCommandBeanTests.testBar(FooCommandBeanTests.groovy:16) | |
https://github.com/ColinHarrington/Grails-Examples/blob/master/CommandIntegrationTest/test/integration/com/example/FooCommandBeanTests.groovy |
This file contains 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
grails.project.class.dir = "target/classes" | |
grails.project.test.class.dir = "target/test-classes" | |
grails.project.test.reports.dir = "target/test-reports" | |
//grails.project.war.file = "target/${appName}-${appVersion}.war" | |
grails.project.dependency.resolution = { | |
// inherit Grails' default dependencies | |
inherits("global") { | |
// uncomment to disable ehcache | |
// excludes 'ehcache' | |
} |
This file contains 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
/demo/bookstore[master]$ git branch -a | |
* master | |
remotes/release-1.0 | |
remotes/release-1.0.x | |
remotes/tags/releases | |
remotes/trunk |
This file contains 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
section: screens | |
Linux: | |
OSX: | |
ctrl = ctrl | |
alt = meta | |
super = alt | |
end | |
section: links | |
Linux: | |
up = OSX |
This file contains 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
$ ssh-keygen -t rsa -C "[email protected]" | |
Generating public/private rsa key pair. | |
Enter file in which to save the key (/home/<your_user>/.ssh/id_rsa): | |
Enter passphrase (empty for no passphrase): | |
Enter same passphrase again: | |
Your identification has been saved in /home/<your_user>/.ssh/id_rsa. | |
Your public key has been saved in /home/<your_user>/.ssh/id_rsa.pub. | |
The key fingerprint is: | |
37:6c:6c:f3:a8:67:20:4f:94:b0:5b:85:fd:6c:8b:e1 [email protected] | |
The key's randomart image is: |
OlderNewer