Skip to content

Instantly share code, notes, and snippets.

@stephanetimmermans
stephanetimmermans / ubuntu-oracle-java
Last active August 29, 2015 14:01
Install Oracle Java on Ubuntu 14.04
sudo add-apt-repository ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer
sudo apt-get install oracle-java8-installer
#sudo update-java-alternatives -s java-7-oracle
@stephanetimmermans
stephanetimmermans / ubuntu-spotify-client
Created June 24, 2014 20:50
Install Spotify on Ubuntu
sudo sh -c 'echo "deb http://repository.spotify.com stable non-free" >> /etc/apt/sources.list.d/spotify.list'
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 94558F59
sudo apt-get update
sudo apt-get install spotify-client
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | sudo tee /etc/apt/sources.list.d/mongodb.list
sudo apt-get update
sudo apt-get install -y mongodb-org
@stephanetimmermans
stephanetimmermans / ubuntu-docker
Created November 10, 2014 12:21
Install Docker on Ubuntu
sudo apt-get update
sudo apt-get install docker.io
source /etc/bash_completion.d/docker.io
sudo docker run -i -t ubuntu /bin/bash
@stephanetimmermans
stephanetimmermans / gist:0a2a32f49ae800973886
Last active August 29, 2015 14:10
ubuntu-chrome-java8-mvn-mongo-nodejs-grunt-bower-idea-gradle-tomcat
#chrome
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
sudo sh -c 'echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list'
#java
sudo add-apt-repository ppa:webupd8team/java
#maven3
sudo add-apt-repository "deb http://ppa.launchpad.net/natecarlson/maven3/ubuntu precise main"
#mongodb
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 7F0CEB10
echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | sudo tee /etc/apt/sources.list.d/mongodb.list
@stephanetimmermans
stephanetimmermans / maven-exploded-war-jboss
Created December 5, 2012 07:50
Deploy exploded archives on JBoss with IDEA
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-war-plugin</artifactId>
<version>2.1.1</version>
<configuration>
<webappDirectory>${project.build.directory}/${project.build.finalName}-exploded.war</webappDirectory>
<warName>${project.name}</warName>
</configuration>
</plugin>
@stephanetimmermans
stephanetimmermans / gist:5496788
Last active December 16, 2015 20:59
Install node + npm on Ubuntu 13.04
sudo apt-get install build-essential libssl-dev curl
# The install script
# Adapted from https://gist.github.com/579814
echo '# Added by install script for node.js and npm in 30s' >> ~/.bashrc
echo 'export PATH=$HOME/local/bin:$PATH' >> ~/.bashrc
echo 'export NODE_PATH=$HOME/local/lib/node_modules' >> ~/.bashrc
. ~/.bashrc
@stephanetimmermans
stephanetimmermans / gist:5501502
Last active December 16, 2015 21:39
****************************************************************** ****************************************************************** Vmware Easy Install PLEASE WAIT! VMware Tools is currently being installed on your system. Depending on the version of Ubuntu you are installing, you may log in below and use the system during intallation. Otherwi…
#http://stackoverflow.com/questions/10740243/ubuntu-intallation-is-stuck-at-vmware-tools-installation
sudo mv /etc/issue.backup /etc/rc.local
sudo mv /opt/vmware-tools-installer/lightdm.conf /etc/init
sudo reboot
#http://www.liberiangeek.net/2013/03/how-to-quickly-install-vmware-tools-in-ubuntu-13-04-raring-ringtail/
sudo apt-get update && sudo apt-get install build-essential linux-headers-$(uname -r)
tar -xzvf /media/username/"VMware Tools"/VMwareTools-*.tar*.gz
sudo ./vmware-tools-distrib/vmware-install.pl
package org.krams.config;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.thymeleaf.spring3.SpringTemplateEngine;
import org.thymeleaf.spring3.view.ThymeleafViewResolver;
import org.thymeleaf.templateresolver.ServletContextTemplateResolver;
@Configuration
public class ThymeleafConfig {
@stephanetimmermans
stephanetimmermans / ubuntu-groovy
Created July 11, 2014 12:31
Install Groovy on Ubuntu 14
curl -s get.gvmtool.net | bash
source "$HOME/.gvm/bin/gvm-init.sh"
gvm install groovy
groovy -version