Skip to content

Instantly share code, notes, and snippets.

View solars's full-sized avatar

Christoph Blank solars

View GitHub Profile
#!/bin/bash
cd `dirname $0`
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm" # Load RVM function
rvm use ree
bundle exec ruby app.rb
SEVERE: Allocate exception for servlet HomeServlet
java.lang.SecurityException: Invalid signature file digest for Manifest main attributes
at sun.security.util.SignatureFileVerifier.processImpl(SignatureFileVerifier.java:221)
at sun.security.util.SignatureFileVerifier.process(SignatureFileVerifier.java:176)
at java.util.jar.JarVerifier.processEntry(JarVerifier.java:288)
at java.util.jar.JarVerifier.update(JarVerifier.java:199)
at java.util.jar.JarFile.initializeVerifier(JarFile.java:323)
at java.util.jar.JarFile.getInputStream(JarFile.java:388)
at org.apache.catalina.loader.WebappClassLoader.findResourceInternal(WebappClassLoader.java:2018)
at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1786)
# Task: fetch html, replace img src
doc = Nokogiri::HTML(html)
doc.xpath('//img').each do |image|
image_url = image.attributes['src']
# fetch correct url
image.attributes['src'].value = <new url>
end
doc.to_html # still contains old url?
client.subscribe(config.queue.name, :ack => 'client') do |msg|
begin
send_confirmation(data)
rescue Exception => e
subject = "[ReservationMailer #{config.templates.endpoint}] Error processing message: #{e.message}"
DaemonKit.logger.error subject
DaemonKit.logger.exception e
puts "sending email"
[ERROR] COMPILATION ERROR :
[INFO] -------------------------------------------------------------
[ERROR] /home/christoph/platform/ws-bootstrapping/src/main/java/org/insemtives/ws/server/GateWSBootstrappingService.java:[15,16] package org.slf4j does not exist
[ERROR] /home/christoph/platform/ws-bootstrapping/src/main/java/org/insemtives/ws/server/GateWSBootstrappingService.java:[16,16] package org.slf4j does not exist
[ERROR] /home/christoph/platform/ws-bootstrapping/src/main/java/org/insemtives/ws/server/GateWSBootstrappingService.java:[25,22] cannot find symbol
symbol : class Logger
location: class org.insemtives.ws.server.GateWSBootstrappingService
# user.rb
class User < ActiveRecord::Base
# Include default devise modules. Others available are:
# :token_authenticatable, :encryptable, :confirmable, :lockable, :timeoutable and :omniauthable
devise :database_authenticatable, :registerable,
:recoverable, :rememberable, :trackable, :validatable, :omniauthable
# Setup accessible (or protected) attributes for your model
attr_accessible :email, :password, :password_confirmation, :remember_me
JQ.getJSON(getServer(), args, function(data) {
alert("close response received");
});
fired on JQ(window).unload(function()
// receiving it from firefox on reload
// not receiving it from chrome on reload
body
div#container.showgrid
div#header
| the header
div#sidebar
| the left
div#content
form action="/" method="post" enctype="multipart/form-data"
| Image Url:
// This import applies a global reset to any page that imports this stylesheet.
@import "blueprint/reset";
// To configure blueprint, edit the partials/base.sass file.
@import "partials/base";
// Import all the default blueprint modules so that we can access their mixins.
@import "blueprint";
// Import the non-default scaffolding module.
// This import applies a global reset to any page that imports this stylesheet.
@import "blueprint/reset";
// To configure blueprint, edit the partials/base.sass file.
@import "partials/base";
// Import all the default blueprint modules so that we can access their mixins.
@import "blueprint";
// Import the non-default scaffolding module.