Unsere Setup-Routine für eine Rails-App mit Nginx, Passenger, rvm auf einen Host Europe-VPS mit Ubuntu 10.4.
apt-get update
apt-get install -y build-essential bison openssl libreadline5 libreadline5-dev curl \
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: |
# 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' |
Couchbase bietet aktuelle deb-Files an: http://www.couchbase.com/downloads#source
Ich habe mich für "Couchbase Single Server Community Edition" entschieden.
wget http://c3145442.r42.cf0.rackcdn.com/couchbase-server-community_x86_64_1.1.deb
dpkg -i couchbase-server-community_x86_64_1.1.deb
#!/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" |
#!/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" |
// 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 |
// 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 |
#! /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 |
<!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 { |