This file contains hidden or 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
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-surefire-plugin</artifactId> | |
<configuration> | |
<skip>true</skip> | |
</configuration> | |
<executions> | |
<execution> | |
<id>surefire-it</id> | |
<phase>integration-test</phase> |
This file contains hidden or 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
:write ++enc=utf-8 russian.txt | |
set encoding | |
set fileencoding | |
iconv -f utf-16 -t utf-8 file.xml > file.utf8.xml |
This file contains hidden or 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 | |
ROOTDIR=. | |
if [[ $1 = "hudson" ]] ; then | |
ROOTDIR="`pwd`/<ear-project-dir>" | |
else | |
ROOTDIR="." | |
fi | |
TARGET="$ROOTDIR/target" | |
ID="$ROOTDIR/src/main/cert/id_dsa" | |
USER=<username>@<hostname> |
This file contains hidden or 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 | |
TOKEN=`curl -u $1:$2 -silent -k -X GET https://www.pivotaltracker.com/services/v3/tokens/active| sed -n -e 's/.*<guid>\(.*\)<\/guid>.*/\1/p'` | |
#curl -H "X-TrackerToken: $TOKEN" -X GET http://www.pivotaltracker.com/services/v3/projects | |
STORIES=/tmp/stories.xml | |
curl -H "X-TrackerToken: $TOKEN" -silent -X GET "http://www.pivotaltracker.com/services/v3/projects/$3/stories" > $STORIES | |
EMAIL_RECIPIENTS="$4" | |
EMAIL_SUBJECT="Story status fra Pivotal Tracker for project id: $3" | |
EMAIL_MSG=/tmp/stories_sum | |
echo $STORIES | |
echo "Stories loaded `date +%Y-%m-%d`" > $EMAIL_MSG |
This file contains hidden or 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 | |
# If we're root color the thing red | |
if [[ ${EUID} == 0 ]] ; then | |
PS1="\n\033[0;31m[\u@\h]\033[1;34m[\w]\ | |
\n\033[0;36m[\t]\033[0m\\$ " | |
else | |
PS1="\n\033[0;32m[\u@\h]\033[1;35m[\w]\ | |
\n\033[0;36m[\t]\033[0m\\$ " | |
fi |
This file contains hidden or 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 | |
sudo port -d selfupdate | |
sudo port upgrade outdated | |
#Or alternatively | |
sudo port upgrade installed |
This file contains hidden or 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
/* ... extract */ | |
public void stopServer() { | |
try { | |
socket.close(); | |
} catch (Exception e) { | |
logger.warn("An exception occured closing the socket", e); | |
} | |
} |
This file contains hidden or 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
<%@ page language="java" contentType="text/html;charset=UTF-8" %> | |
<%@ page import="org.apache.log4j.Level" %> | |
<%@ page import="org.apache.log4j.LogManager" %> | |
<%@ page import="org.apache.log4j.Logger" %> | |
<%@ page import="java.util.HashMap" %> | |
<%@ page import="java.util.Enumeration" %> | |
<%@ page import="java.util.Set" %> | |
<%@ page import="java.util.Arrays" %> | |
<% | |
/* This was originally suggested by Nelz on http://nelz.net/2008/04/08/log4j-runtime-configuration |
This file contains hidden or 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 addLineNumbersToAllGists() { | |
jQuery('.gist').each( function() { | |
_addLineNumbersToGist('#' + jQuery(this).attr('id')); | |
}); | |
} | |
function addLineNumbersToGist(id) { | |
_addLineNumbersToGist('#gist-' + id); | |
} |
This file contains hidden or 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 | |
function nameit() { | |
name="" | |
for arg in $@; do | |
name="${name} ${arg}"; | |
done | |
echo -e '\e]0;'${name}'\07' | |
} |