Skip to content

Instantly share code, notes, and snippets.

@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
@stephanetimmermans
stephanetimmermans / ubuntu-compass-ruby
Last active July 4, 2019 12:48
Install Compass+Ruby on Ubuntu 14.04
#https://gorails.com/setup/ubuntu/14.04
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 https://get.rvm.io | bash -s stable
source ~/.rvm/scripts/rvm
echo "source ~/.rvm/scripts/rvm" >> ~/.bashrc
rvm install 2.1.2
rvm use 2.1.2 --default
@stephanetimmermans
stephanetimmermans / ubuntu-node-js
Last active December 3, 2017 15:31
Install Node.js on Ubuntu 14.10
#https://www.digitalocean.com/community/articles/how-to-install-node-js-on-an-ubuntu-14-04-server
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
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-google-chrome
Last active March 23, 2020 16:49
Install Google Chrome on Ubuntu 14.04
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-chrome.list'
sudo apt-get update
sudo apt-get install google-chrome-stable
@stephanetimmermans
stephanetimmermans / gist:0b1ee3efa0f5889c9678
Last active January 27, 2018 11:54
TP-LINK TL-WN725N v2 working on Raspberry Pi (Raspbian)
#Source: http://www.mendrugox.net/2013/08/tp-link-tl-wn725n-v2-working-on-raspberry-raspbian/
wget http://www.mendrugox.net/downloads/14
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
ifconfig
@stephanetimmermans
stephanetimmermans / MessageDaoJpa.java
Last active January 21, 2024 21:07
Hibernate Criteria with Spring Data JPA
@Repository("messageDao")
public class MessageDaoJpa implements MessageDao {
@PersistenceContext
private EntityManager entityManager;
...
public Message get(final String key, final String target) {
Criteria criteria;
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 / 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
@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