Skip to content

Instantly share code, notes, and snippets.

View Dahie's full-sized avatar

Daniel Senff Dahie

View GitHub Profile
<!DOCTYPE html>
<html>
<head>
<title>Title</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<style type="text/css">
@import url(https://fonts.googleapis.com/css?family=Yanone+Kaffeesatz);
@import url(https://fonts.googleapis.com/css?family=Droid+Serif:400,700,400italic);
@import url(https://fonts.googleapis.com/css?family=Ubuntu+Mono:400,700,400italic);

Keybase proof

I hereby claim:

  • I am dahie on github.
  • I am dahie (https://keybase.io/dahie) on keybase.
  • I have a public key whose fingerprint is EF71 E12F 7FAD DEF2 FE53 F8DC BF61 C829 E1B0 44DD

To claim this, I am signing this object:

// When logged in, go to "Settings > Checkout > Checkout Language", click the "View and customize this translation" link.
// A page with a url like this opens: "https://yourshop.myshopify.com/admin/settings/locales/[locale_id]".
// copy [locale_id].
// Go Back and choose "create a new one".
// Open the Javascript console, paste this (change to your shop/locale_id first):
@Dahie
Dahie / deploy.rb
Created May 20, 2012 19:08
capistrano deploy rb for uberspace with passenger
# RVM bootstrap
set :rvm_ruby_string, '1.9.2@redmine'
require 'rvm/capistrano'
set :domain, "bugs.ctdp.net"
set :application, domain
set :repository, "dahie@hydra.uberspace.de:ctdp-redmine.git"
set :passenger_port, 3002
@Dahie
Dahie / regulate-save-page-stacktrace
Created February 6, 2011 09:03
Stacktrace returned after saving a new page with regulate cms failed on production system
oMethodError (undefined method `put_raw_object' for nil:NilClass):
grit (2.3.0) lib/grit/git-ruby/repository.rb:112:in `put_raw_object'
grit (2.3.0) lib/grit/git.rb:23:in `put_raw_object'
grit (2.3.0) lib/grit/index.rb:160:in `write_blob'
grit (2.3.0) lib/grit/index.rb:135:in `block in write_tree'
grit (2.3.0) lib/grit/index.rb:132:in `each'
grit (2.3.0) lib/grit/index.rb:132:in `write_tree'
grit (2.3.0) lib/grit/index.rb:141:in `block in write_tree'
grit (2.3.0) lib/grit/index.rb:132:in `each'
grit (2.3.0) lib/grit/index.rb:132:in `write_tree'
Process: gource [49356]
Path: /opt/local/bin/gource
Identifier: gource
Version: ??? (???)
Code Type: X86-64 (Native)
Parent Process: bash [49116]
Date/Time: 2010-04-29 20:01:47.771 +0200
OS Version: Mac OS X 10.6.3 (10D573)
Report Version: 6
#PS1 which corresponds to the usual Mac OSX Terminal bash prompt, but works with git autocompletion: http://blog.ericgoodwin.com/2008/4/10/auto-completion-with-git
export PS1='\h:\w$(__git_ps1 "(%s)") \u$ '
<fileset id="lib.jars" dir="${lib}">
<include name="**/*.jar"/>
</fileset>
<target name="jar.include" depends="compile" if="include.do">
<echo message="Extracting and including library jars in main jar, onejar.use=${onejar.use}."/>
<jar jarfile="${jarfile}" basedir="${bin}" manifest="${manifest}/main-MANIFEST.MF">
<!-- Merge library jars into final jar file -->
<zipgroupfileset refid="lib.jars" />
</jar>