Skip to content

Instantly share code, notes, and snippets.

View oc's full-sized avatar

Ole Christian Rynning oc

  • UPPERCASE
  • Oslo, Norway
View GitHub Profile
@oc
oc / gist:1001934
Created June 1, 2011 07:37
Mac Stuff
SizeUp - window manager you want! (http://www.irradiatedsoftware.com)
TextMate - best simple GUI-texteditor (alternative: Aquamacs - if you like emacs)
Alfred - install through AppStore
XCode - download latest from Apple (i think AppStore has it)
Sequel Pro - if you use MySQL: http://www.sequelpro.com/
OmniGraffle - if you create a lot of architecture sketches, UML, etc (expensive!) - http://www.omnigroup.com/products/OmniGraffle/
homebrew - must have package manager for installing a lot of pkgs: https://github.com/mxcl/homebrew | http://mxcl.github.com/homebrew/
webapp git:(citrus) ✗∴ ➜ mvn verify -DskipTests -Pcitrus -e
[INFO] Error stacktraces are turned on.
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Booking: Web Application 1.4.5-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.4.3:resources (default-resources) @ booking ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] --- junit:1.0-SNAPSHOT:runtest (default) @ booking ---
[INFO] Technique Number = 0
[INFO] Fetching priority list...
---------------------------------------------------
constituent[0]: file:/opt/maven/lib/aether-api-1.7.jar
constituent[1]: file:/opt/maven/lib/aether-connector-wagon-1.7.jar
constituent[2]: file:/opt/maven/lib/aether-impl-1.7.jar
constituent[3]: file:/opt/maven/lib/aether-spi-1.7.jar
constituent[4]: file:/opt/maven/lib/aether-util-1.7.jar
constituent[5]: file:/opt/maven/lib/commons-cli-1.2.jar
[INFO] --- junit:1.0-SNAPSHOT:runtest (default) @ booking ---
[INFO] Technique Number = 6
[INFO] Fetching priority list...
java.lang.NullPointerException
at no.citrus.localprioritization.visitor.ClassOrInterfaceDeclarationVisitor.visit(ClassOrInterfaceDeclarationVisitor.java:68)
at no.citrus.localprioritization.visitor.ClassOrInterfaceDeclarationVisitor.visit(ClassOrInterfaceDeclarationVisitor.java:15)
at japa.parser.ast.body.MethodDeclaration.accept(MethodDeclaration.java:97)
at japa.parser.ast.visitor.GenericVisitorAdapter.visit(GenericVisitorAdapter.java:412)
at japa.parser.ast.body.EnumDeclaration.accept(EnumDeclaration.java:61)
at no.citrus.localprioritization.visitor.CompilationUnitVisitor.visit(CompilationUnitVisitor.java:43)
@oc
oc / pom.xml
Created May 16, 2011 12:22
Maven trace
[INFO] --- junit:1.0-SNAPSHOT:runtest (default) @ booking ---
[INFO] Technique Number = 0
[INFO] Fetching priority list...
[INFO] Running test: no.bring.booking.domain.AddressesTest
[WARNING] Test failed: shouldHaveEmptySenderByDefault(no.bring.booking.domain.AddressesTest)no/bring/booking/types/Party
[WARNING] Test failed: shouldHaveEmptyRecipientByDefault(no.bring.booking.domain.AddressesTest)no/bring/booking/domain/JpaParty
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 2.523s
@oc
oc / rc-avi2ipad.sh
Created April 29, 2011 21:29
Source this
FFMPEG=/opt/ffmpeg/bin/ffmpeg
function avi2ipad() {
for file in $*; do
title=$(basename ${file} .avi)
outfile=${title}.mp4
timestamp=$(date "+%Y-%m-%d %H:%M:%S")
if [[ -f ${file} ]]; then
echo "[${timestamp}] Converting ${file} to ${outfile}"
package bekkopen.servlet;
import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
@oc
oc / Trace
Created February 24, 2011 20:34
Rackup file
PROJECTNAME git:(master) ✗:➜ rake war
(in /Users/oc/dev/CUST/PROJECTNAME)
Building war...
rm -f PROJECTNAME-0.2.war
Creating PROJECTNAME-0.2.war
PROJECTNAME git:(master) ✗:➜ java -jar PROJECTNAME-0.2.war
[Winstone 2011/02/24 21:30:44] - Beginning extraction from war file
[Winstone 2011/02/24 21:30:45] - WARNING: The Servlet 2.4/2.5 spec XSD was unavailable inside the winstone classpath. Will be retrieved from the web if required (slow)
[Winstone 2011/02/24 21:30:45] - No webapp classes folder found - /private/var/folders/j5/j5DB04hkHXmebvTa5YmD-E+++TM/-Tmp-/winstone8064226446103174725webroot/PROJECTNAME-0.2.war/WEB-INF/classes
[webapp 2011/02/24 21:30:54] - unable to create shared application instance
@oc
oc / maven-assembly-plugin.xml
Created January 14, 2011 12:09
Plugin-definition for maven-shade-plugin
<project>
...
<build>
<plugins>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
@oc
oc / Gemfile
Created January 10, 2011 16:04
source :rubygems
# .. dine andre gemmer
gem "ffi", '~> 1.0.0'