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
droppath() | |
{ | |
PATTERN="$1" | |
PATH=$(echo $PATH | \ | |
sed -e "s;:?[^:]*$PATTERN[^:]*;;g" \ | |
-e "s;[^:]*$PATTERN[^:]*:\?;;g" \ | |
-e "s;::;:;g") | |
} | |
usemaven() |
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
<servlet> | |
<servlet-name>default</servlet-name> | |
<servlet-class>org.eclipse.jetty.servlet.DefaultServlet</servlet-class> | |
<init-param> | |
<param-name>cacheControl</param-name> | |
<param-value>max-age=3600,public</param-value> | |
</init-param> | |
</servlet> |
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
<security-constraint> | |
<web-resource-collection> | |
<!-- from RFC 4918 --> | |
<web-resource-name>Enabled WebDAV Methods</web-resource-name> | |
<url-pattern>/*</url-pattern> | |
<!-- Sec: 9.1 --> | |
<http-method>PROPFIND</http-method> | |
<!-- Sec: 9.2 --> | |
<http-method>PROPPATCH</http-method> | |
<!-- Sec: 9.3 --> |
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/bash | |
# | |
# Shows git information in your bash prompt. | |
# Git Branch Name | |
# Git Dirty State (uncommitted changes) | |
# Git "Behind" Count (are you up to date?) | |
# | |
# ========================================= | |
# To use: | |
# |
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/bash | |
let count=0 | |
while mvn test $* 2>&1 > target/lastbuild.log | |
do | |
now=`date` | |
echo "Test Run $count - $now" >> target/looptest.log | |
let count=$count+1 | |
done |
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
sudo apt-get install nvidia-current | |
sudo apt-get install vim-gtk | |
# reboot | |
sudo apt-get install gnome | |
# -- Undo global menus | |
sudo apt-get remove appmenu-gtk3 appmenu-gtk appmenu-qt | |
# -- Remove overlay scrollbars | |
sudo apt-get remove liboverlay-scrollbar-0.2-0 liboverlay-scrollbar3-0.2-0 overlay-scrollbar | |
# logout | |
# login (using gnome-shell as default) |
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
<!-- Trim oddball JSP request URIs --> | |
<Call name="addRule"> | |
<Arg> | |
<New class="org.eclipse.jetty.rewrite.handler.RewriteRegexRule"> | |
<Set name="regex">(.*)\.jsp(\00.*)</Set> | |
<Set name="replacement">$1.jsp</Set> | |
</New> | |
</Arg> | |
</Call> |
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
package os; | |
import java.io.File; | |
import java.io.IOException; | |
public class FileNullCheck | |
{ | |
public static void main(String[] args) | |
{ | |
File tmp = new File("a.jsp"); |
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
package os; | |
import java.io.File; | |
import java.io.IOException; | |
import java.nio.file.Files; | |
import java.nio.file.Path; | |
import java.nio.file.Paths; | |
public class FileNullCheck | |
{ |
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
/* | |
NaturalOrderComparator.java -- Perform 'natural order' comparisons of strings in Java. | |
Copyright (C) 2003 by Pierre-Luc Paour <natorder@paour.com> | |
Based on the C version by Martin Pool, of which this is more or less a straight conversion. | |
Copyright (C) 2000 by Martin Pool <mbp@humbug.org.au> | |
This software is provided 'as-is', without any express or implied | |
warranty. In no event will the authors be held liable for any damages | |
arising from the use of this software. |
OlderNewer