Skip to content

Instantly share code, notes, and snippets.

View erotte's full-sized avatar
🏡
Arbeit Arbeit Arbeit

Eckhard Rotte erotte

🏡
Arbeit Arbeit Arbeit
View GitHub Profile
@erotte
erotte / gist:1072255
Created July 8, 2011 16:54
IDEA 10.5.1 setting of Android SDK failed
08.07.11 18:51:24 [0x0-0xde8de8].com.jetbrains.intellij.ce[47948] [ 495929] ERROR - com.intellij.ide.IdeEventQueue - Error during dispatching of java.awt.event.MouseEvent[MOUSE_RELEASED,(817,787),absolute(1017,809),button=1,modifiers=Button1,clickCount=1] on dialog2
08.07.11 18:51:24 [0x0-0xde8de8].com.jetbrains.intellij.ce[47948] java.lang.NullPointerException
08.07.11 18:51:24 [0x0-0xde8de8].com.jetbrains.intellij.ce[47948] at org.jetbrains.android.sdk.AndroidSdkAdditionalData.setBuildTarget(AndroidSdkAdditionalData.java:98)
08.07.11 18:51:24 [0x0-0xde8de8].com.jetbrains.intellij.ce[47948] at org.jetbrains.android.sdk.AndroidSdkConfigurable.apply(AndroidSdkConfigurable.java:58)
08.07.11 18:51:24 [0x0-0xde8de8].com.jetbrains.intellij.ce[47948] at com.intellij.openapi.projectRoots.ui.SdkEditor.apply(SdkEditor.java:206)
08.07.11 18:51:24 [0x0-0xde8de8].com.jetbrains.intellij.ce[47948] at com.intellij.openapi.roots.ui.configuration.projectRoot.JdkConfigurable.apply(JdkConfigurable.java:96)
08.07.11 18:51:
@erotte
erotte / gist:1094870
Created July 20, 2011 12:32
Spree 0.60.1 Gemfile
# EXAMPLE Gemfile for a spree application, your Gemfile will be different
source 'http://rubygems.org'
# Generic gem dependencies first
gem 'rails'
gem 'sqlite3'
gem 'mysql2', '0.2.6'
gem 'aws-s3', :require => 'aws/s3'
gem 'dynamic_form'
gem 'heroku'
@erotte
erotte / server_setup.md
Created July 26, 2011 20:04
Server Setup Ubuntu 10.4/rvm/nginx/passenger Hosteurope VM

Server Setup

Unsere Setup-Routine für eine Rails-App mit Nginx, Passenger, rvm auf einen Host Europe-VPS mit Ubuntu 10.4.

Installation der benötigten Pakete

apt-get update

apt-get install -y build-essential bison openssl libreadline5 libreadline5-dev curl \

@erotte
erotte / couch_ubuntu.md
Created July 27, 2011 14:07
CouchDB on Ubuntu 10.4
@erotte
erotte / test.sh
Created August 10, 2011 15:05
test234
#!/usr/bin/env bash
# Copy ssh key from your local machine to remote
# again: run from your local machine!
read -p "type in the USERNAME on the remote machine: " -e REMOTE_USER_NAME;
read -p "type in the HOSTNAME or ip of the remote machine: " -e REMOTE_HOST;
echo $REMOTE_USER_NAME@$REMOTE_HOST
# cat ~/.ssh/id_rsa.pub | ssh $REMOTE_USER_NAME@$REMOTE_HOST "cat >> ~/.ssh/authorized_keys2"
@erotte
erotte / etc_init.d php-fcgi startscript
Created December 3, 2011 23:39
Setting up Wordpress with nginX and php-cgi
#!/bin/bash
BIND=127.0.0.1:9000
# BIND=/tmp/php.socket
USER=www-data
PHP_FCGI_CHILDREN=3
PHP_FCGI_MAX_REQUESTS=1000
PHP_CGI=/usr/bin/php5-cgi
PHP_CGI_NAME=`basename $PHP_CGI`
PHP_CGI_ARGS="- USER=$USER PATH=/usr/bin PHP_FCGI_CHILDREN=$PHP_FCGI_CHILDREN PHP_FCGI_MAX_REQUESTS=$PHP_FCGI_MAX_REQUESTS $PHP_CGI -b $BIND"
@erotte
erotte / font-includer-compass.sass
Created March 27, 2012 17:47
SASS Font includer
// Use COMPASS font-url() helper here
= fontsrc($name, $filename, $weight:400, $style:normal)
@font-face
font-family: $name
src: font-url('#{$filename}.eot')
src: local('☺'), font-url('#{$filename}.woff') format('woff'), font-url('#{$filename}.ttf') format('truetype'), font-url('#{$filename}.svg#ab12c33') format('svg')
font-weight: $weight
font-style: $style
@erotte
erotte / font-includer-compass.sass
Created March 27, 2012 17:47
SASS Font includer
// with COMPASS font-url() helper
= fontsrc($name, $filename, $weight:400, $style:normal)
@font-face
font-family: $name
src: font-url('#{$filename}.eot')
src: local('☺'), font-url('#{$filename}.woff') format('woff'), font-url('#{$filename}.ttf') format('truetype'), font-url('#{$filename}.svg#ab12c33') format('svg')
font-weight: $weight
font-style: $style
@erotte
erotte / gitcal.rb
Created May 18, 2012 22:38
Simple ruby script for creating ical calendars from local git repos
#! /usr/bin/env ruby
# gitcal.rb
# creates an .ics file from a local git repository and loads it into iCal.app
# Usage: `[bundle exec] ruby gitcal.rb [repo_path] [branch] [count_back]`
# A shell wrapper script maybe a good idea, but for me this works as it is.
require 'grit' # https://github.com/mojombo/grit
require 'ri_cal' # https://github.com/rubyredrick/ri_cal
@erotte
erotte / gist:3407960
Created August 20, 2012 21:14
vertically centered with display: box
<!doctype html>
<html lang="de" class="no-js">
<head>
<meta charset="utf-8">
<title>untitled</title>
<meta name="author" content="Eckhard Rotte">
<style type="text/css" media="screen">
html, body {