Skip to content

Instantly share code, notes, and snippets.

stephanetimmermans / maven-exploded-war-jboss
Created Dec 5, 2012
Deploy exploded archives on JBoss with IDEA
View maven-exploded-war-jboss
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
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 / 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
sudo mv /etc/issue.backup /etc/rc.local
sudo mv /opt/vmware-tools-installer/lightdm.conf /etc/init
sudo reboot
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/
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;
public class ThymeleafConfig {
stephanetimmermans /
Last active Aug 30, 2019
Hibernate Criteria with Spring Data JPA
public class MessageDaoJpa implements MessageDao {
private EntityManager entityManager;
public Message get(final String key, final String target) {
Criteria criteria;
stephanetimmermans / gist:0b1ee3efa0f5889c9678
Last active Jan 27, 2018
TP-LINK TL-WN725N v2 working on Raspberry Pi (Raspbian)
View gist:0b1ee3efa0f5889c9678
unzip 14
rm 14
mv 8188eu.ko /lib/modules/3.10.25+/kernel/drivers/net/wireless
mv rtl8188eufw.bin /lib/firmware/rtlwifi/
depmod -a
modprobe 8188eu
stephanetimmermans / ubuntu-google-chrome
Last active Mar 23, 2020
Install Google Chrome on Ubuntu 14.04
View ubuntu-google-chrome
wget -q -O - | sudo apt-key add -
sudo sh -c 'echo "deb stable main" >> /etc/apt/sources.list.d/google-chrome.list'
sudo apt-get update
sudo apt-get install google-chrome-stable
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
stephanetimmermans / ubuntu-node-js
Last active Dec 3, 2017
Install Node.js on Ubuntu 14.10
View ubuntu-node-js
sudo add-apt-repository ppa:chris-lea/node.js
sudo apt-get update
sudo apt-get install nodejs
sudo apt-get install npm
npm config set prefix ~/npm
#append to .bashrc
export PATH="$PATH:$HOME/npm/bin"
sudo chown -R `whoami` ~/.npm
stephanetimmermans / ubuntu-compass-ruby
Last active Jul 4, 2019
Install Compass+Ruby on Ubuntu 14.04
View ubuntu-compass-ruby
sudo apt-get update
sudo apt-get install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties
sudo apt-get install libgdbm-dev libncurses5-dev automake libtool bison libffi-dev
curl -L | bash -s stable
source ~/.rvm/scripts/rvm
echo "source ~/.rvm/scripts/rvm" >> ~/.bashrc
rvm install 2.1.2
rvm use 2.1.2 --default