apt-get update
apt-get install sun-java6-jdk
echo JAVA_HOME="/usr/lib/jvm/java-6-sun" >> /etc/environment
echo JRE_HOME="/usr/lib/jvm/java-6-sun/jre" >> /etc/environment
| <?xml version="1.0" encoding="utf-8"?> | |
| <languages> | |
| <language name="Swedish" id="sv"> | |
| <pagetitles> | |
| <images>bilder</images> | |
| <imagegalleries>bildgallerier</imagegalleries> | |
| <myblog>blogg</myblog> | |
| <myfriends>vänner</myfriends> | |
| <mypage>min sida</mypage> | |
| </pagetitles> |
| using EPiServer.Core; | |
| using EPiServer.Security; | |
| using EPiServer.Web.PageExtensions; | |
| using EPiServer.Web.PropertyControls; | |
| using log4net; | |
| using System; | |
| using System.ComponentModel; | |
| using System.Web.UI; | |
| using System.Web.UI.WebControls; | |
| namespace EPiServer.Web.WebControls |
| # Upstart script for a play application that binds to an unprivileged user. | |
| # put this into a file like /etc/init/playframework | |
| # you can then start/stop it using either initctl or start/stop/restart | |
| # e.g. | |
| # start playframework | |
| # http://dominikdorn.com | |
| description "Description of your app" | |
| author "Dominik Dorn <dominik@studyguru.eu>" | |
| version "1.0" |
| #!/usr/bin/env ruby | |
| # encoding: UTF-8 | |
| $VERBOSE = true # -w | |
| $KCODE = "U" if RUBY_VERSION < "1.9" # -KU | |
| require 'optparse' | |
| require 'socket' | |
| require 'fileutils' |
| /* | |
| Monitors link clicks and pushes them to google analytics | |
| It automatically tracks mail links and downloads, and if a link doesn't leed to the same domain it tracks it as an outbound link. | |
| based on the drupalmodule http://drupalcontrib.org/api/drupal/contributions--google_analytics--googleanalytics.module | |
| @author Leon Radley | |
| Custom tracking example: | |
| Tracker.track('download', 'customfile', 'mycustomfile'); | |
| */ |
| #!/bin/sh -e | |
| # | |
| # Usage: ssh-copy-rsub [--bash] [user@]machine | |
| # | |
| # Shell script to install rsub on the remove server so we can open shell scripts locally. | |
| # Author: Leon Radley (http://github.com/leon) | |
| URL="https://raw.github.com/avian/rmate/master/rmate" | |
| if [ "$#" -gt 1 ] || [ "$1" = "-b" ] || [ "$1" = "--bash" ]; then |
| #!/bin/sh -r | |
| # | |
| # Usage: ssh-copy-rmate [--bash] [user@]machine | |
| # | |
| # Shell script to install rmate on the remove server so we can open shell scripts locally. | |
| # Author: Leon Radley (http://github.com/leon) | |
| URL="https://raw.github.com/avian/rmate/master/rmate" | |
| if [ "$#" -gt 1 ] || [ "$1" = "-b" ] || [ "$1" = "--bash" ]; then |
| # Upstart script for a play application that binds to an unprivileged user. | |
| # put this into a file like /etc/init/play.conf | |
| # | |
| # This could be the foundation for pushing play apps to the server using something like git-deploy | |
| # By calling service play stop in the restart command and play-start in the restart command. | |
| # | |
| # Usage: | |
| # start play | |
| # stop play | |
| # restart play |
| import scala.tools.nsc.{Interpreter,Settings} | |
| var i = new Interpreter(new Settings(str => println(str))) | |
| var res = Array[Any](null) | |
| i.beQuietDuring({ | |
| i.bind("result", "Array[Any]", res) | |
| i.interpret("class Fred {def foo = 3}") | |
| i.interpret("result(0) = new Fred") | |
| }) |