This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Repository("messageDao") | |
public class MessageDaoJpa implements MessageDao { | |
@PersistenceContext | |
private EntityManager entityManager; | |
... | |
public Message get(final String key, final String target) { | |
Criteria criteria; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |