Skip to content

Instantly share code, notes, and snippets.

@stephanetimmermans
stephanetimmermans / ubuntu-oracle-java
Last active Aug 29, 2015
Install Oracle Java on Ubuntu 14.04
View ubuntu-oracle-java
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
View ubuntu-spotify-client
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
View ubuntu-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
sudo apt-get update
sudo apt-get install -y mongodb-org
@stephanetimmermans
stephanetimmermans / ubuntu-docker
Created Nov 10, 2014
Install Docker on Ubuntu
View ubuntu-docker
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 Aug 29, 2015
ubuntu-chrome-java8-mvn-mongo-nodejs-grunt-bower-idea-gradle-tomcat
View gist:0a2a32f49ae800973886
#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 Dec 5, 2012
Deploy exploded archives on JBoss with IDEA
View maven-exploded-war-jboss
<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 Dec 16, 2015
Install node + npm on Ubuntu 13.04
View gist:5496788
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 Dec 16, 2015
****************************************************************** ****************************************************************** 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…
View gist:5501502
#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
View ThymeleafConfig.java
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 Jul 11, 2014
Install Groovy on Ubuntu 14
View ubuntu-groovy
curl -s get.gvmtool.net | bash
source "$HOME/.gvm/bin/gvm-init.sh"
gvm install groovy
groovy -version