Skip to content

Instantly share code, notes, and snippets.

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
@stephanetimmermans
stephanetimmermans / ubuntu-compass-ruby
Last active Jul 4, 2019
Install Compass+Ruby on Ubuntu 14.04
View ubuntu-compass-ruby
#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 Dec 3, 2017
Install Node.js on Ubuntu 14.10
View ubuntu-node-js
#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 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
stephanetimmermans / ubuntu-google-chrome
Last active Mar 23, 2020
Install Google Chrome on Ubuntu 14.04
View ubuntu-google-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-chrome.list'
sudo apt-get update
sudo apt-get install google-chrome-stable
@stephanetimmermans
stephanetimmermans / gist:0b1ee3efa0f5889c9678
Last active Jan 27, 2018
TP-LINK TL-WN725N v2 working on Raspberry Pi (Raspbian)
View gist:0b1ee3efa0f5889c9678
#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 Aug 30, 2019
Hibernate Criteria with Spring Data JPA
View MessageDaoJpa.java
@Repository("messageDao")
public class MessageDaoJpa implements MessageDao {
@PersistenceContext
private EntityManager entityManager;
...
public Message get(final String key, final String target) {
Criteria criteria;
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 / 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
@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